Commit Graph

26823 Commits

Author SHA1 Message Date
Jeff Johnson
d911c94cbf qcacld-3.0: Rename mac_register_sesssion_open_close_cb()
Rename mac_register_sesssion_open_close_cb() to fix misspelled word
"sesssion" in the name.

Change-Id: Ica569a3997c12baad2c61fed40e2f6721a833630
CRs-Fixed: 3278113
2022-09-10 06:24:52 -07:00
Madan Koyyalamudi
dc0738a046 Release 5.2.1.36P
Release 5.2.1.36P

Change-Id: Iadc24f71e485d1f059adbea9cff411d760cc301a
CRs-Fixed: 774533
2022-09-10 04:45:50 -07:00
Vinod Kumar Pirla
a38838b29f qcacld-3.0: Update link address in dynamic MAC update
For associating to a ML capable AP, driver will use link address.
During dynamic MAC address update the link address in VDEV MLME
is not updated, so leading to sending the auth request with
older link address.

Update the link address as well during dynamic MAC address update.
Copy MLD address in the hdd_adapter only for ML adapter type.

Change-Id: I534e075bb26efeb3c035652cddc5d8d665604089
CRs-Fixed: 3287245
2022-09-10 04:45:50 -07:00
Madan Koyyalamudi
022373bcaf Release 5.2.1.36O
Release 5.2.1.36O

Change-Id: Id29800be571b92b12ba84c38405fffe594617137
CRs-Fixed: 774533
2022-09-10 01:30:41 -07:00
Srinivas Dasari
0d8db0609e qcacld-3.0: Synchronize disconnect in RSO stop req-resp path
Host driver sends RSO stop request to firmware as part of
disconnect and waits for RSO stop response. It pauses the
disconnection and resumes once RSO stop response is received
from the firmware.
But cm_lock is not taken when disconnection is resumed from RSO
stop response path. This causes synchronization issues with
north bound thread which issued the disconnection.
Acquire cm_lock by using cm_sm_deliver_event() API to avoid
this issue.
Disconnect initiator thread and scheduler thread are
synchronized with this change. So, no need to set the RSO
state to STOPPED before sending RSO stop command to
firmware. So the change: I4d43508bdee2b33caba28579939fffdebfab121d
can be reverted.

Change-Id: Id29cd992ecd1bd75cb1b32eebb9e46ca5dcc728d
CRs-Fixed: 3285154
2022-09-10 01:30:41 -07:00
Madan Koyyalamudi
6ceaa72ffb Release 5.2.1.36N
Release 5.2.1.36N

Change-Id: I53620267118ec8435ca807929759935d4e4ff7c8
CRs-Fixed: 774533
2022-09-09 22:25:59 -07:00
abhinav kumar
298dabfecf qcacld-3.0: Update bound range for RoamRSSI_Trigger
Correct Min, Max and Default value for INI
RoamRSSI_Trigger to avoid Out of range error while
cfg ini item parsing in host.

RoamRSSI_Trigger_min 50
RoamRSSI_Trigger_max 100
RoamRSSI_Trigger_default 75

Change-Id: Ifd4f049987c797ca43a865cefbc2d2517560f105
CRs-Fixed: 3283130
2022-09-09 22:25:59 -07:00
abhinav kumar
54d93a74a5 qcacld-3.0: Update SSID check while processing assoc req
Currently host uses starting address of below structure
to compare between SSID coming via association request
(here SSID name is "12") and SSID at which SAP is up
(here SAP SSID name is "13").
typedef struct sSirMacSSid {
    uint8_t length;
    uint8_t ssId[WLAN_SSID_MAX_LEN +1];
} qdf_packed tSirMacSSid;

SSID      First Bytes        Second Bytes   Third Bytes
“12”    Length of SSID = 2        1             2
“13”    Length of SSID = 2        1             3

lim_cmp_ssid(), calls qdf_mem_cmp(), to compare 2 bytes
of memory starting from pointer to session_entry->ssId
above structure. In the above case content of the First
bytes and Second bytes are the same, so qdf_mem_cmp()
returns true to caller API even though both SSID is not
exactly the same. This results in even though SAP's SSID
name is "13", the host allows the processing of an
association request from a client with destination SSID
name is "12" and with the same MAC address, which is not
expected.

To exact Comparision between SSID, lim_cmp_ssid() should
call qdf_mem_cmp() with starting address of pointer to SSID
array present in above structure.

Change-Id: I9879fe09d383b04ec8ab5ad738d1d8efa8fb0f7e
CRs-Fixed: 3282602
2022-09-09 22:25:53 -07:00
Bing Sun
6f0b46b9f1 qcacld-3.0: Indicate more HE capabilty information to SON
HE MCS map, full bandwdith UL MU-MLMO supported, partial bandwidth
UL MU-MLMO supported and partial bandwidth DL MU-MLMO are needed by
EasyMesh agent when sending AP capability report to EasyMesh
controller.

Indicate these information to SON.

Change-Id: Icbf5cb5d7a313568c6a0c1b9a3d70f1f8af4d40e
CRs-Fixed: 3278853
2022-09-09 22:25:48 -07:00
chunquan
00d1710be6 qcacld-3.0: Don't allow SAP setup on indoor chn only
In default configure with sta_sap_scc_on_indoor_chan=1 and
gindoor_channel_support=0, we don't expect sap setup on indoor
channel only.

Change-Id: Ibea0eb41b20bcbdaa365bd3fa4f0a7be7b696493
CRs-Fixed: 3278223
2022-09-09 22:25:43 -07:00
Liangwei Dong
3c5a6dd912 qcacld-3.0: Fix obss_width_trigger_interval zero in WMI command
DUT roams to 2 GHz channel 6 bw 20 MHz,  OBSS parameters are not
initialized by lim_fill_ft_session. Later when DUT gets CSA event
to 2 GHz channel 1 bw 40 MHz, the OBSS scan command will send
invalid obss_width_trigger_interval with zero value to target.
Fix by initialize the OBSS parameters without check current AP's
BW.

Change-Id: I6f895371898fde292cde5a108a3b4fcd95836186
CRs-Fixed: 3287522
2022-09-09 22:25:37 -07:00
Madan Koyyalamudi
092c80e626 Release 5.2.1.36M
Release 5.2.1.36M

Change-Id: I94ab38be7f78bb689f033aa454afba686bdde39e
CRs-Fixed: 774533
2022-09-08 23:03:17 -07:00
Jeff Johnson
8c02edea7b qcacld-3.0: Fix misspelling "asyncronous"
Fix misspelling: asyncronous ==> asynchronous

Change-Id: I97f44b2a50557ffd92b8ed155d600b4cf4d45973
CRs-Fixed: 3275704
2022-09-08 23:03:17 -07:00
Jeff Johnson
4046f1060c qcacld-3.0: Fix misspelling "prority"
Fix misspelling: prority ==> priority

Change-Id: I3e432895ae69e0db53ef48f43588a6f7449a8c13
CRs-Fixed: 3275703
2022-09-08 23:03:11 -07:00
Jeff Johnson
a03cc7c82b qcacld-3.0: Fix misspelling "obselete"
Fix misspelling: obselete ==> obsolete

Change-Id: I3a79f9fb1b3876531646aa5d8cc182d1aa55ca5d
CRs-Fixed: 3275702
2022-09-08 23:03:06 -07:00
Madan Koyyalamudi
702f78463a Release 5.2.1.36L
Release 5.2.1.36L

Change-Id: Ie8a1d98d2016da772ef9395960071f50b4630acf
CRs-Fixed: 774533
2022-09-08 21:23:34 -07:00
Liangwei Dong
343b2e8d9e qcacld-3.0: Fix force SCC for MLO STA inactive case
Two mlo sta link vdev (2+6(LPI)) are started but hw mode is SMM (one
link maybe inactive in fw).
When start SAP on 5 GHz low, driver doesn't select force SCC channel for
such case. It left the SAP channel not changed (5 GHz 5220).
Since the 6 GHz STA link is on LPI mode, SAP is not allowed on
6 GHz (policy_mgr_modify_sap_pcl_for_6G_channels). Driver needs to
consider the PCL as well to select force SCC channel. Add new API
policy_mgr_get_pref_force_scc_freq to fix it.

Change-Id: I824de7168a26955caeeaff955a232c80baa13345
CRs-Fixed: 3280704
2022-09-08 21:23:34 -07:00
Madan Koyyalamudi
b47ad83175 Release 5.2.1.36K
Release 5.2.1.36K

Change-Id: I5524d037ce3be41697c3d3f33896df5809fac6fa
CRs-Fixed: 774533
2022-09-08 18:18:15 -07:00
Aditya Kodukula
2e178c71b5 qcacld-3.0: Process MLO LL_STATS based on vdev_id bitmap
In the current driver implementation for processing MLO LL_STATS,
host expects to receive Radio Stats as the last stats event sent
by FW in response to unified_ll_stats_get_sta command. But, if the
FW sends a dummy Radio stats event as the first stats event,
then it leads to an assertion in the host.

To avoid this issue, add logic to process MLO LL_STATS based on the
mlo_vdev_id_bitmap.

Change-Id: I83dc539c6624963cf054130ff2e3cfb3660cbaf3
CRs-Fixed: 3275406
2022-09-08 18:18:15 -07:00
Madan Koyyalamudi
74648debca Release 5.2.1.36J
Release 5.2.1.36J

Change-Id: I6d259069d463eef53ee0d902096e9e2c167f5bb6
CRs-Fixed: 774533
2022-09-08 14:00:12 -07:00
Jianmin Zhu
a4c7f4f50a qcacld-3.0: Fix roam to legacy failed
When roam to legacy, need keep legacy way to get bssid and freq.

Change-Id: If38e5e28fcc9bc783b10a234d673f4eba32aa61c
CRs-Fixed: 3284986
2022-09-08 14:00:12 -07:00
Jianmin Zhu
56608e95ec qcacld-3.0: Fix assert for race condition
When disconnect from wpa_supplicant and cm event from F/W happen at same
time, supplicant holds cm cm_req_lock and wait rsp of p2p cleanup roc from
scheduler thread until 2 sec timeout, sheduler thread is blocked to wait
for cm_req_lock.

When wmi peer delete of vdev0 is not sent within 1.2 sec after host send
wmi peer delete of vdev1, firmware will assert.

To fix it, don't wait rsp of p2p cleanup roc when disconnect by async way.

Change-Id: I877b7a446dfd12f621dad5049a67574359bdd322
CRs-Fixed: 3285115
2022-09-08 14:00:06 -07:00
Vulupala Shashank Reddy
44e5285e67 qcacld-3.0: Fix the channel for M2 packet in pkt capture mode
Currently in packet capture, channel for data packets is updated
from pdev. We are updating channel in pdev when we receive auth
frame in mon thread. But, sometimes we are updating channel in
radiotap of M2 in pkt_capture_update_tx_status, before mon thread
process auth packet and update channel in pdev, because of
which we are updating wrong channel in M2.

So, to avoid this move update of channel from mon thread to
pkt_capture_mgmtpkt_process.

Change-Id: Icf14c4331849ad7cfdfbd7a3043e4e4dc3d33721
CRs-Fixed: 3266890
2022-09-08 14:00:01 -07:00
Madan Koyyalamudi
d897930118 Release 5.2.1.36I
Release 5.2.1.36I

Change-Id: I65499e2381e69a3ffde0b840f4dc68338e7cc490
CRs-Fixed: 774533
2022-09-08 12:24:00 -07:00
Qun Zhang
a94dbf3aac qcacld-3.0: Update wiphy channel info too for regdb non-offload case
Currently hdd_regulatory_init() only updates wiphy channel info
for regdb offload case, so when in regdb non-offload case, wiphy
channel info have been updated per host driver configuration in
reg_process_master_chan_list() during wlan boot up, but wiphy
channel orig_flags isn't updated to kernel side, and kernel side
still uses original reg rules to populate wiphy channel status.
It causes the result of iw list doesn't align with driver side.

Change-Id: If667dce6e23a8f3cea0432ab11875a3c5771855d
CRs-Fixed: 3280333
2022-09-08 12:24:00 -07:00
Madan Koyyalamudi
2f3751cfe3 Release 5.2.1.36H
Release 5.2.1.36H

Change-Id: I91f93e8fbec2c01293b758a36508b8fac8cd7287
CRs-Fixed: 774533
2022-09-08 10:48:15 -07:00
Utkarsh Bhatnagar
9c250be16d qcacld-3.0: Use uint8_t instead of bool for tdls maxpeercount
Use uint8_t instead of boolean for tdls maxpeercount in
wlan_tdls_features as this will result in restricting max
supported TDLS peer count as one when more than one TDLS
peers are set.

Change-Id: I468f87e80178c0fb2e80b122f59d0dffcfa3928f
CRs-Fixed: 3284105
2022-09-08 10:48:14 -07:00
Madan Koyyalamudi
ce69017341 Release 5.2.1.36G
Release 5.2.1.36G

Change-Id: I8ee5ff95ef342e98a8cecbe25c44ea24825de68b
CRs-Fixed: 774533
2022-09-08 07:47:04 -07:00
Jianmin Zhu
1c32cf7685 qcacld-3.0: Permit pmksa by MLD address
Permit pmksa by MLD address besides link address for 11be MLO.

Change-Id: I2c9569c3473899ba560a5a08b54f51063eb203cd
CRs-Fixed: 3283302
2022-09-08 07:47:04 -07:00
Aditya Kodukula
846b81eb50 qcacld-3.0: Save and restore DBAM config post SSR
Currently the driver doesn't store the DBAM configuration
sent by userspace via vendor command. So, whenever SSR happens,
the DBAM configuration is also lost.

To prevent this, save the DBAM config in the hdd context
when received via vendor command and restore it after re-init.

Change-Id: I186f96505ab9856d23996a7884afff6cd5d85f2f
CRs-Fixed: 3279467
2022-09-08 07:46:58 -07:00
Bing Sun
b9a91ebcaa qcacld-3.0: Fix SAP OWE roaming issue
SAP fails to get RSN IE from reassoc request frame body.

Assoc request and reassoc request have different fixed parameters.
IE should be retrieved based on frame subtype.

Change-Id: I72cfc4cc28cdfeb9a35269d6c1a8c638dea87631
CRs-Fixed: 3283683
2022-09-08 07:46:53 -07:00
Madan Koyyalamudi
b4669d07b2 Release 5.2.1.36F
Release 5.2.1.36F

Change-Id: I8e56e3c0ff92e6a2f450ffd61256cc2324378562
CRs-Fixed: 774533
2022-09-08 04:37:39 -07:00
Rakesh Pillai
93e61d43ec qcacld-3.0: Add pre-alloc entries for fragmented history
Currently the history recording for any debug purpose
is done using a contiguous memory chunk. For certain
history like tx_hw_ring, tx desc or tx completion desc
history, the amount of contiguous memory required is
very huge (order 7 or 8 allocation), which have a
higher probability of failing.

In order to mitigate the above scenario, introduce the
support for recording debug history into fragmented
chunks of memory, thereby reducing the requirement of
contiguous memory.

Change-Id: Ia725cf5d061a53009f02bddd67967360404f2f1c
CRs-Fixed: 3283778
2022-09-08 04:37:39 -07:00
abhinav kumar
500ea62296 qcacld-3.0: Add more debug logs for ACK_TIMEOUT
Add additional debug logs for DISASSOC/DEAUTH
ACK Timer.

Change-Id: Iafc9affeebb187d9e2e59c2c72719e79c7655baa
CRs-Fixed: 3275055
2022-09-08 04:37:33 -07:00
Madan Koyyalamudi
79a36b818d Release 5.2.1.36E
Release 5.2.1.36E

Change-Id: I4b6512a6fbb341d549ebd5bd61f439bc700789bc
CRs-Fixed: 774533
2022-09-08 02:56:51 -07:00
Aravind Kishore Sukla
2f74770e57 qcacld-3.0: Disable dual band SAP + STA support
Disable dual band SAP + STA support.

Change-Id: I71e8f31777148bb4e7d1fcb3df8a91cdc0098567
CRs-Fixed: 3279151
2022-09-08 02:56:51 -07:00
Aravind Kishore Sukla
5d328ac791 qcacld-3.0: Disable legacy rates in 6 GHz frequency band
Disable 11a support on 6 GHz band and change default rate of 6 GHz
frequency band by using WMI_PDEV_PARAM_DEFAULT_6GHZ_RATE.

Change-Id: I2db2dd54c03cf71e1b697796fa3dc58d2646a8b5
CRs-Fixed: 3251997
2022-09-08 02:56:40 -07:00
Madan Koyyalamudi
97805163c9 Release 5.2.1.36D
Release 5.2.1.36D

Change-Id: I42800b2d20db06bbcc5abedbd4c93f23ba315eda
CRs-Fixed: 774533
2022-09-07 16:34:14 -07:00
Azmath Mohammed
0105fcdd46 qcacld-3.0: Fix for code error
Add missing break after the update of ret variable.

Change-Id: Ib9c54575d97d26f05239a2fb44a87a63440b9bdf
CRs-Fixed: 3277218
2022-09-07 16:34:13 -07:00
Madan Koyyalamudi
a4c1ac8223 Release 5.2.1.36C
Release 5.2.1.36C

Change-Id: I93c825151f19d59349cc8f04511b62fb6ae3d0e1
CRs-Fixed: 774533
2022-09-07 13:21:34 -07:00
Jianmin Zhu
d7705f55e1 qcacld-3.0: Fix assert for link adapter user after free
Link adapters are added to tail of hdd adapter list after ml adapter. When
rmmod, remove and delete all adapters from head of the list, so ml adapter
is removed before link adapters, all of it's link adapters are deleted
at same time, later link adpaters are removed from the list, user after
free lead to assert.

To fix it, when a ml adapter is deleted from hdd adapter list, need let
all it's link adapters deleted from hdd adapter list first.

Change-Id: I9a4657000e994ef64d08a6b1fa354cef0b1be6bd
CRs-Fixed: 3278312
2022-09-07 13:21:34 -07:00
Liangwei Dong
7adfbf01fb qcacld-3.0: Add p2p GO mode check in Radar channel switch
If SAP+GO SCC on DFS channel and Radar event is detected, driver
should move out both SAP and GO to new channel. Add GO mode
check in wlansap_roam_process_dfs_chansw_update API.

Change-Id: I824553222be8a8f21ab6c4ac776a4b1e692ed3da
CRs-Fixed: 3280352
2022-09-07 13:21:28 -07:00
Amit Mehta
20055c6534 qcacld-3.0: Add check for interface id
Currently, there is no interface id valid check,
Which is resulting in unnecessary Vdev NULL error
logs for interfaces for which Vdev is not created.

So to fix the excessive logging issue add a check
to validate the interface id.

Change-Id: I86b2a60c11631f5122f866a83427d4cd9b794a02
CRs-Fixed: 3283932
2022-09-07 13:21:22 -07:00
Madan Koyyalamudi
c218584775 Release 5.2.1.36B
Release 5.2.1.36B

Change-Id: I1945a5871922a49e8861f2bb68bee56b692a7735
CRs-Fixed: 774533
2022-09-07 10:13:28 -07:00
Liangwei Dong
900c3e4bd8 qcacld-3.0: Disallow STA CSA during disconnecting
STA is disconnecting and set rso stop to fw, and start "RSO stop"
timer. But in middle of it, the fw csa event comes, and it clears the
"RSO stop" timer, start “RESTAT” timer.
Finally when the RSO status comes from fw,  it can’t stop the rso
timer. Then the disconnecting is stuck in the state.

Fix by ignore the CSA if CM is in disconnecting or disconnected state.

Change-Id: I63f52d3a58b06ee012a05d5a4f194c32c63ab1f5
CRs-Fixed: 3281072
2022-09-07 10:13:28 -07:00
Madan Koyyalamudi
b09c0bcec0 Release 5.2.1.36A
Release 5.2.1.36A

Change-Id: Idd332dd7ec278c0902b799aa606794362c98ce0e
CRs-Fixed: 774533
2022-09-07 07:39:08 -07:00
Jeff Johnson
f5ebdac890 qcacld-3.0: Fix misspelling "stoping"
Fix misspelling: stoping ==> stopping

Change-Id: I493301883736b239eec7c74a7f9d8e3946250e77
CRs-Fixed: 3275700
2022-09-07 07:39:07 -07:00
Madan Koyyalamudi
f48b91b692 Release 5.2.1.36
Release 5.2.1.36

Change-Id: If37f31e9b1f792230c55d0507ec028dcd10fd110
CRs-Fixed: 774533
2022-09-07 06:12:53 -07:00
Jeff Johnson
6ac455a704 qcacld-3.0: Fix misspellings of "control"
Fix misspellings:
conrol ==> control
contrl ==> control
controle ==> control

Change-Id: I7bb6d57fd3a218b0798550943312921f7626e607
CRs-Fixed: 3275699
2022-09-07 06:12:52 -07:00
Jeff Johnson
20929e67b8 qcacld-3.0: Fix misspelling "patern"
Fix misspelling: patern ==> pattern

Change-Id: I4e850c7908f267cfc37fafe42ac3eda51937ebdf
CRs-Fixed: 3275698
2022-09-07 06:12:46 -07:00