wifi: iwlwifi: mvm: fix ROC version check
[ Upstream commit 4c2bed6042fb6aca1d1d4f291f85461b1d5ac08c ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
72a0199b36
commit
240493824e
@ -4643,7 +4643,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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user