]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add BSSID to association rejected events
authorJouni Malinen <jouni.malinen@atheros.com>
Wed, 27 Oct 2010 17:27:39 +0000 (20:27 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 27 Oct 2010 17:27:39 +0000 (20:27 +0300)
src/drivers/driver.h
src/drivers/driver_nl80211.c

index 4bdc13d9ecb69d80742224d6d3a1d3a2d970cdd9..6d9f55cb66c5e5191f1331573a623c4f6458e5c8 100644 (file)
@@ -2071,7 +2071,7 @@ enum wpa_event_type {
         * EVENT_ASSOC_REJECT - Association rejected
         *
         * This event should be called when (re)association attempt has been
-        * rejected by the AP. Information about authentication result is
+        * rejected by the AP. Information about the association response is
         * included in union wpa_event_data::assoc_reject.
         */
        EVENT_ASSOC_REJECT,
@@ -2443,6 +2443,11 @@ union wpa_event_data {
         * struct assoc_reject - Data for EVENT_ASSOC_REJECT events
         */
        struct assoc_reject {
+               /**
+                * bssid - BSSID of the AP that rejected association
+                */
+               const u8 *bssid;
+
                /**
                 * resp_ies - (Re)Association Response IEs
                 *
@@ -2454,7 +2459,7 @@ union wpa_event_data {
                 * This should start with the first IE (fixed fields before IEs
                 * are not included).
                 */
-               u8 *resp_ies;
+               const u8 *resp_ies;
 
                /**
                 * resp_ies_len - Length of resp_ies in bytes
index 352ecd5907b31e2a91fc94976dd6c13458b5a119..c172409609c1c49b2e7ba584d5d8bf3a1d9e32ff 100644 (file)
@@ -592,6 +592,7 @@ static void mlme_event_assoc(struct wpa_driver_nl80211_data *drv,
        status = le_to_host16(mgmt->u.assoc_resp.status_code);
        if (status != WLAN_STATUS_SUCCESS) {
                os_memset(&event, 0, sizeof(event));
+               event.assoc_reject.bssid = mgmt->bssid;
                if (len > 24 + sizeof(mgmt->u.assoc_resp)) {
                        event.assoc_reject.resp_ies =
                                (u8 *) mgmt->u.assoc_resp.variable;