]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP: Remove unneeded check for 'added_unassociated'
authorIlan Peer <ilan.peer@intel.com>
Mon, 21 Aug 2017 16:36:21 +0000 (19:36 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 25 Sep 2017 18:21:22 +0000 (21:21 +0300)
In fils_hlp_finish_assoc() the station is already added to the
driver so it is not needed to check the 'added_unassociated'
flag.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
src/ap/ieee802_11.c

index 4252fccaaca4b453c2b8f22c0b7bf02964f0b004..5163139f5086dc559d27db7008bb0c345b1044d9 100644 (file)
@@ -2860,14 +2860,11 @@ void fils_hlp_finish_assoc(struct hostapd_data *hapd, struct sta_info *sta)
        sta->hlp_dhcp_discover = NULL;
 
        /*
-        * Remove the station in case tranmission of a success response fails
-        * (the STA was added associated to the driver) or if the station was
-        * previously added unassociated.
+        * Remove the station in case transmission of a success response fails.
+        * At this point the station was already added associated to the driver.
         */
-       if (reply_res != WLAN_STATUS_SUCCESS || sta->added_unassoc) {
+       if (reply_res != WLAN_STATUS_SUCCESS)
                hostapd_drv_sta_remove(hapd, sta->addr);
-               sta->added_unassoc = 0;
-       }
 }