]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Add BSSID to NL80211_CMD_CONNECT assoc reject event
authorJouni Malinen <jouni.malinen@atheros.com>
Fri, 26 Nov 2010 15:40:10 +0000 (17:40 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 26 Nov 2010 15:40:10 +0000 (17:40 +0200)
src/drivers/driver_nl80211.c

index f386fa2135e87e447a911718abf24065dd9da4b5..71640fc88d7164ebe74045120f3d22ab05f708b2 100644 (file)
@@ -641,6 +641,8 @@ static void mlme_event_connect(struct wpa_driver_nl80211_data *drv,
        os_memset(&event, 0, sizeof(event));
        if (cmd == NL80211_CMD_CONNECT &&
            nla_get_u16(status) != WLAN_STATUS_SUCCESS) {
+               if (addr)
+                       event.assoc_reject.bssid = nla_data(addr);
                if (resp_ie) {
                        event.assoc_reject.resp_ies = nla_data(resp_ie);
                        event.assoc_reject.resp_ies_len = nla_len(resp_ie);