Ver Fonte

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
Ashish Kumar Dhanotiya há 7 anos atrás
pai
commit
6e27060b37
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      core/hdd/src/wlan_hdd_cfg80211.c

+ 5 - 0
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) +