mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 13:44:26 -04:00
qcacld-3.0: Some AP are missed in Beacon Report response
In radio measurement beacon report frame, The BSSID field indicates the BSSID of the BSS(s) for which a beacon report is requested. When requesting beacon reports for all BSSs on the channel, the BSSID field contains the wildcard BSSID; otherwise the BSSID field contains a specific BSSID for a single BSS. If BSSID is wildcard BSSID, bssid num should be 0 when use fill scan result filter, or filtered scan result is always empty since wildcard BSSID can't match any normal bssid. Change-Id: Ia172ac8160d0c38ce4c875fc29458c6c8f26c804 CRs-Fixed: 2599634
This commit is contained in:
parent
010f447523
commit
7ff7fe7d37
1 changed files with 10 additions and 5 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2011-2019 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2011-2020 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
|
|
@ -450,10 +450,15 @@ static QDF_STATUS sme_rrm_send_scan_result(struct mac_context *mac_ctx,
|
|||
if (!filter)
|
||||
return QDF_STATUS_E_NOMEM;
|
||||
|
||||
/* update filter to get scan result with just target BSSID */
|
||||
filter->num_of_bssid = 1;
|
||||
qdf_mem_copy(filter->bssid_list[0].bytes,
|
||||
rrm_ctx->bssId, sizeof(struct qdf_mac_addr));
|
||||
if (qdf_is_macaddr_zero(filter->bssid_list) ||
|
||||
qdf_is_macaddr_group(filter->bssid_list)) {
|
||||
filter->num_of_bssid = 0;
|
||||
} else {
|
||||
/* update filter to get scan result with just target BSSID */
|
||||
filter->num_of_bssid = 1;
|
||||
qdf_mem_copy(filter->bssid_list[0].bytes,
|
||||
rrm_ctx->bssId, sizeof(struct qdf_mac_addr));
|
||||
}
|
||||
|
||||
if (rrm_ctx->ssId.length) {
|
||||
filter->num_of_ssid = 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue