In CN country code, 5180 is indoor channel with channel
state DFS, but not DFS channel flags.
wlan_hdd_handle_zero_acs_list try to find preferred channel
for SAP to start, but it selected 5180 because
wlan_reg_is_dfs_for_freq check DFS by DFS channel flags
and return false for indoor channel 5180. The other
concurrency code use channel state to check DFS channel.
Fix the mismatch to use wlan_reg_get_channel_state_for_pwrmode
API to check DFS channel state. and make the DFS channel as
last choice.
Change-Id: I39b81ea256ab9b944a284862afe9d50ee5fc2a8d
CRs-Fixed: 3404069
In send frames APIs, Use QDF_MAC_ADDR_FMT macro to print
the mac_address instead of using lim_print_mac_addr() API.
Change-Id: I435e89300ca4cee44aed317527a79eb08c71c369
CRs-Fixed: 3401405
Instead of calling lim_print_mac_addr() API to print the mac_addr
in lim, directly use the QDF_MAC_ADDR_FMT macro.
Change-Id: Ib3eab515ef0a3716f7c3257280239e3975c6b601
CRs-Fixed: 3401402
Currently, if there is a legacy connection and a new STA
connection comes up with EMLSR capability, Host does not
advertise EML caps in assoc request. But there is no support
to enable EMLSR mode if the legacy connection goes away.
Thus, add support to handle this concurrency scenario as
follows
1) Host should advertise EML support capability in assoc
request.
2) After association is complete, force disable one of the
EMLSR links.
3) Once the legacy connection goes down, re-enable the
disabled link.
Change-Id: I5d9f37827e2a9f0571fa9733b4779668bd987f92
CRs-Fixed: 3363115
During OWE roaming if north bound disconnect is received or
link vdev connection fails copied reassoc response is not freed.
Fix is to free the copied reassoc response in the disconnect path.
Change-Id: I19d839b63c774b29ee449635722fae744c7e461d
CRs-Fixed: 3404843
Currently, TDLS STA disconnect notification is not sent during
roam, so WMI_TDLS_SET_STATE_CMDID with disable command is not sent
to firmware. This leads to unexpected behavior in firmware when STA
have migrated to different mac based on new band (2 GHz to 5/6 GHz or
vice-versa) due to roaming, but TDLS STA remain on previous mac.
Firmware expects host to send WMI_TDLS_SET_STATE_CMDID on roam also
so that it can destroy and create new TDLS STA instance and map TDLS
STA to new mac.
To fix above issue, send WMI_TDLS_SET_STATE_CMDID with disable TDLS
state to firmware after driver receives roam sync indication which
leads to destruction of TDLS STA instance in firmware.
Host driver would later send WMI_TDLS_SET_STATE_CMDID with enable TDLS
state(not part of this commit) after successful STA roaming so that
firmware maps TDLS STA with new mac.
This change also removes unused ucfg_tdls_notify_sta_connect() and
ucfg_tdls_notify_sta_disconnect() APIs.
Change-Id: Id680d0f6193740b24e78115ac7dc7be26e28acff
CRs-Fixed: 3388507
For newer AKMs with key materials length greater than
16bytes, kek, kck lengths varies. Therefore, get the
lengths explicitly from firmware and use them for saving
kek and kek materials.
Change-Id: Ie7ae61744e101899f12addc1baf90aed542a367b
CRs-Fixed: 3371470
Currently, for mobile router the DFS CAC feature is not working
because PRE_CAC_SUPPORT does not define.
Change-Id: I5eb335fe738de8438b8ec60f4d69875cb0a45d6e
CRs-Fixed: 3397747
Don't allow ll SAP to turn on frequency that can be shared
with 2 GHz MAC. To avoid the scenario introduce a check to validate
whether MIN 2 GHz frequency is shared with selected frequency, if
yes then indicate to the caller that frequency is not suitable
for SAP start.
Change-Id: I9a72549cd8c565d15f550d27151a7a0f172b292a
CRs-Fixed: 3403457
Currently, For CH_WIDTH 20 first clean channel is selected
to start the SAP but logic was not applicable to other band
wdiths because FW can start scan in parallel and for bandwidth
> 20 MHz multiple continuous channels may require to scan and
data was not maintained in host that which channel is scanned
and which is pending.
To Extend logic for bandwidth > 20 MHz, introduce bool array
to maintain data which channel is scanned and found clean. For next
Channel scan same array can be used to check if previous channels
are clean and SAP can be started on current frequency or not.
Change-Id: I9993c0b26885210b4173946e780833dc87830daf
CRs-Fixed: 3403455
Currently, if ACS_LAST_SCAN_AGEOUT_TIME is not provided by user then
the last_scan_ageout_time is updated to 0 and full scan is triggered
to find channel instead of using previous scan results.
Fix is to consider last full scan results for provided time in ms
via last_scan_ageout_time ini.
Change-Id: I0a38133a89339598a5be4ce0e2aa9120e0135502
CRs-Fixed: 3404676
Refine target_if_ext_twt_evt.c to remove duplicate conditional
checks.
Also fix some code style errors by adding a blank line return to
last return in the API
Change-Id: I759becd864293b8bec35cb54763bdf4b047537c2
CRs-Fixed: 3402852
Currently in __wlan_hdd_cfg80211_get_txpower if modules are
not enabled or rate is limited host sends cached tx power
to userspace but there is no print in host to validate its
value.
To address this issue, add cached tx power print.
Change-Id: I2ddc88c4511101534513e76008fb4f1b78a8833a
CRs-Fixed: 3407171
In present scenario, STA disconnects with AP if it receives
invalid channel in CSA IE. In this case STA shouldn't
disconnect with AP as this request may come from a spoof AP.
Ignore this CSA request as it might be from spoof AP and
if it is from genuine AP heart beat failure happens and
results in disconnection. After disconnection DUT may
reconnect to same or other APs.
Change-Id: I840508dd27d8c313a3e8f74c4e1f5aa64eecf6f9
CRs-Fixed: 3390251
Currently host driver returns dot11 mode as UNKNOWN for
11BE connection to connect_info sysfs command as mapping
is not present for 11BE mode in hdd_dot11_mode_str.
To address this issue add mapping for 11BE mode in
hdd_dot11_mode_str.
Change-Id: Ia94abfdf4e967d1c0f8d49f9e4757a9a07dab410
CRs-Fixed: 3402629
For low latency SAP, scan is not allowed on same MAC on which
SAP is up. So, consider HOST_CONCURRENT_AP_POLICY_XR when scan
list is required to be updated for low latency ap profile.
Change-Id: I6e25cd67298c16dee211edf6526be101054bd787
CRs-Fixed: 3404641
Add support to configure EHT OM control. Also, configure
HE OM control within band specific HE cap structures.
Change-Id: I658281902699be27db536e2134dbd76c99aec41b
CRs-Fixed: 3377862
In all Wi-Fi 7 STA SW implementations, ignore the CCFS0
field in the EHT operation element when the channel BW
is 160 or 320 MHz as per spec, thus CCFS0 is set to an
invalid value e.g. 0 in EHT operation element. Hence,
skip center frequency check when bandwidth is 160 MHz
or 320 MHz and avoid dropping of bandwidth to 20 MHz.
Change-Id: Ic2fe8f74d8372f988b4fed8d926b5186678ce9d1
CRs-Fixed: 3338639
Set the dfs bit to true in csr update channel params struct
only if the channel state is DFS.
Change-Id: Ib36b1c0a0b16bc0b42462396e8871adcf7b5e16d
CRs-Fixed: 3392038
Add support to exclude sta profile subelement from MLO IE in
unicast probe request.
Change-Id: Ief4fd288649bbe915c2ef73afb24a21a56f238e8
CRs-Fixed: 3392034
Use QDF_MAC_ADDR_FMT macro to print the mac_address
instead of using lim_print_mac_addr() API.
Change-Id: I36b3f56fe3dbe3b06b554a47c0bd9b023caeb5e6
CRs-Fixed: 3401155
Fix HE and EHT MCS NSS rates for 160 MHz channel
bandwidth. Copy the MCS and NSS values for 160 MHz from
MLME cfg into per band HE and EHT capability structures
since the latter is used for sending the values to FW.
Change-Id: I958c5778497c6bc81eae7709e8d5f497056faaca
CRs-Fixed: 3392023
In the case of EHT, if the mode is MLO then set AMSDU/AMPDU
caps per vdev instead of setting it only on assoc vdev.
Change-Id: Iaf480ee6a42cea83e30f412f663f688c0330d246
CRs-Fixed: 3392015
Add a new SME API to update session EHT capabilities.
This includes Tx BFee support as well as Tx BF settings for
different bandwidths such as < 80 MHz, 160 MHz, and 320 MHz.
For future scope, more EHT caps can be updated within this
same API based on the inputs.
Change-Id: I16b0e8ec9a4c97f6475f871bda3a4627168d43d7
CRs-Fixed: 3277133
Add support to force enable/disable MLO links in MLSR mode
based on link mac address. The input will be an array of
active link mac addresses. Force enable the links associated
with all the mentioned link addresses and force disable the
links associated with mac addresses that are not given in
the input.
Change-Id: I14660f14ba6381da04460b641f971734c03aa9a7
CRs-Fixed: 3391992
In multilink ML STA, if one link is removed by AP, and no other
active link, trigger roam by roaming invoke command.
Change-Id: I61d9413e2102315b258f946af2193f7cfb7b91aa
CRs-Fixed: 3352870
Currently smart tx module is not included in gFwDebugModuleLoglevel
ini as default.
Add the smart tx module with log level 1 in gFwDebugModuleLoglevel
ini as default.
CRs-Fixed: 3396120
Change-Id: I09e49745dfc17926d1f59b6bbe7a99ae09e36a16
The kernel-doc script detected a single documentation error in the
uapi folder, in uapi/linux/pktlog_ac_fmt.h, so fix it.
Change-Id: Ia1b1f2f7c7d84844cb36b980982d07d76e0d1015
CRs-Fixed: 3403505
When auth tx failure happens, lim_auth_tx_complete_cnf sets
stats for variable mac_ctx->auth_ack_status accordingly.
But lim_process_auth_retry_timer will reset that variable
to LIM_ACK_NOT_RCD. If auth retry has sent and tx complete
has not called back yet, then lim_process_auth_failure_timeout
happens, now since the variable auth_ack_status is not updated
again and driver reports wrong auth failure status to framework.
To resolve this issue, don't reset auth_ack_status when auth
retry sending.
Change-Id: I51c296cb6d8d7a145bba6b49d0b378cb9f6ff665
CRs-Fixed: 3400258