diff options
author | Antonio Quartulli <antonio@open-mesh.com> | 2012-11-25 23:24:27 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-11-26 11:32:42 +0100 |
commit | 7bed20503f62ae9660c7b5cd6c3603960e422450 (patch) | |
tree | ad0c7372c50518bf065432a903711c310dad4c8c | |
parent | e584da5e3cc0b299d4b86072941cbe6dd9a046a8 (diff) | |
download | linux-3.10-7bed20503f62ae9660c7b5cd6c3603960e422450.tar.gz linux-3.10-7bed20503f62ae9660c7b5cd6c3603960e422450.tar.bz2 linux-3.10-7bed20503f62ae9660c7b5cd6c3603960e422450.zip |
mac80211: in ADHOC print debug message for every Auth message
The debug message has to be printed also for an Auth message with
auth_sequence != 1. This helps understanding whether the two Auth
messages are exchanged correctly or not.
Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r-- | net/mac80211/ibss.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c index cc11558d8c1..845973b67a7 100644 --- a/net/mac80211/ibss.c +++ b/net/mac80211/ibss.c @@ -374,11 +374,13 @@ static void ieee80211_rx_mgmt_auth_ibss(struct ieee80211_sub_if_data *sdata, auth_alg = le16_to_cpu(mgmt->u.auth.auth_alg); auth_transaction = le16_to_cpu(mgmt->u.auth.auth_transaction); - if (auth_alg != WLAN_AUTH_OPEN || auth_transaction != 1) - return; ibss_dbg(sdata, "RX Auth SA=%pM DA=%pM BSSID=%pM (auth_transaction=%d)\n", mgmt->sa, mgmt->da, mgmt->bssid, auth_transaction); + + if (auth_alg != WLAN_AUTH_OPEN || auth_transaction != 1) + return; + sta_info_destroy_addr(sdata, mgmt->sa); sta = ieee80211_ibss_add_sta(sdata, mgmt->bssid, mgmt->sa, 0, false); rcu_read_unlock(); |