qcacmn: Fetch bcn/probe rsp with given mac addr from scan db

Fetch beacon/probe response with given mac address from scan db.
The frame can be used to fill bss descriptor in case of MLO
roaming where scan entry is derived from ML probe response of
assoc link.

Change-Id: Ie20b36c6619dd0e44d04d3bd8767c7dd09b053d5
CRs-Fixed: 3342439
This commit is contained in:
Srinivas Dasari
2022-11-21 21:37:30 +05:30
committad av Madan Koyyalamudi
förälder 75dd9dfa21
incheckning 8b311c3358
4 ändrade filer med 96 tillägg och 1 borttagningar

Visa fil

@@ -294,7 +294,7 @@ bool wlan_scan_is_snr_monitor_enabled(struct wlan_objmgr_psoc *psoc);
* scheduler thread
* @psoc: psoc context
* @buf: frame buf
* @params: rx event params
* @rx_param: rx event params
* @frm_type: frame type
*
* handle bcn without posting to scheduler thread, this should be called
@@ -460,4 +460,22 @@ wlan_scan_unregister_requester(struct wlan_objmgr_psoc *psoc,
*/
bool wlan_scan_cfg_skip_6g_and_indoor_freq(
struct wlan_objmgr_psoc *psoc);
/**
* wlan_scan_get_entry_by_mac_addr() - Get bcn/probe rsp from scan db
* @pdev: pdev info
* @bssid: BSSID of the bcn/probe response to be fetched from scan db
* @frame: Frame from scan db with given bssid.
*
* This is a wrapper to fetch the bcn/probe rsp frame with given mac address
* through scm_scan_get_entry_by_mac_addr(). scm_scan_get_entry_by_mac_add()
* allocates memory for the frame and it's caller responsibility to free
* the memory once it's done with the usage i.e. frame->ptr.
*
* Return: QDF_STATUS_SUCCESS if scan entry is present in db
*/
QDF_STATUS
wlan_scan_get_entry_by_mac_addr(struct wlan_objmgr_pdev *pdev,
struct qdf_mac_addr *bssid,
struct element_info *frame);
#endif

Visa fil

@@ -745,3 +745,11 @@ void wlan_scan_update_low_latency_profile_chnlist(
req->scan_req.chan_list.num_chan = num_scan_channels;
}
#endif
QDF_STATUS
wlan_scan_get_entry_by_mac_addr(struct wlan_objmgr_pdev *pdev,
struct qdf_mac_addr *bssid,
struct element_info *frame)
{
return scm_scan_get_entry_by_mac_addr(pdev, bssid, frame);
}