diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-07-31 11:34:10 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-08-16 15:26:38 -0400 |
commit | a85d7cca1204f2dba86d2f61693f0fe8c48f0fa5 (patch) | |
tree | 78613f0415c0feca672b382d9c98f1c69c25b7e9 /drivers/net/wireless/iwlwifi/iwl-core.c | |
parent | 07d4f1ad2c21273f0f89a3d2202d22fcaf901439 (diff) |
iwlwifi: track IBSS manager status
Only the IBSS manager, ie. the station that sent
the IBSS beacon last, should be replying to probe
responses. This requires implementing the mac80211
tx_last_beacon callback, which we can do thanks to
the ucode beacon notification.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-core.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index 78882f9ab459..ccdf3c02bb3c 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -1666,6 +1666,14 @@ int iwl_mac_conf_tx(struct ieee80211_hw *hw, u16 queue, | |||
1666 | } | 1666 | } |
1667 | EXPORT_SYMBOL(iwl_mac_conf_tx); | 1667 | EXPORT_SYMBOL(iwl_mac_conf_tx); |
1668 | 1668 | ||
1669 | int iwl_mac_tx_last_beacon(struct ieee80211_hw *hw) | ||
1670 | { | ||
1671 | struct iwl_priv *priv = hw->priv; | ||
1672 | |||
1673 | return priv->ibss_manager == IWL_IBSS_MANAGER; | ||
1674 | } | ||
1675 | EXPORT_SYMBOL_GPL(iwl_mac_tx_last_beacon); | ||
1676 | |||
1669 | static void iwl_ht_conf(struct iwl_priv *priv, | 1677 | static void iwl_ht_conf(struct iwl_priv *priv, |
1670 | struct ieee80211_vif *vif) | 1678 | struct ieee80211_vif *vif) |
1671 | { | 1679 | { |