Commit Graph

17936 Commits

Author SHA1 Message Date
Abhinav Kumar
0c6565b815 qcacld-3.0: Connection fails due to reassociation in progress
Below are the scenarios where host fails to clear roam in
progress flag:

Case 1: While processing disconnection request
Host should clear roam in progress flag irrespective of
connection state of STA.

case 2: While processing a try-disconnect request
Currently, Host waits for WLAN_WAIT_TIME_STOP_ROAM (4 sec) to
process disconnection, if firmware has already started roaming.
In case if Host doesn't receive roam completion indication from
fw, Host set connection state to not connected and fails to clear
roaming in progress flag. This results host refuses all further
connection request with reason connection in progress.

Fix is to clear roaming_in_progress flag in both cases.

Change-Id: I45d9771bcd546d8914321e3be1a6d0ce6566cdac
CRs-Fixed: 2588803
2019-12-18 08:07:04 -08:00
nshrivas
4a63087564 Release 5.2.0.161X
Release 5.2.0.161X

Change-Id: I950784e682bffa3903f08ac5fe1d2ebf76dccf8e
CRs-Fixed: 774533
2019-12-18 02:46:18 -08:00
Will Huang
3c0285f029 qcacld-3.0: Move back set vdev crypto pararams to wlansap_start_bss
When SSR sap restart, vdev objmgr object will recreate new, if put set
vdev crypto pararams in wlan_hdd_cfg80211_start_bss(), it will not be
invoked by SSR sap restart procedure, so there is no crypto pararams in
vdev and lead to association failure when compare crypto pararams.

Move back set vdev crypto pararams to wlansap_start_bss so sap start
and restart will both invoke it.

Change-Id: I56656ffacbe153fbe73fb6e474048e055cb6a153
CRs-Fixed: 2584138
2019-12-18 02:46:18 -08:00
nshrivas
655c28c51f Release 5.2.0.161W
Release 5.2.0.161W

Change-Id: I4ae85fe1a3692ae6cdb22458765744cf8d5ae911
CRs-Fixed: 774533
2019-12-18 01:21:45 -08:00
bings
eb28e19903 qcacld-3.0: Modify dfs phyerror pulse dur to increase radar detection rate
When radar is injected at +/-30MHz separation from center frequency
in VHT 80MHz mode incorrect pulse duration is reported in the radar
summary reports and lead to decreased radar probablity detection.

Fix the issue by capturing pulses with such characteristics and
modify them to fit within the valid phyerror pulse duration range.

Change-Id: Ic6314a372d6909448fbe4eb694c41736d1719712
CRs-Fixed: 2577632
2019-12-18 01:21:45 -08:00
nshrivas
fd3488f009 Release 5.2.0.161V
Release 5.2.0.161V

Change-Id: I35180db93b56cf4ab4f660ab51e93fe62f7324d8
CRs-Fixed: 774533
2019-12-18 00:07:01 -08:00
sheenam monga
ec59a16f71 qcacld-3.0: Fix null session dereference in lim_populate_he_mcs_set
Currently, ch_width of session is checked without validating
session  which may lead to NULL pointer derefrence.

validate session_entry before accessing element of
pe_session

Change-Id: I1f785555fa77a0c588e9b5245ad513fe059974d0
CRs-Fixed: 2585928
2019-12-18 00:07:01 -08:00
nshrivas
2e314dee34 Release 5.2.0.161U
Release 5.2.0.161U

Change-Id: Ibcdbc91ba0316ed0dc94f6290b1c826458e08579
CRs-Fixed: 774533
2019-12-17 16:37:53 -08:00
Liangwei Dong
73fdb0d319 qcacld-3.0: Fix VHT 160 rate report
1. Update pAddBssParams->ch_width to 160Mhz ch width value
based on VHT operation IE's ch width, channel segment 0
and channel segment 1 fields.

2. Report link rate information to OS for 160Mhz based on
rate flag TX_RATE_VHT160.

The change will fix the incorrect bandwdith reported by
IW commmand (iw wlan0 link) when STA is connected to AP
in VHT160 mode.

Change-Id: I698b12da825619e8e8f28f0cf4ea1ccf2e7072e6
CRs-Fixed: 2585986
2019-12-17 16:37:53 -08:00
Liangwei Dong
3b2fd85feb qcacld-3.0: Handle HE 160Mhz bandwidth rate report
Update tx rate flags to include 160Mhz bandwidth in
wma_set_bss_rate_flags_he.
Add HE 160 mcs to rate mapping for nss 1 and nss 2.
This change will fix incorrect bandwidth report via
IW command: iw wlan0 link.

Change-Id: Idd1adc4f2783b86a2a837999ea87bb38c813f213
CRs-Fixed: 2585078
2019-12-17 16:37:38 -08:00
nshrivas
dd50d06acb Release 5.2.0.161T
Release 5.2.0.161T

Change-Id: I4c209acce220163c3d7a47f892550cfa235344f5
CRs-Fixed: 774533
2019-12-17 14:09:53 -08:00
Ashish Kumar Dhanotiya
d8d7dead7d qcacld-3.0: Add support for oem data event
Currently use of comamnd QCA_NL80211_VENDOR_SUBCMD_OEM_DATA
is to pass data blobs from Application to FW but there is
no mechanism to send the data blobs from FW to Application.

To meet the above requirement update the usage of existing
OEM DATA command to use it as a vendor event as well to
send data blob from host to Application.

Change-Id: I502312f25d2754984b86e1cc4e011800a5d4b58a
CRs-Fixed: 2573464
2019-12-17 14:09:53 -08:00
nshrivas
ce22a839d1 Release 5.2.0.161S
Release 5.2.0.161S

Change-Id: I5fb65233f5c540dfe4f834b7f7357e7aeef0d673
CRs-Fixed: 774533
2019-12-17 03:45:13 -08:00
Arun Kumar Khandavalli
6538f769c0 qcacld-3.0: Add a check for driver status in wlansap_set_band_csa
with a new change I9b2b1ead3b4502022aeefc08359037457bb051f9 added for
to switch from 2.4g from 5g when an indication is received, During the
driver re-initliazation also this function is getting invoked and trying
access freed memory resulting in null pointer deference.

Donot process the function wlansap_set_band_csa when the driver is
recovering.

Change-Id: Iab67d5b77ffc98166bf421ff30bcf641e37fef6a
CRs-Fixed: 2587706
2019-12-17 03:45:12 -08:00
Arun Kumar Khandavalli
c988c53ea7 qcacld-3.0: Move from qdf event to linux completion for vdev destroy
Whenever there is a process waiting on a response from firmware it has the
option of using either a qdf_event or a linux completion event.
The primary difference between these is that if there is an SSR all
qdf_events are immediately completed whereas Linux completion events are
only completed by the normal flow of code.

With new upcoming changes SSR processing will take the normal path for
releasing all of its resources, and the qdf_session_close_event is used for
synchronization.
If we define this as a qdf_event, it will be completed when the SSR begins,
defeating its purpose.

Therefore change this to be a Linux completion event.

Change-Id: Ia6fe504e2a2d01f12c3d3446fffc2fc397566966
CRs-Fixed: 2586190
2019-12-17 03:45:01 -08:00
nshrivas
e7a73bf599 Release 5.2.0.161R
Release 5.2.0.161R

Change-Id: If0f0f86c4003093711dbe2ccc327e194df1ce530
CRs-Fixed: 774533
2019-12-17 00:12:04 -08:00
Abhinav Kumar
444a5ebc80 qcacld-3.0: Add ini support to skip full scan after bmiss
Currently, after FINAL_BMISS detection, FW does channel map
based partial scan followed by one full scan if no candidate
found in partial scan to ROAM to another available AP without
disconnection. This results in additional delay by HOST in
issuing disconnection after a heartbeat failure.

Add INI support (bmiss_skip_full_scan) to allow FW to decide
whether firmware does channel map based partial scan or partial
scan followed by full scan in case no candidate is found in
partial scan after final BMISS.

Change-Id: I48f9bb43bb7933e9ff173f618586ea5986530dcd
CRs-Fixed: 2578848
2019-12-17 00:12:04 -08:00
nshrivas
523a327e6d Release 5.2.0.161Q
Release 5.2.0.161Q

Change-Id: I70535b95d886838de3f4df525b4292bc9cbf8a79
CRs-Fixed: 774533
2019-12-16 21:15:30 -08:00
Rajeev Kumar
6b593aee71 qcacld-3.0: Remove pm_freezing check from psoc idle restart
pm_freezing check to abort system suspend during psoc idle
restart is not working and hence remove pm_freezing check.
Correct fix(change Ib89eca5014729f6a2103e14c6f46540d1406a5a0)
to reliably abort system suspend by calling qdf system awake
api during psoc idle restart is already present so pm_freezing
check is no longer needed.

Change-Id: Ifb56a2a9858378508ef9e583bdd15e63c26d9ba6
CRs-Fixed: 2587453
2019-12-16 21:15:30 -08:00
Gururaj Pandurangi
1e8f221be0 qcacld-3.0: Change config type of tx_bf_cap to uint
Change max value of tx_bf_cap to 4294967295 from -1
which is misconfigured. 4294967295 corresponds to
0xFFFFFFFF which is max value for 32 bit unsigned
int since this CFG item is getting used as part of
4 byte dot11f HT capability population.

Change-Id: Ifd0fea080dd9eb1f6995af0df20c68e3f73b891a
CRs-Fixed: 2581060
2019-12-16 21:15:23 -08:00
nshrivas
8f875e196f Release 5.2.0.161P
Release 5.2.0.161P

Change-Id: I17d9d1beb0b27e70327fd303f2c5c0aa47ea5218
CRs-Fixed: 774533
2019-12-16 19:45:32 -08:00
Alan Chen
dc26e04062 qcacld-3.0: Sanitize fils_erp_rrk_len before doing memcpy
Currently, the hdd_update_connect_params_fils_info() function blindly
trusts the size and copies into the fils_info->r_rk buffer, putting it
at risk of buffer overflow. Add a check to make sure the buffer passed
in to be copied to fils_info->r_rk is of the proper length.

Change-Id: I9ad2405ca1acd83591bea2aa43406909ad1c58e4
CRs-Fixed: 2580776
2019-12-16 19:45:32 -08:00
Yue Ma
b1e993f96a qcacld-3.0: Clean up channel number usage for CDP API
For cdp_hl_fc_set_td_limit() API, use channel frequency instead of
channel number.

Change-Id: Ic053be33ac7c7cbd2543b0208a1184b3f20a4346
CRs-fixed: 2565734
2019-12-16 19:45:14 -08:00
gaurank kathpalia
703aee2018 qcacld-3.0: Set seg1 frequency segment in case of 5ghz 160Mhz
Set seg1 frequency segment in case of 5ghz 160Mhz as
the primary centre channel frequency of 160Mhz band.

Change-Id: Id541419c084d8cdf2a22e84170dbe68d731f5ad0
CRs-Fixed: 2587220
2019-12-16 19:44:53 -08:00
nshrivas
7fb069d789 Release 5.2.0.161O
Release 5.2.0.161O

Change-Id: I4382ddbea60a8e9285cb3a719d67f1c2f43296f1
CRs-Fixed: 774533
2019-12-16 16:17:11 -08:00
Ashish Kumar Dhanotiya
b01e45b865 qcacld-3.0: Validate assoc response IE len before copy
When host sends ft assoc response to supplicant, it
allocates a buffer of fixed size and copies a variable
length of assoc response IEs to this fixed sized buffer.
There is a possibility of OOB write to the allocated buffer
if the assoc response IEs length is greater than the
allocated buffer size.

To avoid above issue validate the assoc response IEs length
with the allocated buffer size before data copy to the buffer.

Change-ID: Ife9c2071a8cc4a2918b9f349f4024478f94b2d78
CRs-Fixed: 2575144
2019-12-16 16:17:11 -08:00
nshrivas
4ea94fe0a5 Release 5.2.0.161N
Release 5.2.0.161N

Change-Id: I8e09a08ec5ee3db8d1b30153062290a4a8e0a58e
CRs-Fixed: 774533
2019-12-16 14:19:12 -08:00
Jingxiang Ge
8fdd274a24 qcacld-3.0: Vdev trans return directly if psoc/driver is in transition
Issue happen when:
thread1:
       rmmod driver, wlan_hdd_pld_remove which will get psoc trans.
       then try to get rntl_lock in hdd_unregister_wext;

thread2:
       trigger iw del interface, cfgops in kernel will get get rtnl_lock,
       in wlan_hdd_del_virtual_intf, vdev trans will be blocked by psoc
       trans in thread1. as thread1 it is also waiting for rtnl_lock, so
       both thread will be stuck.

Fix is:
       In psoc trans, vdev trans and vdev ops is not allowed, which should
       return directly.

Change-Id: I9cbd04bac438bb9483b4e89e73801fe71859e139
CRs-Fixed: 2583675
2019-12-16 14:19:12 -08:00
nshrivas
e9946e57e6 Release 5.2.0.161M
Release 5.2.0.161M

Change-Id: I651cadd0ce4853e488aaf3bbb440a1d01c149594
CRs-Fixed: 774533
2019-12-16 06:35:16 -08:00
Hangtian Zhu
274e08b80a qcacld-3.0: Fix compile issues when some features are disabled
Fix compile issues when some features are disabled, the features are:
BUILD_DEBUG_VERSION
CONFIG_CP_STATS
CONFIG_HOST_OPCLASS
CONFIG_FEATURE_ROAM_DEBUG
There are some other features depends on each other, so enabled features to
qcs40x.snoc.perf_defconfig, the features are:
CONFIG_WLAN_FEATURE_FILS
CONFIG_WMI_ROAM_SUPPORT
CONFIG_WMI_STA_SUPPORT
CONFIG_REG_CLIENT
CONFIG_WLAN_FEATURE_DP_BUS_BANDWIDTH
CONFIG_WMI_CONCURRENCY_SUPPORT
CONFIG_LL_DP_SUPPORT

Change-Id: I6fa1eacb79576a955e593dbb9ac52083742275e3
CRs-Fixed: 2354496
2019-12-16 06:35:16 -08:00
nshrivas
ebede607b8 Release 5.2.0.161L
Release 5.2.0.161L

Change-Id: I61ee6b1e4a4bdd3c8431b73095f775e2b19bd9c3
CRs-Fixed: 774533
2019-12-16 05:11:59 -08:00
Alok Kumar
69a11f24b1 qcacld-3.0: Fix double free of SKB for TSO
In case of TSO, same skb results in multiple tx_desc after
segmentation. To avoid multiple free of skb "skb->users"
count is used. Currently, race condition is observed while
incrementing "skb->users" count in ol_tx_ll_fast and before
that, tx_completion is received for all the segments which
are sent before. In this case, "skb->users" count will be 1
so, skb is removed from the skb debug node which leads double
free of skb when tx completion is received for the last segment.

To fix this, increment the "skb->users" count before sending
first segment and decrement only iwhen the last segment.

Change-Id: I26000fcda8715b737cac803ec8e64c0fb640dfe4
CRs-Fixed: 2582617
2019-12-16 05:11:59 -08:00
nshrivas
b5a79dfc0d Release 5.2.0.161K
Release 5.2.0.161K

Change-Id: I130f87cd240afa7f0a0d8de0d294b24824826b0d
CRs-Fixed: 774533
2019-12-14 20:35:09 -08:00
Jianmin Zhu
a69569a773 qcacld-3.0: Invalid bssid in add sta param of LFR2
Bssid of add sta param of LFR2 isn't initialized, add sta
failed.

Change-Id: I61cc5b2464452efa24ef41a6bd54e1df5d23215c
CRs-Fixed: 2586203
2019-12-14 20:35:09 -08:00
Sandeep Puligilla
0f54d03172 qcacld-3.0: Set peer state to AUTHORIZE after 4way handshake
Firmware peer state needs to be set to AUTHORIZE only after
completing the 4 way handshake. In failure scenario,
host configured AUTHORIZE state before 4 way handshake and
it triggered assert in the firmware.

Peer state moved to connection in progress/CONN after successful
association and AUTH state after successful 4way handshake.

Change-Id: I5e3d94843443d0fc2612a918b5c14479f91914d8
CRs-Fixed: 2580929
2019-12-14 20:34:46 -08:00
nshrivas
04e4d2fcd3 Release 5.2.0.161J
Release 5.2.0.161J

Change-Id: I65ca81813e1d500dec1d6c18eb74048a06f7defc
CRs-Fixed: 774533
2019-12-14 16:17:42 -08:00
Amar Singhal
d4f10747c9 qcacld-3.0: Use correct TX power for post vdev startup
Use correct power in post vdev startup. Use regulatory power for bss
channel.

Change-Id: Iaf1942b3538663a5f4f2e21c195626c1876ee03f
CRs-Fixed: 2580873
2019-12-14 16:17:42 -08:00
nshrivas
ab448b951b Release 5.2.0.161I
Release 5.2.0.161I

Change-Id: I4bdd31be8a58b20f374a2b31976465b666f33579
CRs-Fixed: 774533
2019-12-14 14:13:14 -08:00
Pragaspathi Thilagaraj
376ead97d5 qcacld-3.0: Add MBO IE for Open auth connection
The host driver checks the peer PMF capability
before adding MBO IE. But for open authentication
AP, the peer will not advertise PMF capability.
So while connecting to open mode AP, the MBO IE
doesn't get added in the association request frames.

Check if the authentication algorithm is open.
If the authentication algorithm is open don't
check for peer pmf capability to add MBO IE.

Change-Id: Ieae85ce696a40234535388a548906dc9521b19a0
CRs-Fixed: 2584527
2019-12-14 14:13:14 -08:00
nshrivas
349bbf6a55 Release 5.2.0.161H
Release 5.2.0.161H

Change-Id: I3531b255842efea0824691555afdc5a377853d7a
CRs-Fixed: 774533
2019-12-14 04:04:25 -08:00
Pankaj Singh
f84a5dd718 qcacld-3.0: Fix connection latency situation in driver
In 11D scan procedure if WMI_11D_NEW_COUNTRY_EVENTID event is
received, host processes 11d new country code event.
Host driver as a response sends WMI_SCAN_CHAN_LIST_CMDID
new channel list cmd to firmware.

As a result the ongoing scan procedure is aborted by firmware,
and if the scan was a first scan for connection, then it would
lead to connection latency as the supplicant then have to
scan again.

Fix is to check if any scan is in progress, then delay
WMI_SCAN_CHAN_LIST_CMDID channel list command to FW till
the current scan is complete.

Change-Id: I4e747bb747c32430b5d8024823aa0df4928a8c71
CRs-Fixed: 2569741
2019-12-14 04:04:25 -08:00
nshrivas
5ae3b1b6b9 Release 5.2.0.161G
Release 5.2.0.161G

Change-Id: I1920911bc0f9336b95f514a2ea4af53d68c5664d
CRs-Fixed: 774533
2019-12-14 01:44:03 -08:00
Abhishek Singh
9b6a080634 qcacld-3.0: Remove logic to disconnect STA on VDEV delete
With Vdev delete not using serialization, no need to disconnect
any STA with connection in progress.

The logic was added to remove the active connect command from
serialization queue so that vdev delete can complete before hdd
time out.

Now as vdev delete is not using the serialization remove this.

Change-Id: Id8c5ab31e54c8cf26999aff58c0773213f0cb13a
CRs-Fixed: 2585753
2019-12-14 01:44:03 -08:00
nshrivas
c635d76ef6 Release 5.2.0.161F
Release 5.2.0.161F

Change-Id: I7ac2adc1a6a43bb6930bed8e201c679a4af3de95
CRs-Fixed: 774533
2019-12-13 20:39:05 -08:00
Mohit Khanna
6c21d623e2 qcacld-3.0: Add 80211 BAR frame
Add IEEE 80211 Block ACK frame format.

CRs-Fixed: 2583857
Change-Id: Ib697a3146389c7d787df18a8c21cccc658ef383d
2019-12-13 20:39:05 -08:00
nshrivas
ffaf1d323d Release 5.2.0.161E
Release 5.2.0.161E

Change-Id: I38af244d47385f67d208fac9a5d89862f599a59d
CRs-Fixed: 774533
2019-12-13 14:11:31 -08:00
wadesong
fbf576a8fa qcacld-3.0: Convert CSR legacy channel ID usage
Remove wlan_reg_freq_to_chan within function
csr_update_op_class_array and use channel frequencies
directly to retrieve opclass.

To utilize the new channel frequency function,
regional opclass table will be used unconditionally,
given no OTA packets' country IEs will be populated
here(and thus no need to carry global opclass).

Change-Id: Ida9831e7e74223455089770744222185ae3cb1d3
CRs-Fixed: 2576285
2019-12-13 14:11:30 -08:00
Li Feng
8aa81b668b qcacld-3.0: Enable blacklist manager on qca6390
Enable blacklist manager on qca6390 to handle rssi assoc rej
in the assoc rsp.

Change-Id: I7fcfaa2054790259651062480a7995bf0f6c9922
CRs-Fixed: 2569318
2019-12-13 14:11:14 -08:00
nshrivas
bc81c48052 Release 5.2.0.161D
Release 5.2.0.161D

Change-Id: I0088a958b85ea7c29c612dbd69dcd39f1546890a
CRs-Fixed: 774533
2019-12-13 10:45:23 -08:00
Manikandan Mohan
8c58247da3 qcacld-3.0: Fix SAP ACL enforcement
Update driver to check SAP client acceptance as per MAC ACL policy
to control association.

Change-Id: Id6888b87393e79e2f86a7d5b1132c4a897179a23
CRs-fixed: 2583874
2019-12-13 10:45:23 -08:00