From 9021ccbdeb25e7ff01626a2b1e4b47a42ecc85d1 Mon Sep 17 00:00:00 2001 From: Sandeep Puligilla Date: Mon, 5 Oct 2020 01:09:34 -0700 Subject: [PATCH] qcacmn: Update Non-TX beacon capabilities Non-Tx beacon generated in driver contains TX beacon capabilities instead of capabilities advertised as part of non-TX profile in MBSSID IE. Copy the non-TX beacon capabilities from MBSSID IE profile to driver generated non-TX beacon. Change-Id: Iecf63b959176bac8d60055e6b77082a6f3ec117c CRs-Fixed: 2789394 --- umac/scan/dispatcher/src/wlan_scan_utils_api.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/umac/scan/dispatcher/src/wlan_scan_utils_api.c b/umac/scan/dispatcher/src/wlan_scan_utils_api.c index e218f8cdfd88..010a17b83113 100644 --- a/umac/scan/dispatcher/src/wlan_scan_utils_api.c +++ b/umac/scan/dispatcher/src/wlan_scan_utils_api.c @@ -1949,6 +1949,9 @@ static QDF_STATUS util_scan_parse_mbssid(struct wlan_objmgr_pdev *pdev, QDF_MAC_ADDR_SIZE); qdf_mem_copy(hdr->i_addr3, new_bssid, QDF_MAC_ADDR_SIZE); + bcn = (struct wlan_bcn_frame *)(new_frame + sizeof(struct wlan_frame_hdr)); + /* update the non-tx capability */ + qdf_mem_copy(&bcn->capability, subelement + 4, 2); /* Copy the new ie generated from MBSSID profile*/ qdf_mem_copy(new_frame + offsetof(struct wlan_bcn_frame, ie) +