iwlwifi: mvm: make sure AP is operating for ToF
It's possible for an AP interface to be UP but not actually operating (i.e. not beaconing etc.) - in this case it can't actually do ToF, so check for it. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
This commit is contained in:
parent
38d5f66f06
commit
da583fdfec
|
@ -178,7 +178,8 @@ int iwl_mvm_tof_responder_cmd(struct iwl_mvm *mvm,
|
|||
if (!fw_has_capa(&mvm->fw->ucode_capa, IWL_UCODE_TLV_CAPA_TOF_SUPPORT))
|
||||
return -EINVAL;
|
||||
|
||||
if (vif->p2p || vif->type != NL80211_IFTYPE_AP) {
|
||||
if (vif->p2p || vif->type != NL80211_IFTYPE_AP ||
|
||||
!mvmvif->ap_ibss_active) {
|
||||
IWL_ERR(mvm, "Cannot start responder, not in AP mode\n");
|
||||
return -EIO;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue