Merge remote-tracking branch 'iwlwifi-fixes/master' into iwlwifi-next
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Conflicts: drivers/net/wireless/iwlwifi/mvm/mac80211.c
This commit is contained in:
@@ -724,21 +724,21 @@ bool iwl_mvm_low_latency(struct iwl_mvm *mvm)
|
||||
return result;
|
||||
}
|
||||
|
||||
static void iwl_mvm_assoc_iter(void *_data, u8 *mac, struct ieee80211_vif *vif)
|
||||
static void iwl_mvm_idle_iter(void *_data, u8 *mac, struct ieee80211_vif *vif)
|
||||
{
|
||||
bool *assoc = _data;
|
||||
bool *idle = _data;
|
||||
|
||||
if (vif->bss_conf.assoc)
|
||||
*assoc = true;
|
||||
if (!vif->bss_conf.idle)
|
||||
*idle = false;
|
||||
}
|
||||
|
||||
bool iwl_mvm_is_associated(struct iwl_mvm *mvm)
|
||||
bool iwl_mvm_is_idle(struct iwl_mvm *mvm)
|
||||
{
|
||||
bool assoc = false;
|
||||
bool idle = true;
|
||||
|
||||
ieee80211_iterate_active_interfaces_atomic(
|
||||
mvm->hw, IEEE80211_IFACE_ITER_NORMAL,
|
||||
iwl_mvm_assoc_iter, &assoc);
|
||||
iwl_mvm_idle_iter, &idle);
|
||||
|
||||
return assoc;
|
||||
return idle;
|
||||
}
|
||||
|
Reference in New Issue
Block a user