aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ibss.c
diff options
context:
space:
mode:
authorAntonio Quartulli <ordex@autistici.org>2012-01-17 18:10:43 -0500
committerJohn W. Linville <linville@tuxdriver.com>2012-01-24 14:32:26 -0500
commit24dd0dd74ec8dc4abada132e380dc179459b0f77 (patch)
tree317616a62c8ab9576b9a754bb64059f349a8b5ae /net/mac80211/ibss.c
parentea9917d6f9e355646258b8d08ac69108908618a2 (diff)
mac80211: add a 2-way Authentication challenge to IBSS mode
In IBSS mode, whenever a new station is added a 2-way authentication challenge is performed. Actually this event can be used to recognise a new station joining the cell even if its sta_info entry is already in the list. Signed-off-by: Antonio Quartulli <ordex@autistici.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/ibss.c')
-rw-r--r--net/mac80211/ibss.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c
index b253d0adf0ad..a497c03c03d7 100644
--- a/net/mac80211/ibss.c
+++ b/net/mac80211/ibss.c
@@ -298,6 +298,13 @@ static struct sta_info *ieee80211_ibss_finish_sta(struct sta_info *sta)
298 /* If it fails, maybe we raced another insertion? */ 298 /* If it fails, maybe we raced another insertion? */
299 if (sta_info_insert_rcu(sta)) 299 if (sta_info_insert_rcu(sta))
300 return sta_info_get(sdata, addr); 300 return sta_info_get(sdata, addr);
301#ifdef CONFIG_MAC80211_IBSS_DEBUG
302 printk(KERN_DEBUG "TX Auth SA=%pM DA=%pM BSSID=%pM"
303 "(auth_transaction=1)\n", sdata->vif.addr,
304 sdata->u.ibss.bssid, addr);
305#endif
306 ieee80211_send_auth(sdata, 1, WLAN_AUTH_OPEN, NULL, 0,
307 addr, sdata->u.ibss.bssid, NULL, 0, 0);
301 return sta; 308 return sta;
302} 309}
303 310