nl80211: Add BSSID to NL80211_CMD_CONNECT assoc reject event

This commit is contained in:
Jouni Malinen 2010-11-26 17:40:10 +02:00 committed by Jouni Malinen
parent ce04af5a74
commit df89c1c8d1

View 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);