Commit Graph

22210 Commits

Author SHA1 Message Date
CNSS_WLAN Service
e2ca533281 Merge "qcacld-3.0: Fix country IE validation logic" into wlan-cld3.driver.lnx.2.0 2021-02-22 22:28:37 -08:00
CNSS_WLAN Service
b9740bc744 Merge "qcacld-3.0: Add fixes related to 6ghz vlp feature" into wlan-cld3.driver.lnx.2.0 2021-02-22 22:28:36 -08:00
CNSS_WLAN Service
fe9ccbca6d Merge "qcacld-3.0: Move LFR2 code under connection manager flag" into wlan-cld3.driver.lnx.2.0 2021-02-22 22:28:35 -08:00
Lincoln Tran
76c8aae668 qcacld-3.0: Fix country IE validation logic
Update the logic to fix a potential memory leak when there is an
invalid country IE. Also update the logic to not reject the connection
in the case of an invalid country IE, since this is a bad user
experience.

Change-Id: I6a2b50a483e65554a6622dccbb0bac61331fc4fb
CRs-fixed: 2883385
2021-02-22 22:17:09 -08:00
Lincoln Tran
c66b00c8a0 qcacld-3.0: Add fixes related to 6ghz vlp feature
Fix the PSD start freq calculation for sap case.
Also, remove duplication of 6ghz freq checks in
tpc power calculation api.

Change-Id: I5f1773b551ff7b893514b5c7720c6684fc100077
CRs-fixed: 2879460
2021-02-22 22:17:05 -08:00
gaurank kathpalia
dd6f134f2d qcacld-3.0: Move LFR2 code under connection manager flag
Move LFR2 code under connection manager flag.

Change-Id: Ic82817a3265af0342cf317ec4f9f086f1a70bef0
CRs-fixed: 2883189
2021-02-22 19:55:21 +05:30
CNSS_WLAN Service
d2fb85c4a1 Merge "qcacld-3.0: Assert when failed to parse at least one INI param" into wlan-cld3.driver.lnx.2.0 2021-02-22 05:57:25 -08:00
Bapiraju Alla
06eba18824 qcacld-3.0: Assert when failed to parse at least one INI param
INI parameters are configured based on requirement. It is expected
that atleast one parameter should be configured through INI file.

To mandate this, trigger assert when failed to parse atleast one INI
parameter from INI file.

Change-Id: Ia94f9ae9ce91d7e57f7a6be6c6f955de5ba860a4
CRs-Fixed: 2881695
2021-02-22 19:21:23 +05:30
CNSS_WLAN Service
8c96ae3f46 Merge "qcacld-3.0: Update Android.mk for GKI module installation" into wlan-cld3.driver.lnx.2.0 2021-02-19 19:11:20 -08:00
Manikandan Mohan
cd320ee18a qcacld-3.0: Update Android.mk for GKI module installation
For Generic Kernel Image builds kernel scripts take care of module
installation on required parition. Thus update wlan driver Android.mk
to not create symlink if WIFI_DRIVER_INSTALL_TO_KERNEL_OUT is set to
true by GKI enabled android build system.

Change-Id: Ie0b6de98ead5f7e5eba106f0a98901f6c7ee3861
CRs-fixed: 2881952
2021-02-19 19:02:56 -08:00
snandini
f27b940b52 Release 5.2.0.223Q
Release 5.2.0.223Q

Change-Id: I96335b57499ff142b365f7cc7e2487a420d318c6
CRs-Fixed: 774533
2021-02-19 13:44:54 -08:00
gaurank kathpalia
a06175edf3 qcacld-3.0: Add roaming support in hdd for conenction manager
Add roaming support in hdd for conenction manager.

Change-Id: Id93e3411ab8dedca89768042b5fc96b318447846
CRs-fixed: 2881820
2021-02-19 13:44:53 -08:00
snandini
02b7000b99 Release 5.2.0.223P
Release 5.2.0.223P

Change-Id: If0163b9646db30e887ca00cd88e5582b9e9f6efa
CRs-Fixed: 774533
2021-02-19 11:41:13 -08:00
gaurank kathpalia
b72cc7d043 qcacld-3.0: Move cb mode API to use from CSR and LIM
Move cb mode API to use from CSR and LIM.

Change-Id: Id389677ca99be633077fed56d44d289a957ccadf
CRs-fixed: 2881881
2021-02-19 11:41:13 -08:00
snandini
5d0e831bee Release 5.2.0.223O
Release 5.2.0.223O

Change-Id: Iccbdeb22ea6f8735d73506fc8f8fa8c93c29e2db
CRs-Fixed: 774533
2021-02-19 07:48:08 -08:00
Liangwei Dong
4cdd1268af qcacld-3.0: Validate total channel stats number from target
In certain case, the hdd_llstats_radio_fill_channels failed to
put more nl attribute for channel stats to upper layer.
Add validation of total channel stats number received from target
to avoid exceeding NUM_CHANNELS. And change error log to include
more debug information.

Change-Id: Ifaf3cf6cd643a3fe87bf7664727da19951f41e93
CRs-Fixed: 2865770
2021-02-19 07:48:08 -08:00
snandini
eaca635766 Release 5.2.0.223N
Release 5.2.0.223N

Change-Id: I1b96f22b5d61b849bf10e84a267f714db7c017a0
CRs-Fixed: 774533
2021-02-19 05:39:51 -08:00
Abhishek Ambure
e546874794 qcacld-3.0: Set OCV flag in wiphy ext feature
Host checks if firmware advertises Operating channel validation(OCV)
support bit in service ready then updates OCV flag in wiphy ext feature.

Change-Id: I92f872a07e6f7142e602e6a9e5f5edcecc0aab0b
CRs-Fixed: 2880821
2021-02-19 05:39:51 -08:00
snandini
6ca464369f Release 5.2.0.223M
Release 5.2.0.223M

Change-Id: I03aec79baebd2ff0626d5b17cffa67000484ee1b
CRs-Fixed: 774533
2021-02-18 23:58:14 -08:00
gaurank kathpalia
0e06319d7e qcacld-3.0: Refactor connection manager connect code
Refactor connection manager connect code.

Change-Id: I34379170595637159ba13970fec8b9bff3620cc3
CRs-Fixed: 2880933
2021-02-18 23:58:14 -08:00
snandini
7cff709084 Release 5.2.0.223L
Release 5.2.0.223L

Change-Id: I8b2153460a09aa04766d4644233d428eb3913efb
CRs-Fixed: 774533
2021-02-18 14:14:07 -08:00
Abhishek Singh
0c3c0b153a qcacld-3.0: Fix connection with PMF required AP
rso config is not updated from connect profile and thus the PMF
required is not set and thusconnect fails with PMF required AP.

Fix is to update the rso config during connect req from profile.

Change-Id: I4a6ee6ef54358a59c169bf3f495483b3b4a105df
CRs-fixed: 2880665
2021-02-18 14:14:07 -08:00
Vevek Venkatesan
d01d8ce465 qcacld-3.0: add NULL check before calling rps_enable cb
Add a NULL check before calling rps_enable callback
from ipa_set_rps_per_vdev and also add a check to avoid
disabling rps twice.

Change-Id: Ib63b2cda99aa332905df640ffa2d401c22845ad2
CRs-Fixed: 2876490
2021-02-18 14:14:02 -08:00
snandini
03c4b9c359 Release 5.2.0.223K
Release 5.2.0.223K

Change-Id: I34220756d81def023d398aeb462e23967c96c8e6
CRs-Fixed: 774533
2021-02-18 12:06:47 -08:00
Pragaspathi Thilagaraj
1cbfd5f909 qcacld-3.0: Update ciphers in RSO command from crypto component
Currently driver fills unicast, multicast & auth mode values from
csr session which is not updated after roaming to AP with different
security profile. This causes incorrect values in AP profile command.
Send correct authmode/unicast and multicast ciphers in AP profile
command to firmware.

Also modify the below 2 ini default values as:
candidate_min_rssi_for_beacon_miss=-75
candidate_min_rssi_for_disconnect=-75

Change-Id: I33cc9f516447071e977768f01738eea7a2ecd99c
CRs-Fixed: 2879943
2021-02-18 12:06:47 -08:00
Pragaspathi Thilagaraj
b577d7479e qcacld-3.0: Set add TS failure if AP sends medium time as 0
When AP sends medium time as 0, currently driver proceeds to add
acm entry for the Add TS request and upgrades the AC for the TID.
But this behavior is not correct and seen with some AP.

Downgrade the AC to BE for the TID for which add TS with medium
time 0 was received and send ADD TS failure to SME.

Change-Id: Ia9247e06e3985d699f4215835a55a733738552cb
CRs-Fixed: 2864005
2021-02-18 12:06:42 -08:00
snandini
e2bea6629f Release 5.2.0.223J
Release 5.2.0.223J

Change-Id: Ie0d4f87c6370096e9a5fedf3eb04fa21e5b1cc98
CRs-Fixed: 774533
2021-02-18 10:01:29 -08:00
gaurank kathpalia
404eabd9ab qcacld-3.0: Move Sta specific code under connection manager macro
Move Sta specific code under connection manager macro.

Change-Id: I37e0c382aa9b8403647f12feb39bbfc1201515c6
CRs-Fixed: 2880716
2021-02-18 10:01:28 -08:00
snandini
9e840cf58f Release 5.2.0.223I
Release 5.2.0.223I

Change-Id: I3e0d27340aeb62cdd651dd742654ea1e15d6751e
CRs-Fixed: 774533
2021-02-18 07:46:47 -08:00
Abhishek Ambure
4eaf245744 qcacld-3.0: Update proper NSS in vdev start cmd for NDI
Host doesn't update vdev NSS value for NDI from mac config to
pe_sessions's vdev_nss member. Due to which host updates incorrect
preferred Tx and Rx NSS to FW in vdev start cmd for NDI interface.
Hence update proper NSS config from mac to pe_sessions's vdev_nss
member.

Change-Id: I5b7a4bdda3780e9a18e9954b64f03fa47a7dbe5f
CRs-Fixed: 2878203
2021-02-18 07:46:47 -08:00
Karthik Kantamneni
99413b37c4 qcacld-3.0: Call qdf_check_state_before_panic with additional debug info
Call qdf_check_state_before_panic with caller function name and
line number details.

Change-Id: I9fb4b382576e52bc1ad7e316bd09e3124e8fce98
CRs-Fixed: 2857671
2021-02-18 07:46:42 -08:00
snandini
cf948d8b07 Release 5.2.0.223H
Release 5.2.0.223H

Change-Id: Ibce547834384cbcd14be0a0a3f68ff986e05bcde
CRs-Fixed: 774533
2021-02-18 05:34:58 -08:00
Lincoln Tran
369c4ae107 qcacld-3.0: Store NDI beamform service bit
Store the NAN NDI beamform service bit in the NAN capability struct and
add API to access that value.

Change-Id: I429fc870b5287bd40855b9277d14b19574974a46
CRs-fixed: 2876730
2021-02-18 05:34:58 -08:00
Lincoln Tran
ea5da49021 qcacld-3.0: Disable tx BF for NDI vdev based on cap
Beamforming is now supported by FW so extra capability checks can be
skipped if the service bit is set. Otherwise set the capabilities to
none.

This reverts commit If629eedeab5d35b1799c6eb5ee7d71726ada262a.

Change-Id: I4a62d43e8e3ecc985e663aa0c6eaec252d3241e9
CRs-fixed: 2874817
2021-02-18 05:34:54 -08:00
snandini
bb727eafdf Release 5.2.0.223G
Release 5.2.0.223G

Change-Id: I25c66dde2e3810822c7b376c3aa29bf4ebef2a85
CRs-Fixed: 774533
2021-02-18 03:12:10 -08:00
Srinivas Girigowda
d1a00dcdd5 qcacld-3.0: Inform teardown all TWT sessions in P2P client mode
When SSR happens, Inform the user space about teardown all TWT sessions
in P2P client mode also.

Change-Id: I190529724519a2520dfa190fcb10cafc398745a5
CRs-Fixed: 2879404
2021-02-18 03:12:09 -08:00
Amruta Kulkarni
e4df806aa6 qcacld-3.0: Support roam invoke request in connection manager
Add change to support roam invoke request in connection manager

Change-Id: I87bd39263c7c210fa87250aca59ef5f2f89d4c67
CRs-Fixed: 2869211
2021-02-18 03:12:04 -08:00
snandini
c478f447ff Release 5.2.0.223F
Release 5.2.0.223F

Change-Id: If1be3c0a02ef036f9efadc864e2bd694c50a4e9f
CRs-Fixed: 774533
2021-02-18 00:56:04 -08:00
Srinivas Dasari
6b35a26d48 qcacld-3.0: Don't consider beacon length for non-beaconing entities
As part of start_bss response, beacon structures are extracted
from pe_session and stored in bss_description. But non-beaconing
entities like NDI doesn't have a beacon and corresponding
structures in pe_session are not valid. Beacon structures
schBeaconOffsetBegin and schBeaconOffsetEnd contain 0 in such
cases. Calculation of beacon IE length from these would result an
invalid length and leads to invalid IE extraction from
bss_description later(from csr_roam_process_start_bss_success).
Check if pe_session has valid beacon entry to avoid this.

Change-Id: Ic78dfcdbfb83cb29437d46337d13d62df533d780
CRs-Fixed: 2876897
2021-02-18 00:56:04 -08:00
Madan Koyyalamudi
478850c258 Release 5.2.0.223E
Release 5.2.0.223E

Change-Id: Id3b431ddadc03b2ec2de2a5819900d61d5b4264b
CRs-Fixed: 774533
2021-02-17 18:08:59 -08:00
Nisha Menon
9cff9b7c35 qcacld-3.0: GETSTATSSTAINFO does not return the mcbc count
GETSTATSSTAINFO and GETSTAINFO cmds return the correct
mcbc counters in SAP+STA case with IPA disabled since the
host updates these stats during dp_rx processing.

With IPA is enabled the hdd callback invoked from the IPA
driver needs to update the counters if broadcast or
multicast pkts are received in exception path.

Change-Id: I450bf809fab559be8f2fbd172c49fd7e8858ee5c
CRs-Fixed: 2875804
2021-02-17 18:08:59 -08:00
snandini
ca22ffb4c6 Release 5.2.0.223D
Release 5.2.0.223D

Change-Id: Ie4d050fddd9f14f56bed6ee779e5dd4ff1fb33a1
CRs-Fixed: 774533
2021-02-17 14:00:56 -08:00
Lincoln Tran
11071a6438 qcacld-3.0: Modify PCL for indoor channels
Currently the preferred channel list is not updated to have indoor only
channels removed. Add functionality to remove the indoor channels from
the PCL.

Change-Id: I31df737a3688f6c64c2eb5fa5ab0cea1d36869e5
CRs-fixed: 2874092
2021-02-17 14:00:56 -08:00
snandini
5aa2a46723 Release 5.2.0.223C
Release 5.2.0.223C

Change-Id: Ic09773c9279c2b79a23befa92b174c17a687446d
CRs-Fixed: 774533
2021-02-17 11:13:04 -08:00
Deeksha Gupta
a3ca2a725e qcacld-3.0: Block the TWT setup till notify event is received
Currently, TWT setup is allowed after roaming even if
TWT notify from firmware is not received.

Block the TWT setup till notify event is received
from firmware.

Change-Id: Ia6ff8fe9e05f32ddf6dbdd608d9090b612237f26
CRs-Fixed: 2870610
2021-02-17 11:13:04 -08:00
gaurank kathpalia
7a29ff5f90 qcacld-3.0: Fill extra params for connect
Fill extra params such as join timeout etc. in LIM
for connection manager path.

Change-Id: I3c12e49023ce04c6b8d2f6c41d128ed9fc93a441
CRs-Fixed: 2879094
2021-02-17 11:12:59 -08:00
snandini
409eabb924 Release 5.2.0.223B
Release 5.2.0.223B

Change-Id: Iee6263c0df163d16ee61db3ac706d03ca45eaa9a
CRs-Fixed: 774533
2021-02-17 05:40:24 -08:00
Abhinav Kumar
7404c2c964 qcacld-3.0: Possible OOB read when parsing FT IE
FTIE buffer carries multiple FT subelements (like R1KH-ID,
R0KH-ID, GTK, IGTK, etc).

Total FTIE buffer len = Number of FT subelements * (Subelement
ID (1 bytes) + lenght (1 bytes) + data length).

Currently, Host checks only the minimum length for FTIE buffer
while filling each FT subelements. This leads to OOB if the
remaining length of FTIE length buffer less than the length of
an FT subelement.

Before filling each subelement into FTIE buffer, add a check
to validate subelement length against remaining FTIE length

Change-Id: I5d6f4a59eef591d3a2da9f2403738d1fdd1a88b2
CRs-Fixed: 2857084
2021-02-17 05:40:24 -08:00
Gururaj Pandurangi
4929bd17ad qcacld-3.0: Fix issues related to 6ghz vlp feature
Call TPC calculation API from lim_handle_add_bss_rsp i.e.
after receiving vdev start response from FW.
TPC calculation API was called from lim_mlm_add_bss for SAP
and since this was happening before host received vdev start
response, HW limit for power from FW was zero and it
affected TPC calculation.
Also, API to check psd power flag for 6ghz returns true for
5ghz channels, so modify it to call under 6ghz channel check.
In TPE IE, max_tx_power_count values is one less than
num_pwr_levels so add 1 to count before assigning it to
num_pwr_levels for 5GHz TPE, non-PSD case.

Change-Id: I7e2ca0b6cf6c54528ade6263a87459e2c21098b2
CRs-Fixed: 2877654
2021-02-17 05:40:19 -08:00
snandini
eba5bde4ea Release 5.2.0.223A
Release 5.2.0.223A

Change-Id: I99dcc18bc8298c616cdf096b4d3e00579a0654a6
CRs-Fixed: 774533
2021-02-17 02:10:14 -08:00