Commit graph

22,770 commits

Author SHA1 Message Date
Madan Koyyalamudi
7200c082ef Release 2.0.8.28D
Release 2.0.8.28D

Change-Id: Ic20ab4527f25187de25a4c481cc44f9a9b548111
CRs-Fixed: 774533
2022-03-21 01:27:26 -07:00
Sai Pavan Akhil Remella
32925f7183 qcacld-3.0: Send channel list to fw in case of PNO
In case of PNO scan, If firmware supports
WMI_SERVICE_PNO_SCAN_CONFIG_PER_CHANNEL, it uses the
upper-12 bits(bit-20 to bit 32) of channel_list for
flags and lower 20-bits(bit-0 to bit-19) for frequency.
If firmware doesn't support it, then channel_list holds
the frequency value only.

Fix is to fill the flags and frequency accordingly.

Change-Id: I8473072069da4532406ce720a0070a665e29b1af
CRs-Fixed: 3103939
2022-03-21 01:27:26 -07:00
Madan Koyyalamudi
ebd07f292b Release 2.0.8.28C
Release 2.0.8.28C

Change-Id: I8c16c7e503345a7cf34d01614211c997d52083e0
CRs-Fixed: 774533
2022-03-20 03:41:05 -07:00
Surya Prakash Sivaraj
80fb0f5c1c qcacld-3.0: Reduce stack frame size in wlan_update_bss_with_fils_data
Reduce stack frame size of wlan_update_bss_with_fils_data()
by allocating dynamic memory to fils indication.

Change-Id: I799100558b4192f4be2eaa1fb4f9508a2cb73e66
CRs-Fixed: 3123325
2022-03-20 03:41:04 -07:00
Madan Koyyalamudi
68285abdca Release 2.0.8.28B
Release 2.0.8.28B

Change-Id: I5ab489a448b80d1dc4cbe1bed5d0f746f5abdfd0
CRs-Fixed: 774533
2022-03-09 04:22:45 -08:00
Surabhi Vishnoi
5f54dfa6bc qcacld-3.0: Fix deadlock scenario in packet capture mode
Ppdu_stats are received from firmware in softirq context.
While inserting the ppdu_stats into a qdf list, a spinlock
is held for its access, same qdf list is accessed by mon
thread using spinlock. There can be a scenario in which
mon_thread held spinlock for accessing qdf_list and is
interrupted by softirq in which ppdu_stats are received.
This leads to softirq spinning for lock forever leading
to deadlock.

To address this issue, use spin_lock_bh instead of spin_lock.
Also reduce the time for which lock is taken to access the list
for insertion and removal of ppdu_stats.

Change-Id: I52171fe3c1d22a1e9d1ab36daac54d8fa2b96020
CRs-Fixed: 3136901
2022-03-09 04:22:44 -08:00
Madan Koyyalamudi
5d97da4909 Release 2.0.8.28A
Release 2.0.8.28A

Change-Id: I1f27c54bde28a37ec4bc0c4f9b008b8eb7ab85a6
CRs-Fixed: 774533
2022-03-06 23:39:57 -08:00
Paul Zhang
253809176b qcacld-3.0: fetch profile_data from right position
Since structure wmi_wlan_profile_t includes tlv header, it has
to consider the tlv header in each iteration.

CRs-Fixed: 3136374
Change-Id: I14a86ed14f616a5f1aaeabd25a81fa22d762ffe3
2022-03-06 16:27:19 -08:00
Madan Koyyalamudi
582d6d0396 Release 2.0.8.28
Release 2.0.8.28

Change-Id: I3b8476b5c834c2f728cf7f749e0578d2242926ee
CRs-Fixed: 774533
2022-03-03 13:47:35 -08:00
Srinivas Dasari
fe9c07c9bc qcacld-3.0: SAE: delete preauth node if it's present in list
In SAP mode, a preauth node is added to the preauth list when
assoc rejection happens due to some reason (e.g. blacklisting
the station BSSID). But when station tries SAE authentication,
host driver doesn't add/update the entry in preauth node list
as a node with same mac address is present in the list.

Host driver relies on the flag is_sae_authenticated to decide
whether to proceed with association or go for PMKID validation.
is_sae_authenticated is set to true only when SAE authentication
is completed and the node in preauth list has type as SAE.
But the preauth node added as part of assoc reject doesn't have
this info correct, which is disallows association as
is_sae_authenticated is not set. Fixing this here is
not a right way as the auth state also to be updated
to eLIM_MLM_WT_SAE_AUTH_STATE when first SAE auth frame
is received.
So, delete the existing preauth node and create a new one when
the first SAE auth frame is received to avoid stale entries.

Change-Id: I0acd72f960ba1de2a656b55a9805561322dfffe9
CRs-Fixed: 3135389
2022-03-03 13:47:35 -08:00
Madan Koyyalamudi
3d9064092c Release 2.0.8.27Z
Release 2.0.8.27Z

Change-Id: Ia5544a0b99538047e0143269cff37c3817dab73a
CRs-Fixed: 774533
2022-03-03 10:59:24 -08:00
chunquan
7f077b4b73 qcacld-3.0: Fix out-of-bounds in tx_stats
The tx_stats array length num_entries can't be more than
param_buf->num_tx_stats from fw.
Otherwies out-of-bounds will happen when read wmi_tx_stats.

Change-Id: I7ab3c7cc7baef6d903ba6301622bd67efe52cebe
CRs-Fixed: 3104318
2022-03-03 10:59:24 -08:00
Madan Koyyalamudi
63d7eb96cf Release 2.0.8.27Y
Release 2.0.8.27Y

Change-Id: I9330b8ae32003129815211c3adec179c4c95470f
CRs-Fixed: 774533
2022-03-03 07:11:27 -08:00
chunquan
b390736b4d qcacld-3.0: Release serialization cmd when get peer null
In P2P connect process, GO and GC send deauth/disassoc at the
end of WPS. GO send disassoc and free station info. GO receive
deauth from GC, and send cmd WLAN_SER_CMD_GET_DISCONNECT_STATS
to get disconnect stats

If GO send deauth and free peer info before receive deauth
from GC. Wlan_objmgr_get_peer return null, and peer is null.
Cmd of WLAN_SER_CMD_GET_DISCONNECT_STATS will never be
released since get_peer_rssi_cb will never be called.
And cmd will timeout, which is not expected.

If we call get_peer_rssi_cb without check, cmd will release.
Also csr_get_peer_rssi_cb will check peer is null or not.

Change-Id: I10b496526e259711a4dd7a91b7388ac79bb54fef
CRs-Fixed: 3119513
2022-03-02 15:25:18 +08:00
Madan Koyyalamudi
66f428db2c Release 2.0.8.27X
Release 2.0.8.27X

Change-Id: Ie9f629d45da41cee534bfb007e8d387c29cc8f21
CRs-Fixed: 774533
2022-02-28 22:32:34 -08:00
Abhinav Kumar
5dc5ea538c qcacld-3.0: STA falis to notify Disassoc Imminent to UI
In case of connection with Hotspot 2.0 AP, Disassocition
Imminent frame needs to be forwarded to userspace, so that
user can take necessary action, like issue pop-up
notification etc.

Currently, in case of connection with Hotspot 2.0 AP,
FW/HOST does not forward disassocition imminent frame
to userspace. This causes user-space fail to issue
necessary notification(s).

Disable BTM offload in firmware if connect req has
HS2.0 IE, so that FW/HOST forward Disassocition Imminent
frame to to userspace.

Change-Id: Ica57fb7399ef21069d599a1046a7da6fbd42bb43
CRs-Fixed: 2733036
2022-02-28 22:32:34 -08:00
Madan Koyyalamudi
ca433a9896 Release 2.0.8.27W
Release 2.0.8.27W

Change-Id: I480d1cf5d58a90777970f08a1183f88115dae8d9
CRs-Fixed: 774533
2022-02-25 09:08:51 -08:00
Balaji Pothunoori
44e489aad7 qcacld-3.0: select min bw during csa if channel bonding disabled
During CSA max bw is selected for SAP in STA + SAP concurrency
for non-dfs channel and SAP is tear down after 60 sec of operation
due to STA is in 20Mhz and SAP is in 40Mhz with
IEEE80211_HT_CAP_SUP_WIDTH_20_40 flag disabled.

This change is to select 20Mhz BW during CSA if channel bonding is
disabled.

Change-Id: If4ed3d9a080ed976a0f4be6704848ae4494c7bbc
CRs-Fixed: 3126074
2022-02-25 11:40:21 +05:30
Madan Koyyalamudi
9e549fae37 Release 2.0.8.27V
Release 2.0.8.27V

Change-Id: I602c952ce3a6397df3c0889fc6e26eaff78608e9
CRs-Fixed: 774533
2022-02-24 11:39:40 -08:00
Sheenam Monga
4915b5f7f5 qcacld-3.0: Add TPC Report in probe response
Currently, TPCReport IE is populated for beacon2 but
is not populated for probe response. As per Table 9-34
TPC report should be present in probe response.

Fix is to populate TPC Report IE for probe response from
beacon2.

Change-Id: I1b384ef71ca99e0144374885cafcd864375a3b58
CRs-Fixed: 3128799
2022-02-24 11:39:40 -08:00
Madan Koyyalamudi
269d802287 Release 2.0.8.27U
Release 2.0.8.27U

Change-Id: I3a55806fdb6d9e4ad75092eddaa120bde0037da5
CRs-Fixed: 774533
2022-02-22 23:25:27 -08:00
Deeksha Gupta
d19387e676 qcacld-3.0: Remove roam_invoke_timer stop in case of ROAM_ABORT
Currently, for gEnableNUDTracking=3 ini, if NUD failure
happens, host sends the ROAM_INVOKE_CMD to fw and start
the roam_invoke timer and after roam_timer timeout or
ROAM_INVOKE_FAIL host sends disconnect. Suppose in response,
fw sends ROAM_START and ROAM_ABORT before sending
ROAM_INVOKE_FAIL, then host stops roam_invoke timer
in ROAM_ABORT case. Due to this, in ROAM_INVOKE_FAIL host
doesn't find timer and returns failure without sending
disconnect.

Fix is, remove the roam_invoke timer stop in case of
ROAM_ABORT and add it in north and south bound disconnect.

Change-Id: I6b7790f1e59d137c1476a8ad80fc4f113e86e580
CRs-Fixed: 3132545
2022-02-22 23:25:27 -08:00
Karthik Kantamneni
677b8b1d90 qcacld-3.0: Fix reo id mismatch in fisa path
Currently when reo id mismatch check is done there is
possiblity of flow getting evicted same time this may
lead to false alarm. To avoid this race condition reo id
mismatch check is done under lock protection.

Change-Id: I7d3ac25ec8c806677697242a0fd3fa338c0a6ad2
CRs-Fixed: 3129761
2022-02-22 15:05:47 +05:30
Madan Koyyalamudi
5360717dad Release 2.0.8.27T
Release 2.0.8.27T

Change-Id: I88468b8a178cdfead5f4a0a44f515dd83b4fd150
CRs-Fixed: 774533
2022-02-21 04:06:20 -08:00
Liangwei Dong
c6b5b479d2 qcacld-3.0: Fix out of bounds access for he_ppet
Add numss_m1 and ru_bit_mask check before access the data in
ppet16_ppet8_ru3_ru0.
numss_m1 + 1 should not exceed WMI_HOST_MAX_NUM_SS.
ru count should not exceed 4.

Change-Id: Ide6b562dacb0592fb5c2101c0ce016570cb1dac3
CRs-Fixed: 3080599
2022-02-21 04:06:20 -08:00
Madan Koyyalamudi
a210b0fbdd Release 2.0.8.27S
Release 2.0.8.27S

Change-Id: I873e7d2814cb5bed9cdda5cb2c79914b516273ff
CRs-Fixed: 774533
2022-02-16 13:52:05 -08:00
Krupali Dhanvijay
49ccee8788 qcacld-3.0: Revert double free change
The mainline change of change-id Idc70e8437f89cb1cf4f6d35f924085409994714a
fixes a double free issue introduced as part of
wma->target_if migration of WMI_ROAM_PMKID_REQUEST_EVENTID event handling.
But this is not applicable for legacy branches as the same migration
changes are not done.

So Reverting the double free
change in wma_roam_pmkid_request_event_handler.

Change-Id: I88d31a295398eb2ab700857260285450a8f245bd
CRs-Fixed: 3130848
2022-02-16 10:12:34 +05:30
Madan Koyyalamudi
dfc2e22b87 Release 2.0.8.27R
Release 2.0.8.27R

Change-Id: I49e5be2545e29d7a491888407a6d66ac8c3bc77c
CRs-Fixed: 774533
2022-02-14 10:55:30 -08:00
Krupali Dhanvijay
aadc62a0e6 qcacld-3.0: Fix double free in wma_roam_pmkid_request_event_handler
Currently memory allocated for structure roam_pmkid_req_event
is freed in two places causing usage after free.
Fix is to free memory only once in
wma_roam_pmkid_request_event_handler.

Change-Id: Idc70e8437f89cb1cf4f6d35f924085409994714a
CRs-Fixed: 3064667
2022-02-14 17:00:56 +05:30
Madan Koyyalamudi
d6891e7074 Release 2.0.8.27Q
Release 2.0.8.27Q

Change-Id: I3181391373a2f7538a98578fc4ced6cbfa56d91f
CRs-Fixed: 774533
2022-02-11 01:30:50 -08:00
Krupali Dhanvijay
65e981514d qcacld-3.0: Add support to configure 6G roam scan dwell time
Add ini support to configure 6GHz active and passive
scan dwell time and send this to firmware
to be used for LFR scans via WMI_ROAM_SCAN_MODE.

Based on these values, firmware will use host sent values
else use hardcoded values.

Currently firmware uses hardcoded values to configure 6Ghz
roam scan dwell time. With this change user can configure
it using INI.

Change-Id: I90e79ad59eef7f73faa0b9dfd2d38b65aca12285
CRs-Fixed: 3116861
2022-02-10 20:47:25 -08:00
Madan Koyyalamudi
009425f53d Release 2.0.8.27P
Release 2.0.8.27P

Change-Id: I9d22528117b9af217d47333a4186b398459233a4
CRs-Fixed: 774533
2022-02-10 10:20:31 -08:00
Will Huang
45440c7b62 qcacld-3.0: Update num_transmit_power_env before packing probe response
num_transmit_power_env of tDot11fProbeResponse should also update like
tDot11fBeacon2, otherwise default value is 0, and transmit power
envelope IE(195) will not pack into probe response template.

Fix it by updating num_transmit_power_env of tDot11fProbeResponse to
same as tDot11fBeacon2.

Change-Id: I865ba9d9ad96068c52d3d6434b113cb7662e95c6
CRs-Fixed: 2933031
2022-02-10 10:20:31 -08:00
Madan Koyyalamudi
8127cfa464 Release 2.0.8.27O
Release 2.0.8.27O

Change-Id: I7772a74bda22cbac033808c2b819f2d22355cee7
CRs-Fixed: 774533
2022-02-10 03:56:15 -08:00
Surabhi Vishnoi
447a92c1ed qcacld-3.0: Optimize the roam latency time
This change optimizes the time to enable the TX queues during
connect/roaming by deferring the oem response to userspace and
roam_auth indication to wpa_supplicant.
Also, ignore tx power stats if the roaming is in progress.

Change-Id: I1724022de3b87482e4e4a35efac358de9f6a367d
CRs-Fixed: 3119070
2022-02-10 03:56:15 -08:00
Madan Koyyalamudi
3280fd22a4 Release 2.0.8.27N
Release 2.0.8.27N

Change-Id: I1aa71e719e22ecf82910bf4479ebe51d10e2383c
CRs-Fixed: 774533
2022-02-10 01:26:49 -08:00
Jianmin Zhu
81cec095ae qcacld-3.0: Don't send probe req when receive beacon miss
Before host received beacon miss, firmware has checked link by sending
QoS NULL data, don't need host send probe request to check now.
Some IoT AP can send probe response after receive probe request, but can't
send beacon sometimes, need disconnect in time too, or firmware will
assert.

Change-Id: I74105769cfbd9f80cdde21bfa7b8c6d75efc4a3a
CRs-Fixed: 3102930
2022-02-09 11:40:18 +08:00
Madan Koyyalamudi
539057ac74 Release 2.0.8.27M
Release 2.0.8.27M

Change-Id: I7eefd27216ae2108ba0dd376e461cfe7b62051d5
CRs-Fixed: 774533
2022-02-03 09:01:47 -08:00
Surabhi Vishnoi
20c17ab106 qcacld-3.0: Reduce the log level to optimise the roam time
TWT initialisation will fail for each non 11ax connection
so an error log is not needed if peer object for TWT is not found.

Also, RIC data is not mandatory in FT session, so if its not
present, log a debug level print instead of error level.

Change-Id: I7fec9f88aa68b2ae947e34a1aede311e9fed2d05
CRs-Fixed: 3117535
2022-02-03 09:01:47 -08:00
Madan Koyyalamudi
3d66633cda Release 2.0.8.27L
Release 2.0.8.27L

Change-Id: Idcea46403c81e58c0d43c2277d9a4b5f2ae01118
CRs-Fixed: 774533
2022-02-03 01:08:30 -08:00
Krupali Dhanvijay
9f325a1371 qcacld-3.0: Update Copyright for NAN discovery
Update copyrights for Do not reserve NAN discovery vdev in case
of FTM mode.

Change-Id: I1ec3c8d38c93de1ff69b99f08ee7ebdfdabf04da
CRs-Fixed: 3119751
2022-01-28 18:12:50 +05:30
Madan Koyyalamudi
ff7e2646ec Release 2.0.8.27K
Release 2.0.8.27K

Change-Id: I14810c07a86b3ca7ea1a4ce99325e201dcd7b0d7
CRs-Fixed: 774533
2022-01-28 03:07:21 -08:00
Jingxiang Ge
e06eb51744 qcacld-3.0: Enable ce debug history always
Always enable ce debug history feature, but there
is difference for perf&debug build.
On perf build, only ce2/ce3 histroy is enabled.
And for ce debug history memory init/deinit happens
when driver is loading&unloading, even it use when start
module, this will help to check some cases when
stop_module happens.

Change-Id: I4b825f91bc9ede8372291f9d94cb7fae23942a49
CRs-Fixed: 3058735
2022-01-28 13:29:51 +08:00
Madan Koyyalamudi
af23acd473 Release 2.0.8.27J
Release 2.0.8.27J

Change-Id: I31b6b9785bced50656d0af322d8743427391836f
CRs-Fixed: 774533
2022-01-26 05:26:31 -08:00
Jianmin Zhu
6d2a27a181 cld-3.0: Consider connected AP for roaming candidate
If reassoc MAC from user space is broadcast MAC as:
"wpa_cli DRIVER FASTREASSOC ff:ff:ff:ff:ff:ff 0",
user space invoked roaming candidate selection will be based on firmware
score algorithm, current connection will be kept if current AP has highest
score. It is requirement from customer which can avoid ping-pong
roaming.

Change-Id: I8de3e2a26a6f346c900157aa823205f849d233f7
CRs-Fixed: 3106276
2022-01-26 10:00:08 +08:00
Madan Koyyalamudi
6963589aba Release 2.0.8.27I
Release 2.0.8.27I

Change-Id: Iad190f47abb09f74c01016a68bd7030de186ce21
CRs-Fixed: 774533
2022-01-25 04:40:39 -08:00
Krupali Dhanvijay
e21c8c0aec qcacld-3.0: Do not reserve NAN discovery vdev in case of FTM mode
If firmware supports NAN discovery vdev then one vdev is
reserved for NAN. Do not reserve NAN discovery vdev in case
of FTM mode.

Change-Id: Ie16df46bbb09dd89889639d40dc1a65e3786ce73
CRs-Fixed: 2830136
2022-01-25 04:40:39 -08:00
Madan Koyyalamudi
8760581864 Release 2.0.8.27H
Release 2.0.8.27H

Change-Id: If19bc1fa699ea19ae8bc7d07d333aff7c3280576
CRs-Fixed: 774533
2022-01-24 23:39:32 -08:00
Surabhi Vishnoi
58e8b7af4a qcacld-3.0: Add kbuild cpp flag for low power mode feature
Add ccp flag support for CONFIG_ENABLE_LOW_POWER_MODE in Kbuild.
Currently, this config is enabled for wearables only.

Change-Id: I2fb08930290f5c23641e1d76796ab829b31aae04
CRs-Fixed: 3110291
2022-01-24 23:39:32 -08:00
Madan Koyyalamudi
ec4cecc389 Release 2.0.8.27G
Release 2.0.8.27G

Change-Id: I470e633796e2ac76265579a7101dc4e9df299792
CRs-Fixed: 774533
2022-01-19 01:52:21 -08:00