diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2014-05-13 14:51:53 +0400 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2014-05-13 14:51:53 +0400 |
commit | 90c456fc795485cfcbede23a6598feeac7e6c284 (patch) | |
tree | 497f668041fd161186d225ef1d0d68a35fffe66f /drivers/net/wireless/iwlwifi/mvm/utils.c | |
parent | 41f6fc10d38150f83d0706305c69e1e696cc3b33 (diff) | |
parent | 1c4abec0baf25ffb92a28cc99d4231feeaa4d3f3 (diff) | |
download | linux-90c456fc795485cfcbede23a6598feeac7e6c284.tar.xz |
Merge remote-tracking branch 'iwlwifi-fixes/master' into HEAD
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/utils.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/utils.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/utils.c b/drivers/net/wireless/iwlwifi/mvm/utils.c index 4c3577e773a5..9cd0309216df 100644 --- a/drivers/net/wireless/iwlwifi/mvm/utils.c +++ b/drivers/net/wireless/iwlwifi/mvm/utils.c @@ -690,3 +690,22 @@ 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) +{ + bool *assoc = _data; + + if (vif->bss_conf.assoc) + *assoc = true; +} + +bool iwl_mvm_is_associated(struct iwl_mvm *mvm) +{ + bool assoc = false; + + ieee80211_iterate_active_interfaces_atomic( + mvm->hw, IEEE80211_IFACE_ITER_NORMAL, + iwl_mvm_assoc_iter, &assoc); + + return assoc; +} |