From 6e27060b376ef3091c368e782e2be0ecb58f55b1 Mon Sep 17 00:00:00 2001 From: Ashish Kumar Dhanotiya Date: Thu, 18 Jan 2018 15:14:58 +0530 Subject: [PATCH] qcacld-3.0: Add host support to send MAC address to Supplicant Currently remote OUI is not getting updated when get station info is done in STA case. Add support to send AP MAC address to upper layer, upper layer can use this MAC to derive OUI information of the AP. Change-Id: I2091f47c2f0d605969c047663e266992e631484b CRs-Fixed: 2174523 --- core/hdd/src/wlan_hdd_cfg80211.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 8223ad7031c2..6892fcd83a91 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -4793,6 +4793,10 @@ hdd_add_link_standard_info(struct sk_buff *skb, hdd_err("put fail"); goto fail; } + if (nla_put(skb, NL80211_ATTR_MAC, QDF_MAC_ADDR_SIZE, + hdd_sta_ctx->conn_info.bssId.bytes)) { + goto fail; + } if (hdd_add_survey_info(skb, hdd_sta_ctx, NL80211_ATTR_SURVEY_INFO)) goto fail; if (hdd_add_sta_info(skb, hdd_sta_ctx, NL80211_ATTR_STA_INFO)) @@ -4859,6 +4863,7 @@ static int hdd_get_station_info(struct hdd_context *hdd_ctx, nl_buf_len = NLMSG_HDRLEN; nl_buf_len += sizeof(hdd_sta_ctx->conn_info.last_ssid.SSID.length) + + QDF_MAC_ADDR_SIZE + sizeof(hdd_sta_ctx->conn_info.freq) + sizeof(hdd_sta_ctx->conn_info.noise) + sizeof(hdd_sta_ctx->conn_info.signal) +