mac80211: fix incorrect assignment of reassoc value
authorSimon Dinkin <simondinkin@gmail.com>
Thu, 31 Aug 2017 10:09:36 +0000 (13:09 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 5 Sep 2017 07:04:20 +0000 (09:04 +0200)
this fix minor issue in the log message.
in ieee80211_rx_mgmt_assoc_resp function, when assigning the
reassoc value from the mgmt frame control:
ieee80211_is_reassoc_resp function need to be used, instead of
ieee80211_is_reassoc_req function.

Signed-off-by: Simon Dinkin <simon.dinkin@tandemg.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c

index b588e593b0ec175a72251345174928b724e83838..3b8e2709d8dea14ba4711de7d7d5c6ed5b48473a 100644 (file)
@@ -3155,7 +3155,7 @@ static void ieee80211_rx_mgmt_assoc_resp(struct ieee80211_sub_if_data *sdata,
        if (len < 24 + 6)
                return;
 
-       reassoc = ieee80211_is_reassoc_req(mgmt->frame_control);
+       reassoc = ieee80211_is_reassoc_resp(mgmt->frame_control);
        capab_info = le16_to_cpu(mgmt->u.assoc_resp.capab_info);
        status_code = le16_to_cpu(mgmt->u.assoc_resp.status_code);
        aid = le16_to_cpu(mgmt->u.assoc_resp.aid);