mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
qcacld-3.0: Correct the logic to decrement the beacon count in CSA IE
Beacon template may get updated from many use cases like change in protection mode, update in CSA count and etc. Make sure that the driver maintains the beacon count which is same as in beacon template, otherwise there may be duplicate/missing beacon count due to inconsistency. Decrement the beacon count value before updating the beacon template. Change-Id: I0c4552445071dd6ab5322191c04d4f7d32c9a987 CRs-Fixed: 2170097
This commit is contained in:
parent
0ca68c9f2f
commit
02ec62b207
2 changed files with 8 additions and 3 deletions
|
|
@ -5849,7 +5849,6 @@ skip_vht:
|
|||
send_extended_chan_switch_action_frame(mac_ctx,
|
||||
session_entry->gLimChannelSwitch.primaryChannel,
|
||||
ch_offset, session_entry);
|
||||
session_entry->gLimChannelSwitch.switchCount--;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -2591,6 +2591,14 @@ lim_process_beacon_tx_success_ind(tpAniSirGlobal pMac, uint16_t msgType, void *e
|
|||
|
||||
if (LIM_IS_AP_ROLE(psessionEntry) &&
|
||||
true == psessionEntry->dfsIncludeChanSwIe) {
|
||||
|
||||
if (psessionEntry->gLimChannelSwitch.switchCount) {
|
||||
/* Decrement the beacon switch count */
|
||||
psessionEntry->gLimChannelSwitch.switchCount--;
|
||||
pe_debug("current beacon count %d",
|
||||
psessionEntry->gLimChannelSwitch.switchCount);
|
||||
}
|
||||
|
||||
/* Send only 5 beacons with CSA IE Set in when a radar is detected */
|
||||
if (psessionEntry->gLimChannelSwitch.switchCount > 0) {
|
||||
/*
|
||||
|
|
@ -2605,8 +2613,6 @@ lim_process_beacon_tx_success_ind(tpAniSirGlobal pMac, uint16_t msgType, void *e
|
|||
lim_send_chan_switch_action_frame(pMac,
|
||||
ch, ch_width, psessionEntry);
|
||||
|
||||
/* Decrement the IE count */
|
||||
psessionEntry->gLimChannelSwitch.switchCount--;
|
||||
} else {
|
||||
/* Done with CSA IE update, send response back to SME */
|
||||
psessionEntry->gLimChannelSwitch.switchCount = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue