Commit Graph

13697 Commits

Author SHA1 Message Date
Jeff Johnson
15a88acfde qcacld-3.0: Rename HDD identifier advertiseConcurrentOperation
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier advertiseConcurrentOperation to be compliant.

Change-Id: I398a3a80caaafbb273a647b4c0b1f374db94d944
CRs-Fixed: 2418188
2019-03-20 22:09:04 -07:00
Jeff Johnson
de8f768f13 qcacld-3.0: Rename HDD identifier RSNMfpCapable
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier RSNMfpCapable to be compliant.

Change-Id: Ida5c11b7da71cd0f4b7a344ca5ddc1ab3975c840
CRs-Fixed: 2418185
2019-03-20 22:08:59 -07:00
nshrivas
c9a483c984 Release 5.2.0.126Y
Release 5.2.0.126Y

Change-Id: Ief9db35a809c91d36f595a1ffc4226b551ae5df2
CRs-Fixed: 774533
2019-03-20 10:10:18 -07:00
Abhinav Kumar
4356594c3e qcacld-3.0: Add new config for BTM offload
Currently, whenever roaming is triggered after a successful roam scan
firmware sends a BTM query to current connected AP when it is 11v
capable. Driver completes roaming with candidates received as part of
BTM request from AP. STA respond to AP with BTM response after
successful initiation of roaming.

Now the requirement is FW could send "BTM query with a preferred
candidate list" after a successful roam scan for some roam scan reasons
like PER, LOW_RSSI, HIGH_RSSI, MAWC, DENSE etc. Preferred candidate list
is obtained as part of roam scan based on firmware bss scoring logic.

Add new ini "btm_query_bitmask" to configure the bitmask for roam scan
reasons which is sent to firmware as part of RSO start via wmi btm config
cmd. Fw sends "BTM query with preferred candidate list" only for those
roam scans which are enabled through this bitmask.
New INI: btm_query_bitmask
Min: 0
Max: 0xFFFFFFFF
Default: 0x8
Bitmask : 0x8 (LOW_RSSI) refer enum WMI_ROAM_TRIGGER_REASON_ID.

Change-Id: I24b538745f2ac88d4e5c990573234e0f8a881b1f
CRs-Fixed: 2408111
2019-03-20 10:10:17 -07:00
Jeff Johnson
5abc32d07c qcacld-3.0: Rename HDD identifier RSNMfpRequired
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier RSNMfpRequired to be compliant.

Change-Id: I9e4843c6ac8914580be5da668080802bdc0ec3c1
CRs-Fixed: 2418187
2019-03-20 10:10:08 -07:00
nshrivas
5056964e58 Release 5.2.0.126X
Release 5.2.0.126X

Change-Id: Ib6bff0361eec784f0cfd9fb4ae3c33604d578106
CRs-Fixed: 774533
2019-03-20 08:25:48 -07:00
Jeff Johnson
fb6d0cade0 qcacld-3.0: wma: 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 wma replace any such comparisons with logical
operations performed on the pointer itself.

Change-Id: I2b4125bc4ec229fbe466e6ce0ca4c3191f6cae59
CRs-Fixed: 2418387
2019-03-20 08:25:47 -07:00
Yuanyuan Liu
3eb39032e3 qcacld-3.0: Do not collect rddm in irq context
Do not collect ramdump in interrupt/atomic context.

CRs-Fixed: 2392126
Change-Id: I07059808a7e6a8073dde0cd020fa42075d1556cb
2019-03-20 08:25:43 -07:00
nshrivas
cd332dfe49 Release 5.2.0.126W
Release 5.2.0.126W

Change-Id: I1c769b32f1a5bf33441745d5cf4904f09e064821
CRs-Fixed: 774533
2019-03-20 06:34:03 -07:00
Arif Hussain
1f58cbbf36 qcacld-3.0: Add support to process twt qca vendor command
Add support to process twt qca vendor command.

Change-Id: I2691ce7d1cc50798d99104389fe2213791ebdf78
CRs-Fixed: 2328891
2019-03-20 06:34:02 -07:00
nshrivas
f548db2a8d Release 5.2.0.126V
Release 5.2.0.126V

Change-Id: I1570a79adf1eebdcc3c98cc8e49638447e220704
CRs-Fixed: 774533
2019-03-20 00:57:54 -07:00
Jeff Johnson
78cbadef7b qcacld-3.0: Rename HDD identifier pMfpCapable
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pMfpCapable to be
compliant.

Change-Id: I8431089e225736249f6427da4a22277e8ae962b6
CRs-Fixed: 2418186
2019-03-20 00:57:39 -07:00
nshrivas
2ad9801160 Release 5.2.0.126U
Release 5.2.0.126U

Change-Id: I37561f96ecd7a7902902a55d021aa0944f445adf
CRs-Fixed: 774533
2019-03-19 22:54:39 -07:00
Jeff Johnson
e7afbe9804 qcacld-3.0: cds: 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 cds replace any such comparisons with logical
operations performed on the pointer itself.

Change-Id: Ib542e8e26c16dd0d6afccb0fd94bca75a89b21e1
CRs-Fixed: 2418395
2019-03-19 22:54:33 -07:00
Jeff Johnson
e85a8f7083 qcacld-3.0: bmi: 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 bmi replace any such comparisons with logical
operations performed on the pointer itself.

Change-Id: I85578cf7e40e7d6c81246b423d5b626a9570c8b4
CRs-Fixed: 2418396
2019-03-19 22:54:28 -07:00
nshrivas
d5a0828d3b Release 5.2.0.126T
Release 5.2.0.126T

Change-Id: I68f37a31fbf9ef928a121d6ff45d8ecc0ef4979d
CRs-Fixed: 774533
2019-03-19 21:16:59 -07:00
Jingxiang Ge
bd540b1cd0 qcacld-3.0: Get wlan op mode from vdev for pktlog
To avoid using qcacld code in cmn, when getting
wlan op mode, using op mode info from vdev rather
adapter.

Change-Id: If8432aae12800884e3a4567d99319afcdfa9d1f5
CRs-Fixed: 2412315
2019-03-19 21:16:58 -07:00
nshrivas
92c030908e Release 5.2.0.126S
Release 5.2.0.126S

Change-Id: Ie2870e120a1492fb88dda99afc66cec551dfb5c7
CRs-Fixed: 774533
2019-03-19 19:47:30 -07:00
Rajeev Kumar Sirasanagandla
2feb421680 qcacld-3.0: Avoid mem leak in vendor command acs_chan_config
While processing vendor command acs_chan_config,
in hdd_parse_vendor_acs_chan_config() memory allocated for channel_list
is not de-allocated in error scenario. This leads to memory leak.

To address this, while returning error, free channel_list in
hdd_parse_vendor_acs_chan_config().

Change-Id: Icdd264cfaa2e4266c22bc87c234e4a21122618b6
CRs-Fixed: 2410875
2019-03-19 19:47:30 -07:00
Rajeev Kumar Sirasanagandla
5054f66194 qcacld-3.0: Avoid potential buffer overflow in EXTERNAL_ACS
While processing vendor command EXTERNAL_ACS,
in hdd_parse_vendor_acs_chan_config() total number of channels is
computed by parsing nested attribute ACS_CHANNEL_LIST.

Initially computed number of channels is stored in int data type and
later copied to u8 data type, this shall truncate if number of channels
is greater than 255.

Memory for channel list is allocated using truncated value but later
the same list is accessed using computed value which shall result in
buffer overflow.

To address this, validate computed value against MAX_CHANNELS.

Change-Id: Idbbf3b44fd238f7cff53bedd68f2c7627ecdfa9d
CRs-Fixed: 2410869
2019-03-19 19:47:25 -07:00
nshrivas
4df5ebc611 Release 5.2.0.126R
Release 5.2.0.126R

Change-Id: I0ccdba79ba456f17dde76319c1151dcd94bd7d0a
CRs-Fixed: 774533
2019-03-19 18:19:55 -07:00
Jeff Johnson
9bf800e2df qcacld-3.0: Rename HDD identifier pMfpRequired
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pMfpRequired to be
compliant.

Change-Id: I745e5773ce387744120081c8fa275e9255639152
CRs-Fixed: 2418184
2019-03-19 18:19:54 -07:00
nshrivas
b202593f8d Release 5.2.0.126Q
Release 5.2.0.126Q

Change-Id: I0966c1e8c4ea733e969e41ecdbbb5a289a79a836
CRs-Fixed: 774533
2019-03-19 16:51:03 -07:00
Abhishek Singh
72a04bf418 qcacld-3.0: Remove unused lim_is_system_in_scan_state
lim_is_system_in_scan_state was used when scan was handled by host
and with scan offloaded the API always return false and thus is
of no use. Also the SCAN state used by it are never set.

Thus remove the unused scan state and lim_is_system_in_scan_state.

Change-Id: Ie9b78340035d85805cc9416f557b683a0a3be232
CRs-Fixed: 2417851
2019-03-19 16:51:03 -07:00
nshrivas
b9a6acd4f3 Release 5.2.0.126P
Release 5.2.0.126P

Change-Id: I31904c505a75ea301e239ed31ac4663607532520
CRs-Fixed: 774533
2019-03-19 14:31:30 -07:00
Sourav Mohapatra
0dbdfb482d qcacld-3.0: Specify policy for vendor attribute
Currently, there are some attributes that dont have any NLA policy
specified. The absence of policy results the attribute to default to
NLA_UNSPEC. When handling this case in validate_nla() there is no
minimum length guarantee, meaning that the attribute can have zero
length. This will result in a one byte overread when calling
nla_get_u8().

To avoid this potential security vulnerability, add policy entry for the
attribute.

Change-Id: I19e5a032ccb2083d5f204be6ff7ac2f53aebf130
CRs-Fixed: 2408072
2019-03-19 14:31:29 -07:00
nshrivas
a1eb745130 Release 5.2.0.126O
Release 5.2.0.126O

Change-Id: I9f0de97b6ec0573abc3ea6ef29daa405739e162a
CRs-Fixed: 774533
2019-03-19 13:03:13 -07:00
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
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
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