aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/sta_info.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2007-08-28 17:01:55 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:48:52 -0400
commit3aefaa3294193c931b20a574f718efee6baf27d4 (patch)
tree11e488c4edf67d0c279ab0aaf54d182d77bc301d /net/mac80211/sta_info.c
parentf658eb90d065c2d76ab3f3eb676ebf53462e323b (diff)
[MAC80211]: remove fake set_key() call
Remove adding a fake key with a NONE key algorithm for each associated STA. If we have hardware with such TX filtering we should probably extend the sta_table_notification() callback with the sta information instead; the fact that it's treated as a key for some atheros hardware shouldn't bother the stack. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Acked-by: Michael Wu <flamingice@sourmilk.net> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac80211/sta_info.c')
-rw-r--r--net/mac80211/sta_info.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c
index a1f766fcf966..fba2d79e4d2b 100644
--- a/net/mac80211/sta_info.c
+++ b/net/mac80211/sta_info.c
@@ -165,7 +165,6 @@ struct sta_info * sta_info_add(struct ieee80211_local *local,
165 local->ops->sta_table_notification(local_to_hw(local), 165 local->ops->sta_table_notification(local_to_hw(local),
166 local->num_sta); 166 local->num_sta);
167 write_unlock_bh(&local->sta_lock); 167 write_unlock_bh(&local->sta_lock);
168 sta->key_idx_compression = HW_KEY_IDX_INVALID;
169 168
170#ifdef CONFIG_MAC80211_VERBOSE_DEBUG 169#ifdef CONFIG_MAC80211_VERBOSE_DEBUG
171 printk(KERN_DEBUG "%s: Added STA " MAC_FMT "\n", 170 printk(KERN_DEBUG "%s: Added STA " MAC_FMT "\n",
@@ -226,23 +225,6 @@ void sta_info_free(struct sta_info *sta)
226 dev_kfree_skb(skb); 225 dev_kfree_skb(skb);
227 } 226 }
228 227
229 if (sta->key) {
230 if (local->ops->set_key) {
231 local->ops->set_key(local_to_hw(local),
232 DISABLE_KEY, sta->addr,
233 &sta->key->conf);
234 }
235 } else if (sta->key_idx_compression != HW_KEY_IDX_INVALID) {
236 struct ieee80211_key_conf conf;
237 memset(&conf, 0, sizeof(conf));
238 conf.hw_key_idx = sta->key_idx_compression;
239 conf.alg = ALG_NONE;
240 conf.flags |= IEEE80211_KEY_FORCE_SW_ENCRYPT;
241 local->ops->set_key(local_to_hw(local), DISABLE_KEY,
242 sta->addr, &conf);
243 sta->key_idx_compression = HW_KEY_IDX_INVALID;
244 }
245
246#ifdef CONFIG_MAC80211_VERBOSE_DEBUG 228#ifdef CONFIG_MAC80211_VERBOSE_DEBUG
247 printk(KERN_DEBUG "%s: Removed STA " MAC_FMT "\n", 229 printk(KERN_DEBUG "%s: Removed STA " MAC_FMT "\n",
248 local->mdev->name, MAC_ARG(sta->addr)); 230 local->mdev->name, MAC_ARG(sta->addr));