]> www.infradead.org Git - users/hch/configfs.git/commitdiff
wifi: iwlwifi: mvm: fix ROC version check
authorShaul Triebitz <shaul.triebitz@intel.com>
Wed, 5 Jun 2024 11:05:05 +0000 (14:05 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 12 Jun 2024 08:10:59 +0000 (10:10 +0200)
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: 67ac248e4db0 ("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>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c

index de9f0b446545625b51288b7565871c6ff5bdcf6c..18ce060df9b5b3d3efe28efcfb92f7bc6d256a88 100644 (file)
@@ -4795,7 +4795,7 @@ static int iwl_mvm_roc_station(struct iwl_mvm *mvm,
 
        if (fw_ver == IWL_FW_CMD_VER_UNKNOWN) {
                ret = iwl_mvm_send_aux_roc_cmd(mvm, channel, vif, duration);
-       } else if (fw_ver == 3) {
+       } else if (fw_ver >= 3) {
                ret = iwl_mvm_roc_add_cmd(mvm, channel, vif, duration,
                                          ROC_ACTIVITY_HOTSPOT);
        } else {