Commit Graph

18306 Commits

Author SHA1 Message Date
gaurank kathpalia
2652bca1f2 qcacld-3.0: Set peer params after vdev restart for SAP
Scenario:
1. Turn on SAP on channel 1 on 2.4ghz 20Mhz BW
2. Connect a STA to it.
3. Change the SAp channel to 36 80mhz BW

Observation:
STA changes the channel BW to 80 but SAP does not
send th packets in 80Mhz to the SAP.

Expectation: SAP should send the packets to STA on 80Mhz.

Issue:
SAP does not set the peer params to the FW for the peer
hence the FW keeps on sending the packets with 20Mhz
which was previously configured to it.

Fix:
Send peer params to FW for each peer so that the
packets can be sent by SAP on a max supported BW.

Change-Id: Ic9b310e67001d55b2b5427db0c2ab897ea36b6b0
CRs-Fixed: 2606872
2020-01-24 07:01:41 -08:00
nshrivas
0f74dd3b1f Release 5.2.0.167A
Release 5.2.0.167A

Change-Id: Ia508b1b67b81e376ac2f4861e95259c10cbe7022
CRs-Fixed: 774533
2020-01-24 05:09:34 -08:00
Abhishek Singh
30769a34c3 qcacld-3.0: Fix wait for disconnect during connect req
Even when vdev is in disconnected state, during connect it tries
to wait for disconnect which lead to 1 sec delay in connect.

So call wait for disconnect only if vdev is not already disconnected.

Change-Id: Ib7a9b4628b0e10f71bdebe4b74a70d648825d9d3
CRs-Fixed: 2609462
2020-01-24 05:09:34 -08:00
Arun Kumar Khandavalli
a0bb689000 qcacld-3.0: selectively reduce the offload logs
Reduce loglevel of some logs from info to debug.

Change-Id: I7026cd376015de62d71ffd0b4eb2e79e13e2e4f0
CRs-Fixed:  2607973
2020-01-24 05:09:18 -08:00
nshrivas
6514ed29c4 Release 5.2.0.167
Release 5.2.0.167

Change-Id: I1b7ad7f09d2ad1cd6a3f675862bab9e80aa30a5f
CRs-Fixed: 774533
2020-01-24 03:50:13 -08:00
Arun Kumar Khandavalli
32a9096941 qcacld-3.0: selectively reduce the mlme logs
Seletively reduce the mlme component logs from info to debug.

Change-Id: If31157aef1eba8fcd8bee5c654a9e87f4437cc95
CRs-Fixed: 2607165
2020-01-24 03:50:13 -08:00
nshrivas
a9b4b6bb28 Release 5.2.0.166Z
Release 5.2.0.166Z

Change-Id: Id6f1add998ace636e5f1634b02b32fa076eab567
CRs-Fixed: 774533
2020-01-24 02:30:20 -08:00
Nisha Menon
cda811c37b qcacld-3.0: Enable MCL feature flag RXDMA_ERR_PKT_DROP
If the flag is enabled drop the packet if msdu_done bit
is not set while processing rxdma err frames. This is
not expected while reaping WBM RX release ring.

Change-Id: Ic8a09ba5a6952510e82a209d6ef609343a9bc09a
CRs-Fixed: 2608661
2020-01-24 02:30:20 -08:00
nshrivas
70dbf0eebe Release 5.2.0.166Y
Release 5.2.0.166Y

Change-Id: I4706e2e3e06d348dd90a6074cde3d9a0942317f0
CRs-Fixed: 774533
2020-01-24 00:55:52 -08:00
gaurank kathpalia
17b132d897 qcacld-3.0: Handle positive RSSI case in stats
The HW is capable to send the RSSI from the range
0-127, and when the driver normalizes it with the
noise margin of -96db, then it may happen that the
net RSSI is still positive if the reported RSSI is
greater than 96 db. If this happens then the GUI
shows 0 signal as it considers this RSSI positive
value to be invalid, though the RSSI was very strong.

Fix is to override the RSSI as 0 if the net RSSI
obtained after normalization is positive.

Change-Id: Id00a2ef3bafe77a033627931ae62cd11f3ba4f27
CRs-Fixed: 2606589
2020-01-24 00:55:52 -08:00
gaurank kathpalia
37151a5812 qcacld-3.0: Remove the check for 0 scan results
Currently the logic in ACS for 0 scan results is
to select default channel from the ACS channel list,
but the available channels may not always be capable
of the max BW sent by ACS, for example in HW MODE as
ANY then all the channels 2.4ghz and 5ghz would be
present in the ACS channel list, 2.4ghz channels at
the first followed by the 5ghz channels, and if the
scan results are 0 then 2.4ghz channel would be
selected as default which should not be the case.

Fix is to remove the check to select default channel
and let me ACS algorithm decide the best channel
accounting other factors such as noise floor
and max tx rx clear count, power also.

Change-Id: I21e5d73e12fffb00c4996c406d62361b74db629f
CRs-Fixed: 2601141
2020-01-24 00:55:40 -08:00
nshrivas
196bf2f5b7 Release 5.2.0.166X
Release 5.2.0.166X

Change-Id: I409336834af294459e405f987b481f6d5ee60bb4
CRs-Fixed: 774533
2020-01-23 22:16:44 -08:00
Rajeev Kumar
5bcbae4d46 qcacld-3.0: Free memory properly during wow pattern config command
In error case during wow pattern add and delete the allocated
memory for pattern string is not freed which is leading to memory
leak. Add the fix to free the allocated memory for wow pattern
properly for both error and success cases.

Change-Id: I5ecc2fb710bba85369a0bacbdd69a039d295e4d8
CRs-Fixed: 2609247
2020-01-23 22:16:44 -08:00
nshrivas
f3880940a0 Release 5.2.0.166W
Release 5.2.0.166W

Change-Id: I9073f414cfde63001ae863f707a02852b1dcf08a
CRs-Fixed: 774533
2020-01-23 19:21:09 -08:00
Abhinav Kumar
c0716d4f8a qcacld-3.0: Fix race between wpa_supplicant and scheduler_thread
Driver receives roam invoke command from supplicant, Host start
processing it in wpa_supplicant thread and sends ROAM_INVOKE
command to firmware. FW indicates roam invoke failure, so host
clean up the AP (Disconnect). But wpa_supplicant did not get
scheduled till disconnection completion. After disconnection,
wpa_supplicant thread gets resume and sets the roaming in progress
true. This results in roaming in progress remain set in a
disconnection state.

sme_fast_reassoc should be protected with sme lock to avoid
the race between SB disconnect and sme_fast_reassoc.

Fix is to protect sme_fast_reassoc with sme lock and
set roaming in progress flag before sending sme_fast_reassoc
command to FW and reset it again if sme_fast_reassoc fail to
initiate the roam invoke.

Change-Id: I05d92f8d5916decbd2c6f99eb67da0a29525ead5
CRs-Fixed: 2608398
2020-01-23 19:21:08 -08:00
Saket Jha
73e0acb2e2 qcacld-3.0: Set 6Ghz frequencies for monitor mode
Allow lim_update_session_he_capable_chan_switch for 6 Ghz frequencies in
monitor mode.

Change-Id: Ied8983b18f1ad36c70b66fd6fb4149b7b5b79e51
CRs-Fixed: 2608687
2020-01-23 19:20:55 -08:00
nshrivas
6ddff62b32 Release 5.2.0.166V
Release 5.2.0.166V

Change-Id: Ic0946f515805c71d578b24323e45add2631b62f9
CRs-Fixed: 774533
2020-01-23 14:27:29 -08:00
Rakesh Pillai
ed73605fe2 qcacld-3.0: Remove usage of datapath handles in outer layers
Currently many layers store the datapath handles i.e.
pdev and vdev handles and use them for passing as an
argument to the CDP APIs. This gives way to possible
race conditions, where the datapath handle provided by
the outer layer might be a stale pointer, which in turn
leads to unexpected results.

Remove the storage and usage of all the datapath handles
from the layers currently using them.
- cds_context
- vdev objmgr
- pdev objmgr

Change-Id: Icf24bd3792af203d1a06e153f0badd6e7405559f
CRs-Fixed: 2602199
2020-01-23 14:27:28 -08:00
nshrivas
10be1a6241 Release 5.2.0.166U
Release 5.2.0.166U

Change-Id: I8c8a6def8f2dc83f8c2c0be0439b8b3892ef11f6
CRs-Fixed: 774533
2020-01-23 10:57:04 -08:00
Arun Kumar Khandavalli
bdba410daa qcacld-3.0: Selectively reduce cds logs
Reduce the cds logs from info to debug.

Change-Id: I2b69dd1c03f6823254098b2ab22532b956001e1e
CRs-Fixed: 2607010
2020-01-23 10:57:03 -08:00
nshrivas
a1354a635f Release 5.2.0.166T
Release 5.2.0.166T

Change-Id: Ie0f108efe58262210ffb5f31b3de87b47f71b12a
CRs-Fixed: 774533
2020-01-23 09:39:59 -08:00
Abhishek Singh
f68ceb14a4 qcacld-3.0: Fix disconnect wait logic in wlan_hdd_try_disconnect
wlan_hdd_disconnect logic changed as part of
Ib490021775a39614646f8e518860c878cc0fdaae, but wlan_hdd_try_disconnect
was not taken care to avoid the disconnect timeout.

As both API use same code move the logic to separate API and call
the API from wlan_hdd_try_disconnect and wlan_hdd_disconnect.

Change-Id: I20d0f85cc0bb4b6ba826d60051e6f4124b180c24
CRs-Fixed: 2608708
2020-01-23 09:39:58 -08:00
nshrivas
7125aedb21 Release 5.2.0.166S
Release 5.2.0.166S

Change-Id: I641540aa79a16b25d5f417490b5a220d62233035
CRs-Fixed: 774533
2020-01-23 07:55:32 -08:00
Abhinav Kumar
58f72636d0 qcacld-3.0: Update proper copyright years
Update proper copyright years in
core/cds/inc/cds_regdomain.h

Change-Id: Ia013943c33d6143c58def6a5ed5e3126a2e412da
CRs-Fixed: 2605822
2020-01-23 07:55:32 -08:00
Abhishek Singh
7a7799b04a qcacld-3.0: Fix pmfSaQueryTimer timer leak
In case of PMF connection the sta_ds is memset to 0 in case of
SA query timeout whithout deleting pmfSaQueryTimer.
Also in lim_update_sta_ds pmfSaQueryTimer is
created without any check if its already created and thus may
lead to overwrite of the previous timer.

Thus destroy the pmfSaQueryTimer before memset sta_ds to 0 and
before creating it in lim_update_sta_ds.

Also use peer deletion is in progress in lim_process_assoc_req_sta_ctx
to check if STA is in proper state and assoc can be handled.

Change-Id: I63a701c1bd4324c6fce62338df80d0911cc9b703
CRs-Fixed: 2606900
2020-01-23 07:55:15 -08:00
nshrivas
77aca6ed3c Release 5.2.0.166R
Release 5.2.0.166R

Change-Id: I96e5b68d6cb0e4d244714c1fdeca8597e320de89
CRs-Fixed: 774533
2020-01-23 05:10:04 -08:00
Srinivas Dasari
c5b2de38a6 qcacld-3.0: Allow RSO update cmds on RSO_STARTED state
Firmware operates on RSO update params only if state is RSO_STARTED.

Hence allow RSO update commands only in RSO_STARTED state.

Change-Id: Ic9d0d6df0608bfc4b4273f7c42c893dd52739d78
CRs-Fixed: 2605298
2020-01-23 05:10:04 -08:00
nshrivas
6d9e1aa4bf Release 5.2.0.166Q
Release 5.2.0.166Q

Change-Id: I3718f91f3305877931d2e9c6bc05a22c32070ddf
CRs-Fixed: 774533
2020-01-23 03:41:33 -08:00
gaurank kathpalia
e0334a5e1d qcacld-3.0: Set connection update in success only
Currently the driver sets the connection update
flag in case of the hw mode cb when the set
hw mode is done, irrespective of the status
code sent by the FW. This leads to the completion
for wait for event and the caller to the current
connection update would get a wrong expectation
that the hw mode requested by it was set, which
would not be the case when the hw mode is not set
according to the user or the set hw mode was
rejected by the target itself.

Fix is to set the connection mode only when the
status is success or already the HW mode is set.

Change-Id: Ic7257b0be5a4bcdaecffb788cf3394b06ddfd5e5
CRs-Fixed: 2604062
2020-01-23 03:41:33 -08:00
Arun Kumar Khandavalli
8b61ce1e4c qcacld-3.0: Selectively reduce tdls logs
Reduce tdls logs from info to debug.

Change-Id: I2de71c4aa5d9915afb68bc192dcd6a749f6b3b4e
CRs-Fixed: 2607020
2020-01-23 03:41:19 -08:00
nshrivas
9f97264d2d Release 5.2.0.166P
Release 5.2.0.166P

Change-Id: I2a135d6376a70ef0f4492d04c401315a36c7ba03
CRs-Fixed: 774533
2020-01-23 00:43:13 -08:00
Amruta Kulkarni
3e72b33bf0 qcacld-3.0: Fix to not set HT/VHT flag for 6ghz scan
During 6ghz scan, host should not set HT/VHT flag
when sending configuration to FW via WMI_SCAN_CHAN_LIST_CMDID.

Change-Id: I5a58c775f173e90f91f6e7472ced3d59adfd8f73
CRs-Fixed: 2605744
2020-01-23 00:43:13 -08:00
nshrivas
07bce4a14b Release 5.2.0.166O
Release 5.2.0.166O

Change-Id: Id652afe1a5430f1ab326c58c7e134780353b986b
CRs-Fixed: 774533
2020-01-22 23:02:41 -08:00
Arun Kumar Khandavalli
5ba2743676 qcacld-3.0: Selectively reduce the pe layer logs
Selectively reduce pe layer logs loglevel from info to debug.

Change-Id: I187040fe2862253b2c93b32ef3c6cd247a4f0b04
CRS-Fixed: 2607090
2020-01-22 23:02:41 -08:00
Arun Kumar Khandavalli
f4ed406089 qcacld-3.0: Selectively reduce the policymgr logs
Reduce certain logs of policymgr from info to debug.

Change-Id: Idb2817c20f97d5a8888cbe685bdc3b1eaf77662e
CRs-Fixed: 2607035
2020-01-22 23:02:18 -08:00
nshrivas
319d43650e Release 5.2.0.166N
Release 5.2.0.166N

Change-Id: I0c124c49b1c187aa746a39feb03994fbbdf51fc1
CRs-Fixed: 774533
2020-01-22 19:22:45 -08:00
Abhishek Ambure
f15c50bad1 qcacld-3.0: Restore default RSO values after STA disconnect
Restore default RSO values after STA disconnect.

Change-Id: I6b230b5a8e00449955d641b440f12925340ca0df
CRs-Fixed: 2605336
2020-01-22 19:22:45 -08:00
Arun Kumar Khandavalli
5aff060d8d qcacld-3.0: selectively reduce the nan logs
Selectively reduce the nan logs loglevel form info to debug.

Change-Id: Ie71e34582d22de14a49b3d07fc286d4c4caccdbd
CRs-Fixed: 2607290
2020-01-22 19:22:30 -08:00
nshrivas
260ecd1d67 Release 5.2.0.166M
Release 5.2.0.166M

Change-Id: I4bc4f30eec5f06b67059476340ee6938d3274306
CRs-Fixed: 774533
2020-01-22 17:52:03 -08:00
Ashish Kumar Dhanotiya
bf3742bb12 qcacld-3.0: Change logging in wma_chan_phy_mode to ratelimit
Currently logs for invalid channel width are set as error logs,
if invalid channel width is passed to this api very frequently,
error logs are getting flooded.

To address this issue make the logs as rate limit.

Change-Id: I493002b63ab72438cce2b61c858a32acf12ea6b6
CRs-Fixed: 2607361
2020-01-22 17:52:02 -08:00
nshrivas
1477979df9 Release 5.2.0.166L
Release 5.2.0.166L

Change-Id: I1bdeb5fc5964af52a55e0cfd3d0dfebb976b2023
CRs-Fixed: 774533
2020-01-22 16:25:43 -08:00
Chaoli Zhou
b991ddfe99 qcacld-3.0: Change dma address size to 8 bytes for Genoa IPA
Currently, sizeof(qdf_dma_addr_t) is 4 bytes, but IPA driver
and WLAN FW always use 8 bytes, we should follow up with them,
otherwise, the numbers of rx complete ring entries will not be
same in both sides. Meanwhile, for tx complete ring, during the
first time initialization, we fill the buffer address with 4
bytes, while GSI FW read 8 bytes address content from tx complete
ring, which should cause the GSI FW get invalid address on the half
way and cause the smmu fault issue. So fill 8 bytes length buffer
address to the tx complete ring can avoid such issue.

Change-Id: I61021627b634d4b1525727cc944ee410ed3154db
2020-01-22 16:25:43 -08:00
nshrivas
f173c36169 Release 5.2.0.166K
Release 5.2.0.166K

Change-Id: If49f77faab1f6429cf0567a0fe1c7497f6b7e13b
CRs-Fixed: 774533
2020-01-22 12:19:18 -08:00
Alok Kumar
286a65ed19 qcacld-3.0: Send vdev param command to set pkt capture mode
Send vdev param command to FW for STA vdev to set the packet
capture mode. Send the command only if packet capture support
is enabled.

Change-Id: I014acfc5d97a2bf00831259b9811b3c5bc7610a1
CRs-Fixed: 2528554
2020-01-22 12:19:17 -08:00
nshrivas
9cb2c5c234 Release 5.2.0.166J
Release 5.2.0.166J

Change-Id: Ibd6e0280308e3bc63bdfc36b3ea8870cd6dc84f9
CRs-Fixed: 774533
2020-01-22 10:57:51 -08:00
Srinivas Dasari
a73e5f5dee qcacld-3.0: Clear static, dynamic roam channels on NCHO disable
For NCHO disable, clear static and dynamic channels from roam scan
list in driver and firmware.

Change-Id: I24bca4dfb34895b4e86455dea40764af163544f1
CRs-Fixed: 2605299
2020-01-22 10:57:51 -08:00
nshrivas
97c09a5a9e Release 5.2.0.166I
Release 5.2.0.166I

Change-Id: I147a95d739426b732f3a7802f3c6fef04abfd98c
CRs-Fixed: 774533
2020-01-22 09:24:54 -08:00
Jingxiang Ge
7ec9ead8d1 qcacld-3.0: Reset suspend_event before waiting for it
In dp_rx_tm_suspend, suspend_event should be reset before waiting
for it. otherwise, the suspend function will be break.

Change-Id: I9132f45b02386c54fb8e27f0f7c2c71205450c9d
CRs-Fixed: 2606227
2020-01-22 09:24:54 -08:00
nshrivas
6d6e49735f Release 5.2.0.166H
Release 5.2.0.166H

Change-Id: Idb01d5ee5efbc09420c4581df9f7ced5f46615dd
CRs-Fixed: 774533
2020-01-22 06:21:59 -08:00
Alok Kumar
909e3f9b43 qcacld-3.0: Register TxRx callbacks for pkt capture mode
Register TxRx callbacks to pktcapture_ops for packet capture mode

Change-Id: I7de52bfd94b992cd5fd7c64e5352fe76ed1a7f3b
CRs-Fixed: 2533876
2020-01-22 06:21:59 -08:00