qcacmn: Reinitialise channel bitmap to 0 for every RCSA

When RCSA is enabled, if Repeater AP detects radar, the
subchannels affected by radar are sent in addtoNOL IE to the
rootAP as a bitmap. Reinitialise this bitmap for every RCSA to
avoid misinterpretation in rootAP.

Change-Id: Ie6cee841f6f05cfdfc5060afd55b83a34730f31f
CRs-Fixed: 2450786
This commit is contained in:
Vignesh Mohan
2019-05-13 12:03:02 +05:30
committed by nshrivas
parent 9f525cbddc
commit a3a42b4675

View File

@@ -658,6 +658,11 @@ void dfs_set_rcsa_flags(struct wlan_dfs *dfs, bool is_rcsa_ie_sent,
dfs->dfs_is_nol_ie_sent = is_nol_ie_sent;
}
static void dfs_reset_nol_ie_bitmap(struct wlan_dfs *dfs)
{
dfs->dfs_nol_ie_bitmap = 0;
}
bool dfs_process_nol_ie_bitmap(struct wlan_dfs *dfs, uint8_t nol_ie_bandwidth,
uint16_t nol_ie_startfreq, uint8_t nol_ie_bitmap)
{
@@ -800,6 +805,7 @@ QDF_STATUS dfs_process_radar_ind(struct wlan_dfs *dfs,
(dfs->dfs_is_rcsa_ie_sent = false) :
(dfs->dfs_is_rcsa_ie_sent = true);
if (dfs->dfs_use_nol_subchannel_marking) {
dfs_reset_nol_ie_bitmap(dfs);
dfs_prepare_nol_ie_bitmap(dfs, radar_found, channels,
num_channels);
dfs->dfs_is_nol_ie_sent = true;