mac80211: fix IBSS auth
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 10 Feb 2009 20:26:02 +0000 (21:26 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 13 Feb 2009 18:46:01 +0000 (13:46 -0500)
The code beyond this point is supposed to be used for
non-IBSS (managed) mode only.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Cc: Jouni Malinen <j@w1.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c

index c51860f667312878afac1e931b469a01a1f05701..3323974158909cd6e29bf9cbc6bb8c33875e4b45 100644 (file)
@@ -1205,6 +1205,7 @@ static void ieee80211_rx_mgmt_auth(struct ieee80211_sub_if_data *sdata,
                if (auth_alg != WLAN_AUTH_OPEN || auth_transaction != 1)
                        return;
                ieee80211_send_auth(sdata, ifsta, 2, NULL, 0, 0);
+               return;
        }
 
        if (auth_alg != ifsta->auth_alg ||