Commit graph

22,787 commits

Author SHA1 Message Date
Madan Koyyalamudi
8f182a1f3d Release 2.0.8.28L
Release 2.0.8.28L

Change-Id: I2d8155c6ee3ab625b9684205ffc6ad9716e64aab
CRs-Fixed: 774533
2022-04-11 04:20:48 -07:00
Srinivas Dasari
761b511181 qcacld-3.0: set nan_separate_iface_support flag in FTM mode
Set nan_separate_iface_support flag in FTM mode to avoid
create NAN vdev in FTM mode. This helps in FTM mode test cases
where max supported vdevs are used.

Change-Id: Ia628655a87505db787043ef29dd18d259052b521
CRs-Fixed: 2888703
2022-04-08 20:22:25 +05:30
Madan Koyyalamudi
8ab049b2f2 Release 2.0.8.28K
Release 2.0.8.28K

Change-Id: I9e7c813ca4afa6087d4717eff2b7414bbc3586cd
CRs-Fixed: 774533
2022-04-01 03:11:04 -07:00
Vijay Patil
66dff27cd3 qcacld-3.0: Add PLD API to check if ipa offload is disabled
Add PLD API to check if ipa offload is disabled or not in PLD
layer.

Change-Id: If2ef19cdc16a399cf5abfa495e01bab6da799c8d
CRs-Fixed: 3148041
2022-04-01 03:11:04 -07:00
Madan Koyyalamudi
5f892316ae Release 2.0.8.28J
Release 2.0.8.28J

Change-Id: I0f6989adde4d2470cb7219710cebbd2ab6f1f966
CRs-Fixed: 774533
2022-03-28 13:47:06 -07:00
Ashish
5bfb40ab3c Revert "qcacld-3.0: Fix arp offload not sent when suspend"
This reverts commit I06ea617df49287ee87e7b5bf8b20971b581dedf1

which introduced a fix to enable/disable arp offload on every
suspend/resume even if gActiveModeOffload is enabled, which is
not correct. The expectation here is that if gActiveModeOffload
is enabled, host should enable arp offload only onece and it
should not disable on any condition.

Change-Id: Ifc4ff1c0a39cc4c17e9a292ef8b0ebabd766a710
CRs-Fixed: 3147896
2022-03-28 13:47:06 -07:00
Madan Koyyalamudi
46251fb519 Release 2.0.8.28I
Release 2.0.8.28I

Change-Id: Ie7cfb9ee2c847a83d25886c738eebbf387414f58
CRs-Fixed: 774533
2022-03-24 14:42:33 -07:00
Yu Tian
5c94f027a1 qcacld-3.0: Add an ini control to disable Dynamic GRO feature
Dynamic GRO feature is enabled by default and aimed for specific
customers. Add an ini control to allow other customers to config
this feature enable/disable.

Change-Id: I83edd69d0e30d5944f0724ed8350328abff619bb
CRs-Fixed: 3070912
2022-03-24 14:42:32 -07:00
Madan Koyyalamudi
5c3fabb7ce Release 2.0.8.28H
Release 2.0.8.28H

Change-Id: Ice42f746a441285be3a60734594d0d26300beb69
CRs-Fixed: 774533
2022-03-23 23:39:52 -07:00
Jingxiang Ge
d58c6b7ac4 qcacld-3.0: Add length check in wma_update_beacon_noa_ie
It may cause out of bound access if length exceed
SIR_MAX_BEACON_SIZE.

Add length check to protect that.

Change-Id: I6581b62aa8b380a0f1195a16515ad635a9154023
CRs-Fixed: 3147267
2022-03-24 08:45:02 +08:00
Madan Koyyalamudi
6e6ebf7ec8 Release 2.0.8.28G
Release 2.0.8.28G

Change-Id: I1e6a0561bf814ca9e48c372d171b0c6fb252a5d9
CRs-Fixed: 774533
2022-03-23 15:04:42 -07:00
Lincoln Tran
0b83881074 qcacld-3.0: Reject TDLS cmd if still in progress
Reject any incoming get_all_peers TDLS command if there are any
currently in progress.

The later commands will only be processed once the earlier commands
finish, since they are processed sequentially. However, once a
command finishes, the memory allocated for it from userspace is freed
up. Each command is passed the same address so the later commands will
end up writing to a freed address. To avoid this, reject incoming
requests if there are any still in progress.

Change-Id: I6970e3b73c6ce5afc921edaaf477825928800342
CRs-Fixed: 3150044
2022-03-23 09:15:59 -07:00
Madan Koyyalamudi
19b1b43d99 Release 2.0.8.28F
Release 2.0.8.28F

Change-Id: Ia40831a24dc439d509536470131cdb6203b2016b
CRs-Fixed: 774533
2022-03-23 03:01:05 -07:00
Vulupala Shashank Reddy
9f12ca2e76 qcacld-3.0: Add roaming in progress check in get sta stats
In wlan_hdd_get_sta_stats add hdd_is_roaming_in_progress
check.

Change-Id: I49500f592cc73ee859f6326dbf8f0e1af968036f
CRs-Fixed: 3151142
2022-03-23 03:01:05 -07:00
Vulupala Shashank Reddy
9eafeb1001 qcacld-3.0: Reduce the log level to optimize roam time
Reduce the log level for the frequent acceptable errors
to reduce the roam latencies

Change-Id: I9f5405025948d160e6fcd65ecca05dce7670ea84
CRs-Fixed: 3150439
2022-03-23 03:00:58 -07:00
Madan Koyyalamudi
d19157e77e Release 2.0.8.28E
Release 2.0.8.28E

Change-Id: I37e26e608746294ed15ce9b8fee9dc3f10c9dd0c
CRs-Fixed: 774533
2022-03-21 15:19:59 -07:00
Lincoln Tran
d8b890da71 qcacld-3.0: Add pointer check before dereferencing
Make sure the parsed association request array is valid at the
association ID index, before dereferencing it. This will prevent NULL
pointer deref. There is already a check for the beginning of the parsed
assoc req array, but it is not checking at the assoc ID index.

Change-Id: Icac3b2a4a0646dec4c64a2224e3271b0842a8194
CRs-Fixed: 3147273
2022-03-21 10:10:47 -07:00
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