Commit Graph

11100 Commits

Author SHA1 Message Date
Kiran Kumar Lokere
f54b85555f qcacld-3.0: Add support to configure HE trigger frame MAC padding
Add support to configure HE trigger frame MAC padding and disable
the MU EDCA param update when user configures the padding.

Change-Id: Ief928c5421366b03ee6e1d6253963b10fd3b87b6
CRs-Fixed: 2265331
2018-07-18 23:18:12 -07:00
Kiran Kumar Lokere
fba2063db1 qcacld-3.0: Add support to configure HE MU EDCA params
Add support to configure the  HE MU EDCA params with default
values and update the params to FW.

Change-Id: Ia7485949c040cb8f83ccfe1f8336267051dbfd13
CRs-Fixed: 2262874
2018-07-18 23:18:09 -07:00
nshrivas
a3933edd98 Release 5.2.0.88Z
Release 5.2.0.88Z

Change-Id: Ieb00e4290eb90981a5e2509688f10b671c5233c2
CRs-Fixed: 774533
2018-07-18 21:52:52 -07:00
Chaoli Zhou
5d6bad19a9 qcacld-3.0: Extract spectral phyerr for qca6574
Qca6574 doesn't use phy_err_mask0 to indicate a spectral
scan phyerr, so spectral_phyerr_event_handler will never
be called. So add some logical to extract the correct phyerr
code to obtain the spectral scan results.

Change-Id: Ib1ec1aa98f25827dfe6ab549ff96a5d4139ad106
CRs-Fixed: 2252379
2018-07-18 21:52:51 -07:00
nshrivas
694b81ceb7 Release 5.2.0.88Y
Release 5.2.0.88Y

Change-Id: I0c6ed14a1664390a80760b00b8d94adb64e1a6e8
CRs-Fixed: 774533
2018-07-18 08:38:50 -07:00
Alok Kumar
cee3cf297a qcacld-3.0: Fix OOB access of sta_info for invalid sta_id
Currently, sta_id is used without validation in hdd_inspect_dhcp_packet
which may lead to OOB access for sta_info.

Call hdd_inspect_dhcp_packet only if sta_id is valid.

Change-Id: I09ebdaeeb86f8abe95fe09d23974c4bf331e29fe
CRs-Fixed: 2276615
2018-07-18 08:38:50 -07:00
nshrivas
e682d01cc0 Release 5.2.0.88X
Release 5.2.0.88X

Change-Id: If4cd52ae42442a64a18329463ff9b8b3a71dbd9f
CRs-Fixed: 774533
2018-07-18 05:58:59 -07:00
Dundi Raviteja
53de6c3371 qcacld-3.0: Use request manager framework for ready to extwow event
We are transitioning the usage of ready to extwow event
to request manager framework.

Change-Id: I648b6db4ab5367c8e04e77f4adc2fb9d42039054
CRs-Fixed: 2274944
2018-07-18 05:58:59 -07:00
nshrivas
c20f84ea38 Release 5.2.0.88W
Release 5.2.0.88W

Change-Id: I8d619eb62d6711be982d0ad14fd551e6cf1a1cba
CRs-Fixed: 774533
2018-07-18 00:18:04 -07:00
Dundi Raviteja
6bb9e328aa qcacld-3.0: Use request manager framework for set antenna mode event
We are transitioning the usage of set antenna mode event
to request manager framework.

Change-Id: I4df39c9b71ccd5680f85d1662bec06bc90f70977
CRs-Fixed: 2274929
2018-07-18 00:18:03 -07:00
Alok Kumar
cc943caa7e qcacld-3.0: Add support to set/get timestamp for management frames
Add setter and getter function of timestamp for management frames
for the peer based on peer's mac address.

Change-Id: Iab0862eda2392bd516c8ba0b913441b8e0d4c493
CRs-Fixed: 2264667
2018-07-18 00:17:59 -07:00
nshrivas
341a260e58 Release 5.2.0.88V
Release 5.2.0.88V

Change-Id: I2335ed086a727729e9c1d071c9ad1c33257f43bb
CRs-Fixed: 774533
2018-07-17 14:48:23 -07:00
gaurank kathpalia
82a1b2b802 qcacld-3.0: Fix GTK offload req params
Currently the host sends the fixed gtk offload params
and the FILS TLV params, even when the FILS feature is disabled
in the host, which force firmware to pick the KEK from the
FILS TLV structure rather than from the fixed param structure,
which further leads to GTK re-keying feature fail.

Fix is to send only the fixed params in case when host doesnt
supports FILS.

Change-Id: I5b3b3fd503c7cb9c4d7933074fd483086b113204
CRs-Fixed: 2244725
2018-07-17 14:48:23 -07:00
nshrivas
0f71751691 Release 5.2.0.88U
Release 5.2.0.88U

Change-Id: Iea8de044b930acf8a8811e60b5d5869739cb44ef
CRs-Fixed: 774533
2018-07-17 13:16:16 -07:00
Sravan Kumar Kairam
7bca07ebcb qcacld-3.0: Enable feature AST for lithium dp
Currently feature AST is disabled and as a result intra bss
rx forward is not working for lithium dp. So enable feature AST.

Change-Id: Iee1c6815dcb61c4e15a0a590d0df87f23b89391f
CRs-Fixed: 2254735
2018-07-17 13:16:15 -07:00
nshrivas
4edfaf5cab Release 5.2.0.88T
Release 5.2.0.88T

Change-Id: Icdec93c1a1b7a5eb1ee392ae13a922857fcb90c5
CRs-Fixed: 774533
2018-07-17 05:28:37 -07:00
Visweswara Tanuku
6bc52de881 qcacld-3.0: Use hdd netdev notifier call for softAP interface
qcacld-2.0 to qcacld-3.0 propagation

In softAP scenario, if any pending scan request is not serviced
before NETDEV_GOING_DOWN is called, it results in call trace
Handle this by using hdd netdev notifier call for softAP, where
scan_block_work is flushed.

Change-Id: I5de07103e0b0008f21c0a13add0eed36ea1b31d0
CRs-fixed: 2076542
2018-07-17 05:28:37 -07:00
Yeshwanth Sriram Guntuka
45eb08feb9 qcacld-3.0: Strip OMN IE from additional IEs for NSS update
As part of nss update request, operating mode is updated
in beacon template. OMN IE can also present in additional
IEs which will result in OMN IE included twice in beacon.

Fix is to strip OMN IE from additional IEs if beacon
template is updated as part of nss update request.

Change-Id: Ic0cd6b76738e16eb73de7a7ba406cd727c2f8dc4
CRs-Fixed: 2274027
2018-07-17 05:28:33 -07:00
Sandeep Puligilla
c5609d5bdc qcacld-3.0: Add legacy mlme component
Add legacy mlme component main APIs and init/deinit from HDD.

Change-Id: I3d3de3bca9a4fd0896a9d6a076b5e60bb1a5ca83
CRs-Fixed: 2272959
2018-07-17 05:28:30 -07:00
nshrivas
0a4f4e598f Release 5.2.0.88S
Release 5.2.0.88S

Change-Id: I24eb9e53392061c0da77126896d8cc23626c0ad2
CRs-Fixed: 774533
2018-07-17 03:48:33 -07:00
Vignesh Viswanathan
597d901893 qcacld-3.0: Send Peer Authorized for SAP peers after Set Key Complete
The hostapd sends the add_key command followed by the change_station
command to set the peer to authorized state and open the data ports.
Since the add_key is serialized through LIM/WMA layers and might not
have been sent to the FW by the time the change_station is received,
the FW would assert due to peer moved to authorized state before keys
are set.

Send the Peer authorized command to FW and to the hostapd only after
the set_key is complete for the peer.

Change-Id: Ibd1737a41ea96770987da4070b72e756538e7508
CRs-Fixed: 2267291
2018-07-17 03:48:33 -07:00
Chaoli Zhou
75b062f194 qcacld-3.0: Allow Setting Channel&Bandwidth in STA mode
Add one new ini configuration item to disable/enable
setMonChan in STA mode with disconnected state for
spectral scan test at CV2X platform.

Change-Id: Ie9ffc701d93ed1c050375dd56151b7a0da69cdce
CRs-Fixed: 2279013
2018-07-17 03:48:30 -07:00
nshrivas
26e1c75d52 Release 5.2.0.88R
Release 5.2.0.88R

Change-Id: I8dd94c97582d178b657a4da154f7ee6299312b25
CRs-Fixed: 774533
2018-07-16 22:03:36 -07:00
Min Liu
ffb250d8af qcacld-3.0: Use field-by-field assignment for FW stats
In wma_unified_link_iface_stats_event_handler, FW stats is cast into
some host data structure via memory copy. It could be dangerous since
there could be some mismatch between host and FW data structures.
Update it with field-by-field assignment.

Change-Id: If90c6062551c8769d948b3267dfa323fba310a78
CRs-Fixed: 2274034
2018-07-16 22:03:35 -07:00
nshrivas
ade23b3672 Release 5.2.0.88Q
Release 5.2.0.88Q

Change-Id: Ib9d2572852a0c1add66fdced3e5994ca11aaf724
CRs-Fixed: 774533
2018-07-16 18:32:28 -07:00
Abhinav Kumar
eab259362d qcacld-3.0: Add error handling support while sending roam invoke cmd to fw
Fix is to allow driver to send roam invoke command to firmware only when
roaming is allowed by both driver as well as supplicant for current vdev.

Change-Id: I76331c7c73672dd4c73b2cfaaba1e5c01652b982
CRs-Fixed: 2277523
2018-07-16 18:32:28 -07:00
Jianmin Zhu
91e834de48 qcacld-3.0: Enable locks to serialization component
Serialization component's APIs may get called by various
component owners through different thread contexts. This
makes lock a mandatory requirement in order to prevent any
shared data corruption.

Change-Id: I01e7727f1717c245a81a2dc760011488f4c4ba95
CRs-Fixed: 2272624
2018-07-16 18:32:24 -07:00
nshrivas
318221cd6f Release 5.2.0.88P
Release 5.2.0.88P

Change-Id: I7139f3745656ba28d54e7ff489cfee00c70d9f3b
CRs-Fixed: 774533
2018-07-16 10:42:43 -07:00
jiad
7178449356 qcacld-3.0: Ratelimit logs in ipa_is_fw_wdi_activated
ipa_is_fw_wdi_activated is invoked in the context of default 100ms
bus bandwidth calculation timer. Any logs will lead to excessive
messages and fix is to ratelimit these possible log messages.

Change-Id: I6e408187759bb6b6a5c511f2f88c2b14f4c889ab
CRs-Fixed: 2279024
2018-07-16 10:42:43 -07:00
Jeff Johnson
dc198eccdb qcacld-3.0: Refine the Lost Link Info callback API
The Lost Link Info callback currently specifies a void pointer for the
context. In the case of this API the context is actually known to be
an HDD handle, so update the API to explicitly use this type. This
will allow the compiler to verify that the correct type of parameter
is being passed.

Change-Id: I1ef9151d1a0c444a9bbb64aee6ae26030dd0bdbf
CRs-Fixed: 2278585
2018-07-14 21:20:05 -07:00
nshrivas
41126a10c0 Release 5.2.0.88O
Release 5.2.0.88O

Change-Id: Iaa0668f2a7b5304b14827fabca9a03572f4901af
CRs-Fixed: 774533
2018-07-14 03:34:07 -07:00
Jeff Johnson
4397514c87 qcacld-3.0: Refine the Roam Scan Offload callback API
The Roam Scan Offload (RSO) callback currently specifies a void
pointer for the context. In the case of this API the context is
actually known to be an HDD handle, so update the API to explicitly
use this type. This will allow the compiler to verify that the correct
type of parameter is being passed.

Change-Id: I9f3098a9f4bc840ef2f6210717849db5d4dd2c2a
CRs-fixed: 2278584
2018-07-14 03:34:07 -07:00
Jeff Johnson
d0b6c7e4ed qcacld-3.0: Refine the BT Activity callback API
The BT Activity callback currently specifies a void pointer for the
context. In the case of this API the context is actually known to be
an HDD handle, so update the API to explicitly use this type. This
will allow the compiler to verify that the correct type of parameter
is being passed.

Change-Id: I1bb29fcbd339d48b19352d61a18c0ae3ee3b10da
CRs-Fixed: 2278583
2018-07-14 03:34:04 -07:00
Jeff Johnson
c45168b885 qcacld-3.0: Refine the NAN Event callback API
The NAN Event callback currently specifies a void pointer for the
context. In the case of this API the context is actually known to be
an HDD handle, so update the API to explicitly use this type. This
will allow the compiler to verify that the correct type of parameter
is being passed.

Change-Id: I998119cb02d2b6412b63c36f740016745a6fbe4f
CRs-Fixed: 2278582
2018-07-14 03:34:00 -07:00
nshrivas
834d08c392 Release 5.2.0.88N
Release 5.2.0.88N

Change-Id: Iba4ffa235a056749b4104b3e44dceb5c3b79a86b
CRs-Fixed: 774533
2018-07-13 19:29:32 -07:00
Dustin Brown
2da29eb8a5 qcacld-3.0: Destroy vdev if close session fails
Currently, hdd_vdev_destroy has some error handling logic which avoids
actually destroying the vdev in some cases. This always constitutes a
leak of resources. Regardless of the result of the call to
sme_close_session(), always destroy the vdev in hdd_vdev_destroy().

Change-Id: I86f3e55866a8506dd4a1a2bcbf8bf5d5264d49e3
CRs-Fixed: 2278043
2018-07-13 19:29:32 -07:00
nshrivas
1c5aae82de Release 5.2.0.88M
Release 5.2.0.88M

Change-Id: Ia5d6d45cf2775a4c0ca0f3b0a27591552167886e
CRs-Fixed: 774533
2018-07-13 15:46:02 -07:00
Vignesh Viswanathan
694bec3af7 qcacld-3.0: Update dot11_mode based on target channel during chan switch
Currently if the dot11_mode is set to eCSR_DOT11_MODE_11g or
eCSR_DOT11_MODE_11g_ONLY and a channel switch is triggered with
target channel in 5Ghz band, then an invalid combination of dot11_mode
and channel occurs which fails the vdev_restart for channel switch.

Update the dot11_mode based on the target channel and the current
dot11_mode before sending the channel change request to SME.

Change-Id: I2b0fa4a36f137150ee0506d62be29ede4f4e604c
CRs-Fixed: 2276876
2018-07-13 15:46:02 -07:00
nshrivas
56bb1d24f0 Release 5.2.0.88L
Release 5.2.0.88L

Change-Id: Ib5a566d750eaf493fc12a45e402c0f4043f76c68
CRs-Fixed: 774533
2018-07-13 12:12:43 -07:00
Kabilan Kannan
ebe01e7a16 qcacld-3.0: Validate SAR2 response event handle
Validate SAR2 response event handle and pass the valid
pointer for result extraction

Change-Id: I91982c411c77494662f6d00de6078622a3d548ae
CRs-Fixed: 2259373
2018-07-13 12:12:42 -07:00
nshrivas
6b86db60b7 Release 5.2.0.88K
Release 5.2.0.88K

Change-Id: I4ff57d25e46f6b7847c18a92913eef4b0adcf48d
CRs-Fixed: 774533
2018-07-13 10:36:12 -07:00
Qiwei Cai
1083f5b0ac qcacld-3.0: Featurize WLAN_NS_OFFLOAD
Fix compilation errors when disable WLAN_NS_OFFLOAD

Change-Id: Ifba894a4880a226cedf4c88b1121d02c63aceb4b
CRs-Fixed: 2271272
2018-07-13 10:36:11 -07:00
nshrivas
aa9d9b09dd Release 5.2.0.88J
Release 5.2.0.88J

Change-Id: I2450618bdedf9c480c4f4d0d2a89e4656b840a3a
CRs-Fixed: 774533
2018-07-13 08:27:14 -07:00
Liangwei Dong
0f9c75d562 qcacld-3.0: Use HW MODE ID to find HW mode info
Firmware reports HW mode ID during HW mode change,
use Policy mgr API to get HW mode Info.

Change-Id: I01c7e346a5c2292490705690bc8261b41d0a8127
CRs-Fixed: 2256189
2018-07-13 08:27:13 -07:00
Qiwei Cai
ad9b01ce3d qcacld-3.0: Reduce roam debug buffer size
Change WLAN_ROAM_DEBUG_MAX_REC from 256 to 64 to save memory

Change-Id: Ib70ab70bc6841251eb76db8ab6173eb0b58ad39e
CRs-Fixed: 2271408
2018-07-13 08:27:10 -07:00
nshrivas
cfb8f043b7 Release 5.2.0.88I
Release 5.2.0.88I

Change-Id: I78c80b4d23e9e609adb956dec1b1e03b60c2c3bc
CRs-Fixed: 774533
2018-07-13 06:42:49 -07:00
tinlin
5596e6fa08 Revert "qcacld-3.0: Report BSS of only requested RC in Rrm"
This reverts commit I98c80ab3d53dd9d63225349e3c7657f48c758957.

In cld3.2, DUT cannot follow connected AP country
code but the 11d scan results.
DUT will send all the valid channels reports to AP
regardless of the required RC in beacon request.

Change-Id: I4b2e33b4b9452416d79c47aeaeeccee0811f0bfe
CRs-Fixed: 2272049
2018-07-13 06:42:49 -07:00
nshrivas
ef2768049e Release 5.2.0.88H
Release 5.2.0.88H

Change-Id: I21d99ee5677876adb4a2d838e4dfe841b1f70ed3
CRs-Fixed: 774533
2018-07-13 02:58:32 -07:00
Pragaspathi Thilagaraj
33af3f4b1d qcacld-3.0: Fix possible buffer overflow in sir_convert_addts_rsp2_struct
In the function sir_convert_addts_rsp2_struct, iterator j is
assigned with the value pAddTs->numTclas + addts.num_WMMTCLAS.
The j value is used as the index to the array pAddTs->tclasInfo.
Maximum limit on  pAddTs->tclasInfo entries is 2. So when the
value of j exceeds 2, then a possible buffer overflow could
occur.

Validate the value of j against SIR_MAC_TCLASIE_MAXNUM(2).

Change-Id: Icc723380ed4ccd51c729194d509e288be0e0712c
CRs-Fixed: 2264429
2018-07-13 02:58:31 -07:00
Rajeev Kumar
eeeb6f2893 qcacld-3.0: Optimize string log size in hdd_set_ibss_power_save_params
Optimize string log size in hdd API hdd_set_ibss_power_save_params such
that wlan.ko size is optimized.

Change-Id: I9021c505ce987217eddc1f96f419a08787e21e97
CRs-Fixed: 2277782
2018-07-13 02:58:28 -07:00