mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
Merge "qcacld-3.0: Dont send beacon report on invalid measure duration" into wlan-cld3.driver.lnx.2.0
This commit is contained in:
commit
bdeafad677
1 changed files with 7 additions and 0 deletions
|
|
@ -524,6 +524,13 @@ rrm_process_beacon_report_req(struct mac_context *mac,
|
|||
pe_info("maxDuration = %d sign = %d maxMeasduration = %d measDuration = %d",
|
||||
maxDuration, sign, maxMeasduration, measDuration);
|
||||
|
||||
if (measDuration == 0 &&
|
||||
pBeaconReq->measurement_request.Beacon.meas_mode !=
|
||||
eSIR_BEACON_TABLE) {
|
||||
pe_err("Invalid measurement duration");
|
||||
return eRRM_REFUSED;
|
||||
}
|
||||
|
||||
if (maxMeasduration < measDuration) {
|
||||
if (pBeaconReq->durationMandatory) {
|
||||
pe_err("Dropping the request: duration mandatory and maxduration > measduration");
|
||||
|
|
|
|||
Loading…
Reference in a new issue