Skip to content

Commit 5111f9d

Browse files
panjaneyjmberg-intel
authored andcommitted
wifi: iwlwifi: mvm: handle version 3 GET_TAS_STATUS notification
Add a check to ensure only version-3 of GET_TAS_STATUS notification is allowed. Signed-off-by: Anjaneyulu <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20241231135726.1d571ac80957.Ia48b1cf5585a2a9f9c461e80f5a0ba2bb16c3af4@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent 5f46566 commit 5111f9d

File tree

1 file changed

+4
-0
lines changed
  • drivers/net/wireless/intel/iwlwifi/mvm

1 file changed

+4
-0
lines changed

drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,10 @@ static ssize_t iwl_dbgfs_tas_get_status_read(struct file *file,
579579
if (!iwl_mvm_firmware_running(mvm))
580580
return -ENODEV;
581581

582+
if (iwl_fw_lookup_notif_ver(mvm->fw, DEBUG_GROUP, GET_TAS_STATUS,
583+
0) != 3)
584+
return -EOPNOTSUPP;
585+
582586
mutex_lock(&mvm->mutex);
583587
ret = iwl_mvm_send_cmd(mvm, &hcmd);
584588
mutex_unlock(&mvm->mutex);

0 commit comments

Comments
 (0)