Revert "qcacmn: Do not send the scan entry for nontx profile to cfg80211 layer"

This reverts refer to the Commit-Id
f60c8e57d3.

Change-Id: I4d004ecad6fffd654ee3e90db765acd6cde242c1
CRs-Fixed: 3291428
此提交包含在:
Adwait Nayak
2022-09-15 16:10:27 +05:30
提交者 Madan Koyyalamudi
父節點 3366de83ac
當前提交 321fa3cb5f

查看文件

@@ -2083,33 +2083,6 @@ static inline void wlan_cfg80211_put_bss(struct wiphy *wiphy,
}
#endif
#ifdef WLAN_FEATURE_MBSSID
/**
* wlan_cfg80211_is_nontx_scan_entry() - check if the scan_entry correspond
* nontx profile
* @scan_params: scan entry
*
* Return: true - if nontx profile, false - if tx profile
*/
static inline bool
wlan_cfg80211_is_nontx_scan_entry(struct scan_cache_entry *scan_params)
{
if (scan_params->mbssid_info.profile_count &&
qdf_mem_cmp(scan_params->bssid.bytes,
scan_params->mbssid_info.trans_bssid,
QDF_MAC_ADDR_SIZE) != 0)
return true;
return false;
}
#else
static inline bool
wlan_cfg80211_is_nontx_scan_entry(struct scan_cache_entry *scan_params)
{
return false;
}
#endif
void wlan_cfg80211_inform_bss_frame(struct wlan_objmgr_pdev *pdev,
struct scan_cache_entry *scan_params)
{
@@ -2125,14 +2098,6 @@ void wlan_cfg80211_inform_bss_frame(struct wlan_objmgr_pdev *pdev,
wiphy = pdev_ospriv->wiphy;
if (!wiphy) {
osif_err("wiphy is NULL");
return;
}
if (wlan_cfg80211_is_nontx_scan_entry(scan_params))
return;
bss_data.frame_len = wlan_get_frame_len(scan_params);
bss_data.mgmt = qdf_mem_malloc_atomic(bss_data.frame_len);
if (!bss_data.mgmt) {