diff options
author | John W. Linville <linville@tuxdriver.com> | 2014-05-15 10:24:28 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-05-15 10:24:28 -0400 |
commit | 025a58fd9d5785d63c398e96ac543db2639c7ddc (patch) | |
tree | f15063ac321fb1d13e35bc75c70e7cee81aa3119 /drivers/net/wireless/iwlwifi/mvm/utils.c | |
parent | e84d2f8d2ae33c8215429824e1ecf24cbca9645e (diff) | |
parent | faf1dc64e345ac4de5c4429df6ed492255ae2248 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless into for-davem
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 d619851745a..2180902266a 100644 --- a/drivers/net/wireless/iwlwifi/mvm/utils.c +++ b/drivers/net/wireless/iwlwifi/mvm/utils.c @@ -644,3 +644,22 @@ bool iwl_mvm_low_latency(struct iwl_mvm *mvm) return result; } + +static void iwl_mvm_idle_iter(void *_data, u8 *mac, struct ieee80211_vif *vif) +{ + bool *idle = _data; + + if (!vif->bss_conf.idle) + *idle = false; +} + +bool iwl_mvm_is_idle(struct iwl_mvm *mvm) +{ + bool idle = true; + + ieee80211_iterate_active_interfaces_atomic( + mvm->hw, IEEE80211_IFACE_ITER_NORMAL, + iwl_mvm_idle_iter, &idle); + + return idle; +} |