Skip to content

Commit 4c2bed6

Browse files
striebitjmberg-intel
authored andcommitted
wifi: iwlwifi: mvm: fix ROC version check
For using the ROC command, check that the ROC version is *greater or equal* to 3, rather than *equal* to 3. The ROC version was added to the TLV starting from version 3. Fixes: 67ac248 ("wifi: iwlwifi: mvm: implement ROC version 3") Signed-off-by: Shaul Triebitz <shaul.triebitz@intel.com> Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://msgid.link/20240605140327.93d86cd188ad.Iceadef5a2f3cfa4a127e94a0405eba8342ec89c1@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent d792011 commit 4c2bed6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4795,7 +4795,7 @@ static int iwl_mvm_roc_station(struct iwl_mvm *mvm,
47954795

47964796
if (fw_ver == IWL_FW_CMD_VER_UNKNOWN) {
47974797
ret = iwl_mvm_send_aux_roc_cmd(mvm, channel, vif, duration);
4798-
} else if (fw_ver == 3) {
4798+
} else if (fw_ver >= 3) {
47994799
ret = iwl_mvm_roc_add_cmd(mvm, channel, vif, duration,
48004800
ROC_ACTIVITY_HOTSPOT);
48014801
} else {

0 commit comments

Comments
 (0)