diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-04-28 11:44:52 -0400 |
---|---|---|
committer | Reinette Chatre <reinette.chatre@intel.com> | 2010-05-10 18:08:53 -0400 |
commit | 1fa61b2e793dad51271c7ce39377daade51261d7 (patch) | |
tree | 1165dc3d721f1db83a459687b70bb3b4fdfafec9 /drivers/net/wireless/iwlwifi/iwl3945-base.c | |
parent | c0222df86e55576ef879795b5a158c46e6653f07 (diff) |
iwlwifi: manage IBSS station properly
Currently iwlwifi will eventually exhaust the station
table when adding the BSSID station for IBSS mode,
unless the interface is set down.
The new mac80211 ibss joined/left notification allows
us to fix that easily by moving the code to add the
IBSS station to the notification, and also adding
code to remove it again when we leave the IBSS.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl3945-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 4f20cca06fb0..9486b3248245 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -3103,21 +3103,10 @@ void iwl3945_post_associate(struct iwl_priv *priv) | |||
3103 | case NL80211_IFTYPE_STATION: | 3103 | case NL80211_IFTYPE_STATION: |
3104 | iwl3945_rate_scale_init(priv->hw, IWL_AP_ID); | 3104 | iwl3945_rate_scale_init(priv->hw, IWL_AP_ID); |
3105 | break; | 3105 | break; |
3106 | |||
3107 | case NL80211_IFTYPE_ADHOC: | 3106 | case NL80211_IFTYPE_ADHOC: |
3108 | |||
3109 | priv->assoc_id = 1; | 3107 | priv->assoc_id = 1; |
3110 | iwl_add_local_station(priv, priv->bssid, false); | ||
3111 | iwl3945_sync_sta(priv, IWL_STA_ID, | ||
3112 | (priv->band == IEEE80211_BAND_5GHZ) ? | ||
3113 | IWL_RATE_6M_PLCP : IWL_RATE_1M_PLCP, | ||
3114 | CMD_ASYNC); | ||
3115 | iwl3945_rate_scale_init(priv->hw, IWL_STA_ID); | ||
3116 | |||
3117 | iwl3945_send_beacon_cmd(priv); | 3108 | iwl3945_send_beacon_cmd(priv); |
3118 | |||
3119 | break; | 3109 | break; |
3120 | |||
3121 | default: | 3110 | default: |
3122 | IWL_ERR(priv, "%s Should not be called in %d mode\n", | 3111 | IWL_ERR(priv, "%s Should not be called in %d mode\n", |
3123 | __func__, priv->iw_mode); | 3112 | __func__, priv->iw_mode); |