Commit f9ed6bbe authored by Surabhi Vishnoi's avatar Surabhi Vishnoi Committed by Zhihong Yu
Browse files

CHROMIUM: ath10k: Fix the wrong calculation of number of unique BI



The number of unique beacon interval is calculated wrongly
as during ieee80211_open call, interface combination check
with beacon interval equal to zero is called. During ieee80211_start_ap
correct beacon interval is sent to interface combination check.
This leads to considering beacon interval zero as a unique interval.
Also when the beacon interval matches,i.e., when is_unique_bi is set
to zero, the number of unique beacon interval is calculated wrongly.

Fix these issues by ignoring the calculation of unique interval
in case of beacon interval is zero and return bi_idx differently
based on value of is_unique_bi.

BUG=b:132147953
TEST=None

Change-Id: Icc67db22ee5cdb335c9a73c2ccd727458966ed1b
Signed-off-by: default avatarSurabhi Vishnoi <svishnoi@codeaurora.org>
Signed-off-by: default avatarVamsi Singamsetty <vamssi@codeaurora.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/1597062


Reviewed-by: default avatarZhihong Yu <zhihongyu@chromium.org>
Reviewed-by: default avatarGovind Singh <govinds@qualcomm.corp-partner.google.com>
Commit-Queue: Zhihong Yu <zhihongyu@chromium.org>
Tested-by: default avatarZhihong Yu <zhihongyu@chromium.org>
parent fd813b0f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment