Commit Graph

15398 Commits

Author SHA1 Message Date
Rajeev Kumar Sirasanagandla
012e7b7836 qcacld-3.0: Avoid out of bounds access in testmode_cmd
While processing cfg80211 callback testmode_cmd(), size of vendor
attribute TM_ATTR_DATA is not validated against the maximum length
but type casted to the internally defined structure pmo_lphb_req.
This can lead to out of bounds access if the size of attr is less than
size of pmo_lphb_req.

To address this, validate size of TM_ATTR_DATA.

Change-Id: I83b18d0935ebc6139644c02a9e51ef25a12b9176
CRs-Fixed: 2411653
2019-03-19 13:03:12 -07:00
nshrivas
51f3f90a1c Release 5.2.0.126N
Release 5.2.0.126N

Change-Id: I852a7bda6abd438e8d5dc9e1cdef6c5bb475ad93
CRs-Fixed: 774533
2019-03-19 11:28:20 -07:00
nakul kachhwaha
a580cc3493 qcacld-3.0: Validate KCK pointer in GTK Rekey data
For FILS based authentication, KCK is not derived. Hence
when GTK Offload feature is enabled, supplicant will not
pass it to driver with gtk rekey data. Putting a check
to validate KCK before copying it to the gtk_req structure.

Change-Id: I7089011b4d3fdc4e4785adbe10de651a1b59a121
CRs-Fixed: 2414445
2019-03-19 11:28:19 -07:00
nshrivas
2f764506f2 Release 5.2.0.126M
Release 5.2.0.126M

Change-Id: I83b90a465eebda12a5c565dd46a3b3d4b97e38b2
CRs-Fixed: 774533
2019-03-19 07:59:17 -07:00
Abhishek Singh
ecc2c7597f qcacld-3.0: Cleanup SME_CSA_OFFLOAD_EVENT msg to flush BSSID
With new scan module there is no need for LIM to send msg
eWNI_SME_CSA_OFFLOAD_EVENT to CSR to flush scan cache.
Lim can call the scan flush API directly.

Change-Id: I30390a7a6407ab24089b735f55ded1aa354fc17e
CRs-Fixed: 2417852
2019-03-19 07:59:16 -07:00
Abhinav Kumar
2b431b6376 qcacld-3.0: Fix false alarm scan reject issue
Currently, the scan is rejected if roaming in progress on STA or
if a client of SAP is in the middle of WPS/EAPOL exchange. And
it uses last_scan_reject_timestamp and reset scan_reject_cnt to
avoid scan stuck issue. last_scan_reject_timestamp and
scan_reject_cnt reset when the next scan issues successfully.

If:
1\ Scan happens and roaming is in progress on STA or client of SAP is
   in the middle of the WPS/EAPOL exchange. Initialized
   last_scan_reject_timestamp and reset scan_reject_cnt;
2\ Maybe no scan happens for a long time;
3\ scan happens but unfortunately, a connection is in progress again.
Then false alarm may happen because the time has already expired and
scan_reject_cnt >= 15.

Reset scan reject params after successful set key and successful roam.

Change-Id: I1197e66483e3bc8da38d6bcbc8b8c32b193ef6c9
CRs-Fixed: 2418658
2019-03-19 07:59:12 -07:00
nshrivas
a54654f5df Release 5.2.0.126L
Release 5.2.0.126L

Change-Id: I34faf2abdbf5610e5549cfb1670755f8ac045125
CRs-Fixed: 774533
2019-03-19 02:24:42 -07:00
wadesong
442b9f2ccb qcacld-3.0: Code refine for 4 ini items
1) Refine the documentation text of 4 ini items:
   gStaKeepAlivePeriod
   gApKeepAlivePeriod
   gChannelBondingMode5GHz
   gChannelBondingMode24GHz

2) Fix a discrepancy which happens when ini cfg values
   are converted from those defined in enum
   eIniChanBondState to the corresponding values in
   enum ePhyChanBondState.

3) Use the related APIs to setup channel bonding modes
   instead of directly assigning values.

4) Remove the redundant inclusion of the following two
   header files in csr_api_roam.c:
   cfg_ucfg_api.h
   wlan_mlme_api.h

Change-Id: I43c1e5a05bbb34952a5c7bdbde734f4014592c12
CRs-Fixed: 2416991
2019-03-19 02:24:41 -07:00
Jeff Johnson
361e1786c6 qcacld-3.0: pmo: Replace explicit comparison to NULL
Per the Linux Kernel coding style, as enforced by the kernel
checkpatch script, pointers should not be explicitly compared to
NULL. Therefore within pmo replace any such comparisons with logical
operations performed on the pointer itself.

Change-Id: I3697ede27e074252017e31be23caa93fc25885c5
CRs-Fixed: 2418398
2019-03-19 02:24:37 -07:00
Abhishek Singh
24828ad756 qcacld-3.0: Move STA vdev to UP state after add sta is success
STA vdev is moved to UP state in wma_add_sta_req_sta_mode but
if deauth is received from AP during that time the connection
is set to failure in lim_process_sta_mlm_add_sta_rsp and driver
send EV_CONNECTION_FAIL in UP state which is not handled.

To fix this move the STA to UP state only if
lim_handle_sme_join_result receive the add sta rsp success.

Change-Id: Icb0685e52881563e17785c98e9e225796a864be1
CRs-Fixed: 2415194
2019-03-19 02:24:32 -07:00
Srinivas Girigowda
2d56c36a61 qcacld-3.0: Use converged qcacmn macros (part 2)
Replace the existing qcacld-3.0 macros with qcacmn converged
macros.

Change-Id: I8c7e07587111bc3b783138623249da692168d9d3
CRs-Fixed: 2416429
2019-03-19 02:24:27 -07:00
Srinivas Girigowda
cf161406dd qcacld-3.0: Use converged qcacmn macros (part 1)
Replace the existing qcacld-3.0 macros with qcacmn converged
macros.

Change-Id: Ie05f396fcd2e01cf86256f25dbc171bbdf763da9
CRs-Fixed: 2416429
2019-03-19 02:24:23 -07:00
hangtian
9a05f43a18 qcacld-3.0: Disable QCA_LL_TX_FLOW_CONTROL_V2 for QCS405
Disable QCA_LL_TX_FLOW_CONTROL_V2 for QCS405, for SCC imbalance issue:
when there is a vdev running TCP RX traffic, another vdev is running
UDP/TCP TX, the UDP TX vdev will be paused/unpaused frequently and
interfered by the TCP RX vdev, which is sending few TCP ack frames and
it's never get paused, successfully sending TCP ack will trigger more
TCP data packets from peer which compete with the UDP TX vdev for channel
access. When disable QCA_LL_TX_FLOW_CONTROL_V2, no vdev could send
packets to firmware when the tx_desc is in shortage, which makes the
throughput between vdevs more balance.

Change-Id: I2c4a36dae9a81905e6b92a80db9703a7342742c8
CRs-Fixed: 2376550
2019-03-19 02:24:18 -07:00
nshrivas
a81d2fe66a Release 5.2.0.126K
Release 5.2.0.126K

Change-Id: I826ce6ade235f9662ac72c48b63f039a537444ab
CRs-Fixed: 774533
2019-03-18 23:55:49 -07:00
Zhaoyang Liu
132becce7e qcacld-3.0: Fix issues about uninitialized variables
Fix issues that variables used without initialization.

Change-Id: I40d7054a719bf8a442d153beeb4c9aa38bcad373
CRs-Fixed: 2416837
2019-03-18 23:55:48 -07:00
Yuanyuan Liu
3ab5531e6d qcacld-3.0: Collect ramdump before kernel panic
FW dumps is not getting collected during kernel panic handler.
Hence move ramdump collection before kernel panic.

CRs-Fixed: 2362637
Change-Id: Id9f1dfefe1560affff6c4ecfca1b8fdba3eb0928
2019-03-18 23:55:43 -07:00
nshrivas
ec9620d1fd Release 5.2.0.126J
Release 5.2.0.126J

Change-Id: Ic140e4bb2611cdc37ae91aead87708cbfdb013ce
CRs-Fixed: 774533
2019-03-18 22:20:26 -07:00
Jeff Johnson
21451ae241 qcacld-3.0: Rename HDD identifier pLinkSpeed
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pLinkSpeed to be
compliant.

Change-Id: I04db9da2cba615d9a216a9eab40d1a07c73c33fb
CRs-Fixed: 2417587
2019-03-18 22:20:25 -07:00
Jeff Johnson
156cd081f8 qcacld-3.0: Rename HDD identifier p2pNoA
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier p2pNoA to be compliant.

Change-Id: Ia43f9794d94c37457c13fee5aafc7a7bd14de48f
CRs-Fixed: 2417586
2019-03-18 22:20:20 -07:00
Jeff Johnson
c565af1148 qcacld-3.0: Rename HDD identifier updateIE
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier updateIE to be compliant.

Change-Id: Id63bc75edf91d364de53eccc021917d597da400f
CRs-Fixed: 2417585
2019-03-18 22:20:15 -07:00
Jeff Johnson
aa6cbb8cb2 qcacld-3.0: Rename HDD identifier macAddr
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier macAddr to be compliant.

Change-Id: I73573fced510fe2e4d6a30deacd2d3cef0187ee1
CRs-Fixed: 2417584
2019-03-18 22:20:11 -07:00
Jeff Johnson
9423c5d57b qcacld-3.0: Rename HDD identifier macAddress
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier macAddress to be compliant.

Change-Id: Idc9e4bf34a29859a66ff559fdbe4f2d1c18d6d98
CRs-Fixed: 2417583
2019-03-18 22:20:06 -07:00
nshrivas
ab45973b0b Release 5.2.0.126I
Release 5.2.0.126I

Change-Id: I17f7a170640f4c38ea85a72a8899cd878fb9e5f2
CRs-Fixed: 774533
2019-03-18 20:06:04 -07:00
Jeff Johnson
9f4b0d44b1 qcacld-3.0: Rename HDD identifier pmacAddress
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier pmacAddress to be compliant.

Change-Id: I12040f02b81ae3430a31bb3ee0e1305300f0017b
CRs-Fixed: 2417582
2019-03-18 20:06:03 -07:00
Jeff Johnson
374c0852b1 qcacld-3.0: Rename HDD identifier customMacAddr
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier customMacAddr to be compliant.

Change-Id: I374e45b5b2a0feb570e071ca54f13a97638628ae
CRs-Fixed: 2417581
2019-03-18 20:05:59 -07:00
nshrivas
0d452472a7 Release 5.2.0.126H
Release 5.2.0.126H

Change-Id: Ib99e1da154de88f90d1140491d91ea6f2a70620e
CRs-Fixed: 774533
2019-03-18 18:39:08 -07:00
Jeff Johnson
0adaa169af qcacld-3.0: Rename HDD identifier wifiBand
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier wifiBand to be compliant.

Change-Id: I686a6b1353462605381fdde206bd086fae16b140
CRs-Fixed: 2417580
2019-03-18 18:39:08 -07:00
Jeff Johnson
f40f95c6c8 qcacld-3.0: Rename HDD identifier assocReqlen
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier assocReqlen to be compliant.

Change-Id: I941abbf4b90ea4a5cf167739d8f6905957b88da5
CRs-Fixed: 2417579
2019-03-18 18:39:02 -07:00
nshrivas
d98a9329e4 Release 5.2.0.126G
Release 5.2.0.126G

Change-Id: I1f641975261b0fc6d7c16c3e21db8dfe72de3475
CRs-Fixed: 774533
2019-03-18 13:07:09 -07:00
Jiani Liu
a5f17228c1 qcacld-3.0: Set Coex priorities among WLAN/BT/ZB
Coex priority on some scenarios need to be updated.
Host will transfer the chosen coex config attributes
by WMI command.

Change-Id: Ic28ad6af462b305ec9aaf3027d76bce9ae6320b1
CRs-Fixed: 2410493
2019-03-18 13:07:08 -07:00
nshrivas
1c2e41b9df Release 5.2.0.126F
Release 5.2.0.126F

Change-Id: I1268762f133ee7848d3c06d9a424d7addb4a1e5f
CRs-Fixed: 774533
2019-03-18 09:52:50 -07:00
Sourav Mohapatra
9c398f06e5 qcacld-3.0: Populate peer stats in HDD
Extract and populate peer stats in HDD and then send the stats to the
userspace via station_info in get_station command

Change-Id: Ia0077aadd33095210b1022a8e5a4ba77e9a9b739
CRs-Fixed: 2397649
2019-03-18 09:52:49 -07:00
nshrivas
52ac654259 Release 5.2.0.126E
Release 5.2.0.126E

Change-Id: I03c13edffe19f5296dbde81a696da16ede5544ee
CRs-Fixed: 774533
2019-03-18 07:40:04 -07:00
lifeng
2d5453431e qcacld-3.0: Fix race condition between kickout and disconnect
qcacld-2.0 to qcacld-3.0 propagation

There's race condition between kickout event and disconnect command. It
cause disconnect_comp_var is not completed properly. Add check in
lim_tear_down_link_with_ap to eliminate the race condition.

Change-Id: Iebe98911cc41e8b33f8f403b75c79a75a38ca0a6
CRs-Fixed: 2417753
2019-03-18 07:40:03 -07:00
nshrivas
e7d45869a5 Release 5.2.0.126D
Release 5.2.0.126D

Change-Id: I8993f9dbfc786bfc7e146557b255db39fc927480
CRs-Fixed: 774533
2019-03-18 03:24:18 -07:00
Sourav Mohapatra
b6a0a459f3 qcacld-3.0: Change permission of power_stats debugfs
Currently the permission of the power_stats debugfs file is set to 0440.
This prevents the dumpstats to dump the stats.

Change the permission to 0444.

Change-Id: I725d1085bf0f186326eacf37d8d785b65cb699f4
CRs-Fixed: 2415906
2019-03-18 03:24:17 -07:00
Jinwei Chen
000e7f2413 qcacld-3.0: fix invalid dp_soc use after free issue
driver module has been stopped since long time no interface is up
and dp_soc handle has been freed, but one virtual interface operation
still try to access invalid dp_soc from gp_cds_context, panic
happened.

set gp_cds_context->dp_soc to NULL if dp_soc is detached.

Change-Id: Icb2aa8bb15e309d8fcc749bafe37253c82a21f36
CRs-Fixed: 2413720
2019-03-18 03:24:13 -07:00
nshrivas
620813bcbb Release 5.2.0.126C
Release 5.2.0.126C

Change-Id: Ic44cedf58d9eb9a9f675264cf73f77802529d577
CRs-Fixed: 774533
2019-03-17 20:42:55 -07:00
hangtian
6b62cb15c5 qcacld-3.0: Fix resume issue while SSR in progress
Fix resume issue while SSR in progress. When firmware goes down
while driver is in suspend state, fix driver resume(wmi fail) issue.

Change-Id: I5521b92a0a14382a8e1e4b4172e3ed91ad5d93a8
CRs-Fixed: 2412130
2019-03-17 20:42:54 -07:00
hangtian
bb591aa59d qcacld-3.0: Revert "Allow SSR during driver resume"
Revert "Allow SSR during driver resume", change-id:
Ie1689e0b080f940666fbbb19c9f0e3b0fecfe564.

Change-Id: I3673ad030ecdb5112d4e28cc34102d58295c50a7
CRs-Fixed: 2412130
2019-03-17 20:42:50 -07:00
nshrivas
735756a020 Release 5.2.0.126B
Release 5.2.0.126B

Change-Id: Ibbc2749ae1216793508c6c9230b2fba43f06c532
CRs-Fixed: 774533
2019-03-17 12:54:10 -07:00
Jeff Johnson
36583f0647 qcacld-3.0: Converge on struct plm_req_params
The driver currently defines two different data structures to hold
PLM Request parameters:
- legacy struct plm_req
- unified WMI struct plm_req_params

To align with the converged software architecture remove the legacy
definition and exclusively use the unified WMI definition.

Change-Id: I7675686aba9590a4507a8f9ebffcbf181ee00a21
CRs-Fixed: 2411817
2019-03-17 12:54:10 -07:00
nshrivas
a40d629fbd Release 5.2.0.126A
Release 5.2.0.126A

Change-Id: Ib15dde305eb794f896c937851e57c9140046fc0d
CRs-Fixed: 774533
2019-03-16 12:43:57 -07:00
Jeff Johnson
e2b360bca8 qcacld-3.0: Rename HDD identifier pFTAssocRsp
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pFTAssocRsp to be
compliant.

Change-Id: Id619aa35893786db87abf264d4fd372c03425cac
CRs-Fixed: 2417251
2019-03-16 12:43:56 -07:00
Jeff Johnson
8152d89ea1 qcacld-3.0: Rename HDD identifier pFTAssocReq
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pFTAssocReq to be
compliant.

Change-Id: I1c80ae905381a7faf0afa6a83e43c7118855edce
CRs-Fixed: 2417249
2019-03-16 12:43:51 -07:00
Jeff Johnson
c6c35e3cc9 qcacld-3.0: Rename HDD identifier pMgmt_frame
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pMgmt_frame to be
compliant.

Change-Id: I3b01eb6fa7e60d76b0722db650a9467fa30d23d0
CRs-Fixed: 2417248
2019-03-16 12:43:46 -07:00
Jeff Johnson
e16f08208f qcacld-3.0: Rename HDD identifier connectedCipherAlgo
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier connectedCipherAlgo to be compliant.

Change-Id: I2accfa86266cd87c4f09de06db8c5e1cc9fb26b3
CRs-Fixed: 2417247
2019-03-16 12:43:42 -07:00
Jeff Johnson
71246e149e qcacld-3.0: Rename HDD identifier aniHdr
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier aniHdr to be compliant.

Change-Id: I230878a0694662f9556eff3c91cabc3919bbe45d
CRs-Fixed: 2417246
2019-03-16 12:43:38 -07:00
Jeff Johnson
5fc4aaa27a qcacld-3.0: Rename HDD identifier pCsrRoamInfo
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pCsrRoamInfo to be
compliant.

Change-Id: I481aa5527f8687ffbeb6e2b6e0927f7449e0633f
CRs-Fixed: 2417245
2019-03-16 12:43:34 -07:00
Jeff Johnson
72afbf8d88 qcacld-3.0: Refine hdd_indicate_unprot_mgmt_frame()
The current implementaton of hdd_indicate_unprot_mgmt_frame() has a
few issues:
- It has identifiers with mixed-case and Hungarian notation
- It has in-function conditional compilation
- It has a series of adapter sanity checks rather than utilizing the
  centralized adapter sanity checking function

So refine the function to address these issues.

Change-Id: I4b623b936e869205d9f6b888e445432ec0bd0478
CRs-Fixed: 2417244
2019-03-16 12:43:30 -07:00