Commit Graph

7036 Commits

Author SHA1 Message Date
Jeff Johnson
079f7de06e qcacld-3.0: Remove obsolete STA support for SIOCSIWAUTH
At one time the predecessor to the current driver was managed via
wireless extensions, but now the driver is managed by cfg80211. The
STA implementation of SIOCSIWAUTH should no longer be used, so remove
it.

Change-Id: I34a90c11c50967c8ccd74984721e709eda66d322
CRs-Fixed: 2128361
2017-10-19 20:54:12 -07:00
Jeff Johnson
4139b82219 qcacld-3.0: Remove obsolete STA support for SIOCGIWAUTH
At one time the predecessor to the current driver was managed via
wireless extensions, but now the driver is managed by cfg80211. The
STA implementation of SIOCGIWAUTH should no longer be used, so remove
it.

Change-Id: I454f925ac3d11cf84d311285b74ecd3674ecb90f
CRs-Fixed: 2128360
2017-10-19 20:54:10 -07:00
Jeff Johnson
5b30082935 qcacld-3.0: Remove obsolete STA support for SIOCSIWENCODEEXT
At one time the predecessor to the current driver was managed via
wireless extensions, but now the driver is managed by cfg80211. The
STA implementation of SIOCSIWENCODEEXT should no longer be used, so
remove it.

Change-Id: Ifc2e25eb1736795a56f07d6ef588156ca12b9dcc
CRs-Fixed: 2128359
2017-10-19 20:54:08 -07:00
Jeff Johnson
6b74705a74 qcacld-3.0: Remove obsolete STA support for SIOCGIWENCODEEXT
At one time the predecessor to the current driver was managed via
wireless extensions, but now the driver is managed by cfg80211. The
STA implementation of SIOCGIWENCODEEXT should no longer be used, so
remove it.

Change-Id: I02aca0bab022d84775acfa6d238e23ea357b79d0
CRs-Fixed: 2128358
2017-10-19 20:54:06 -07:00
snandini
8c2bb55fc6 Release 5.2.0.49X
Release 5.2.0.49X

Change-Id: I9a6333e03523206044514931e8a065380d072740
CRs-Fixed: 774533
2017-10-19 19:48:45 -07:00
Krunal Soni
d3c86d42a1 qcacld-3.0: Release PMF timer's memory before deleting the session
Recent fix I082c771bbee6d083b15515dd2e40ed9a27e0a9a1 has been added
to release PEER's uncleaned timer memory but this fix is not good
enough to cover SSR (sub system restart) scenario in which driver
never calls stop bss API.

To resolve the SSR case, call lim_del_pmf_sa_query_timer() API before
deleting the PE session.

CRs-Fixed: 2127688
Change-Id: I50d6eda88fcd666b546fffb6a0bc1b7e500a8cae
2017-10-19 19:48:44 -07:00
Arif Hussain
3d731abafd qcacld-3.0: Add sanity check in wma_process_rmf_frame
Currently the mpdu_data_len in Rx pkt meta is not checked for
upper bound in wma_process_rmf_frame.
Add sanity check to drop the packet if mpdu_data_len is
greater than 2000 bytes.

Change-Id: I156cf9766dda30ee3746361614a2e4586553f93d
CRs-Fixed: 2123807
2017-10-19 19:48:42 -07:00
snandini
722bb7ebd9 Release 5.2.0.49W
Release 5.2.0.49W

Change-Id: Ib0785622428edb47cb398c39e26e02af71c4bdc8
CRs-Fixed: 774533
2017-10-19 17:53:58 -07:00
Mohit Khanna
8749373dce qcacld-3.0: set gso_size for non linear tcp packets
Currently, OL/TXRX is unable to handle non TSO
packets which are non-linear. These packets have skb->gso_size as zero
since they are not jumbo packets and dont need to be TSOed.
However, TSO code can handle such packets. The current code assumes that
non TSO packets will be linear. This may case an incorrect memory access
leading to a crash.

Fill in gso_size for non-linear TCP packets if it is zero. This lets the
TSO logic handle these packets for CE transmission.

Change-Id: I75c7759e1a35c462966a2d925db6f537670ad72f
CRs-Fixed: 2100254
2017-10-19 17:53:57 -07:00
snandini
edff3812c7 Release 5.2.0.49V
Release 5.2.0.49V

Change-Id: I1ef5a044596e5dff717f00eee4df12226ba06ee4
CRs-Fixed: 774533
2017-10-19 15:33:53 -07:00
Vignesh Viswanathan
0b0fa277ca qcacld-3.0: Fix Compilation issues when FILS is disabled in Kbuild
Currently with CONFIG_WLAN_FEATURE_FILS set to n in Kbuild,
compilation issues are seen in the function hdd_save_gtk_params
due to usage of fils related structure without the compilation flag
checked.

Add new definition for the function hdd_save_gtk_params to fix
compilation issues with hdd_save_gtk_params set to n

Change-Id: Iab96c97df50f50c601ba52060440668373f74744
CRs-Fixed: 2111640
2017-10-19 13:53:39 -07:00
Vignesh Viswanathan
8da68cf1f9 qcacld-3.0: Add debug logs to print FILS ERP Seq Number
Currently the debug logs print only the KEK, KCK and other
keys during FILS Roam sync indication from FW to Framework.

Add additional debug logs to print Next ERP Sequence Number
from the firmware during roam sync indication to Framework.

Change-Id: I3df03cd3d426ffa18e021a45d95edb3148838858
CRs-Fixed: 2106552
2017-10-19 13:53:07 -07:00
Vignesh Viswanathan
731186f0ff qcacld-3.0: Add service_available_event handler for FILS roam capability
Currently, wmi_service_bitmap field in WMI_SERVICE_READY_EVENT is
exhausted. WMI_SERVICE_AVAILABLE_EVENT is available for upcoming
capability intimations.

Add service_available_event handler in host driver to extract
FILS roaming capability of fw. Based on this capability only,
send RSO, update connect params, HLP IE commands, GTK offload
are sent to fw.

Change-Id: I320ba86d29109d8cba23830ef9cb5e159792f19a
CRs-Fixed: 2094229
2017-10-19 13:52:33 -07:00
Vignesh Viswanathan
e8a26b2ade qcacld-3.0: Add support for flush PMKSA in fw
Currently, driver sends add/delete pmksa entry to fw
whenever supplicant sends set/delete pmksa to driver.

Add support to flush all PMKSA entries as well.

Change-Id: I044a25b071cab5c156b41bcaab338328b5439d64
CRs-Fixed: 2094257
2017-10-19 13:52:03 -07:00
Sridhar Selvaraj
56703374d3 qcacld-3.0: Cleanup FILS key dumps
Currently, in host driver, FILS Keys(PMK, KEK, ICK) are
printed in debug logs.

Remove all the Key dumps added as part of FILS.

Change-Id: Iafdd556b5c547d5d8f8184a33c0d2fad40cb96d0
CRs-Fixed: 2095631
2017-10-19 13:51:39 -07:00
Sridhar Selvaraj
e526044735 qcacld-3.0: Fix compilation issues in FILS roaming
Fix compilation issues in FILS roaming

Change-Id: Ib33873fbace5ad9a4788b7968562b934270035a1
CRs-Fixed: 2095625
2017-10-19 13:51:10 -07:00
Vignesh Viswanathan
3fa1d38e60 qcacld-3.0: Add kernel backport versions
Add kernel backport versions for the below kernel flags:
- CFG80211_CONNECT_BSS
- CFG80211_CONNECT_TIMEOUT
- CFG80211_CONNECT_TIMEOUT_REASON_CODE
- CFG80211_CONNECT_DONE
- CFG80211_FILS_SK_OFFLOAD_SUPPORT
- CFG80211_BEACON_TX_RATE_CUSTOM_BACKPORT
- CFG80211_RAND_TA_FOR_PUBLIC_ACTION_FRAME

Change-Id: I3593e0af4817ebbf75ca9e2f3aec36aece6f6f0e
CRs-Fixed: 2086436
2017-10-19 13:50:43 -07:00
Vignesh Viswanathan
c6d1e1cc13 qcacld-3.0: Add FILS roaming support
Add FILS roaming support changes as follows:
- Update ERP info in RSO Start
- Update HLP info in a new command WMI_PDEV_UPDATE_FILS_HLP_PKT_CMDID
- Set/Delete PMK cache info with WMI_PDEV_UPDATE_PMK_CACHE_CMDID
- Process FILS TLV in Roam Synch Indication and update the FILS info
  [seq number,PMK, KEK, realm] to Supplicant.

Change-Id: I78c3bdde080701deb8d2bdb92d8d57d18cceb864
CRs-Fixed: 2081252
2017-10-19 13:49:15 -07:00
snandini
dc42c7c3a9 Release 5.2.0.49U
Release 5.2.0.49U

Change-Id: I723cbdd08a85452c7a86bb0b8232a83ae679aeef
CRs-Fixed: 774533
2017-10-19 11:40:03 -07:00
Arif Hussain
2fd002410a qcacld-3.0: Fix the wrap-around issue in rrm_fill_beacon_ies
Currently BcnNumIes is uint8_t, which is used to hold ie length,
and it cannot be used to hold if ie length is greater than 255,
it will wrap-around to zero or smaller number.

So change BcnNumIes variable type from uint8_t to uint16_t.

Also change to bss desc copy logic in
sme_rrm_send_beacon_report_xmit_ind function.

Change-Id: Ie92a9afbf6e3674a0730f5f48210424b1d34386d
CRs-Fixed: 2124579
2017-10-19 11:40:03 -07:00
snandini
5fbc0cbd63 Release 5.2.0.49T
Release 5.2.0.49T

Change-Id: Ia9a363aacae2bebb8024648b7dc2dc3c7ef31d42
CRs-Fixed: 774533
2017-10-19 05:40:42 -07:00
Jeff Johnson
731bc32f1c qcacld-3.0: Relocate & rename "requested BSSID" field
Currently the "requested BSSID" is kept in struct hdd_wext_state. This
information is independent of wireless extensions, so relocate it to
struct hdd_station_ctx and rename it to improve readability and to
conform to the Linux coding style.

Change-Id: I3410103260d5be9cb405084f7f357fcfe08fb6f0
CRs-Fixed: 2128357
2017-10-19 05:40:42 -07:00
snandini
d0a6219133 Release 5.2.0.49S
Release 5.2.0.49S

Change-Id: I11a1ac8569899ebcb395e2d4f9060a6b2bc5842c
CRs-Fixed: 774533
2017-10-18 23:50:56 -07:00
Wu Gao
aa5e3f7476 qcacld-3.0: Remove legacy P2P codes in SAP
To reduce code size, remove legacy P2P codes in SAP layer. Remove
P2P files from Kbuild.

Change-Id: I83a704d3f03e9cb9e6a7420f32d609a323799a12
CRs-Fixed: 2111575
2017-10-18 23:50:55 -07:00
Wu Gao
7afc615be0 qcacld-3.0: Remove legacy P2P codes in WMA
To reduce code size, remove legacy P2P codes in WMA layer

Change-Id: Id34951ac907365ab4fcff6783000d745e84a8de7
CRs-Fixed: 2111575
2017-10-18 23:50:53 -07:00
Wu Gao
aa06e3511c qcacld-3.0: Remove legacy P2P codes in SME
To reduce code size, remove legacy P2P codes in SME layer.

Change-Id: I2f7d4c14d4ba2df9360351bdc55a8ba92ec9caf9
CRs-Fixed: 2111574
2017-10-18 23:50:51 -07:00
Wu Gao
1564899bad qcacld-3.0: Remove legacy P2P codes in MAC
To reduce code size, remove legacy P2P codes in MAC layer.

Change-Id: I64d0b71853004679ae694bcd6ca7a2f2347adc84
CRs-Fixed: 2111567
2017-10-18 23:50:49 -07:00
snandini
4d1fee0f35 Release 5.2.0.49R
Release 5.2.0.49R

Change-Id: I13c2cc422fd6f616731fbbb475d18e104ee9fc68
CRs-Fixed: 774533
2017-10-18 19:42:10 -07:00
Orhan K AKYILDIZ
30e8cbcd4f qcacld-3.0: Make max msdus per pkt configurable
Introduce a new parameter in the ini file for the maximum
number of MSDUs per HTT_RX_INORDERIND message.
This parameter is now sent over to the FW through the RFS
configuration message.

Change-Id: Id0057861bc172a36483804170274b202198b6824
CRs-Fixed: 2106760
2017-10-18 19:42:10 -07:00
Yun Park
d9c528eba1 Revert "qcacld-3.0: fix ipa mcc tx_desc pool size"
This reverts commit I3216a4c14ac624cc313d11226909efd4f63841d0

When alloccate free Tx desc list, Tx desc pool size is not initialized yet,
so tx_desc_size is set to 0.
This cause free Tx descriptor allocation failed.

Change-Id: I02ae2e59311e737dd9245228048d62f657d5b0d1
CRs-Fixed: 2085753
2017-10-18 19:42:08 -07:00
snandini
05e15da676 Release 5.2.0.49Q
Release 5.2.0.49Q

Change-Id: I405fe19c5d69a3444f0628ba4a25094bd0ad7d59
CRs-Fixed: 774533
2017-10-18 07:49:27 -07:00
snandini
4635131eb0 Release 5.2.0.49P
Release 5.2.0.49P

Change-Id: I505433efc02320230d5b8d299407cb2c5fc29feb
CRs-Fixed: 774533
2017-10-18 03:55:02 -07:00
Nachiket Kukade
8983cf61d2 qcacld-3.0: Support for configuring voltage corner mode
This change adds support for configuring voltage corner mode
thorugh INI parameter. User will provide a bitmap which will
be passed on to the FW during initialization. In this bitmap,
each pair of bits till BIT27 correspond to different phymode,
bw combination. Bit values signify voltage corner configuration.

Change-Id: I9e86d43079225b6f08fdd281c8f424b18abcffe9
CRs-Fixed: 2109884
2017-10-18 03:55:01 -07:00
snandini
d2f7c326f8 Release 5.2.0.49O
Release 5.2.0.49O

Change-Id: I65dbb8dbdc9c657bcdd7c9046963284778f4a7d7
CRs-Fixed: 774533
2017-10-18 02:03:17 -07:00
Jeff Johnson
3525cdd50f qcacld-3.0: Remove obsolete hdd_hostapd_state bCommit flag
The hdd_hostapd_state bCommit flag is a remnant from a prior version
of the driver. This flag is written, but never read, and hence
obviously has no purpose, so remove it.

Change-Id: If4fd93f474fcd6e01cdc51b1575a3509b538b504
CRs-Fixed: 2126889
2017-10-18 02:03:17 -07:00
snandini
7f9cf231ea Release 5.2.0.49N
Release 5.2.0.49N

Change-Id: I436816df78b36532af9117198e48422fd4cbb532
CRs-Fixed: 774533
2017-10-17 21:49:32 -07:00
Jeff Johnson
ab8fbb8061 qcacld-3.0: Fix style issue in sch_generate_tim()
Checkpatch reported the following issue, so fix it:
- ERROR:SPACING: space prohibited after that '*' (ctx:ExW)

Change-Id: I78a48d284d8b773a4a8c02f2196200f615836690
CRs-Fixed: 2126450
2017-10-17 21:49:32 -07:00
snandini
2718229f6f Release 5.2.0.49M
Release 5.2.0.49M

Change-Id: I4d8f4bca3b17c497d2e0bed4a2d7ca6b3db67dba
CRs-Fixed: 774533
2017-10-17 19:53:44 -07:00
Amar Singhal
7f5642ae4b qcacld-3.0: Add check for firmware message length
Add check for buffer size in function wma_encrypt_decrypt_msg_handler

Change-Id: I6dbead1d4996c5128cadc3ef071540fa0694201e
CRs-Fixed: 2119060
2017-10-17 19:53:43 -07:00
Wu Gao
02bd75be9c qcacld-3.0: Remove legacy P2P codes in HDD
To reduce code size, remove legacy P2P codes in HDD layer.

Change-Id: Idaaacac4fdaf1b964432c33c10b1c86f8a591c2d
CRs-Fixed: 2099184
2017-10-17 19:53:41 -07:00
Wu Gao
c02785db21 qcacld-3.0: Activate debug functions in P2P component
Remove P2P debug functions from legacy code and apply the new
functions in UMAC P2P component.

Change-Id: I1ff627a553108c74be144232fd0a0406d88de395
CRs-Fixed: 2105808
2017-10-17 19:53:38 -07:00
Amar Singhal
7b038cad15 qcacld-3.0: Check number of dbs hw modes
In WMI_SERVICE_READY_EVENTID, check for number of dbs HW modes against
the metadata.

Change-Id: I043c93c4e6bc0dfdd73dbdc65bab683c56269308
CRs-Fixed: 2119387
2017-10-17 19:53:36 -07:00
snandini
504a0608da Release 5.2.0.49L
Release 5.2.0.49L

Change-Id: Iaf9702de6ff3ab88c86c568f0ed93c70b1188c9b
CRs-Fixed: 774533
2017-10-17 18:11:25 -07:00
Yun Park
73ea8bbb2c qcacld-3.0: Send WLAN_CLIENT_DISONNNECT event from del_station
When receive STOP_BSS, send WLAN_CLIENT_DISONNNECT event send to IPA.
And upon receiving WLAN_CLIENT_DISONNNECT, check if all clients are
already disconnected to avoid redundant event processing.

Change-Id: Ibb3074cdaf65da9ea8c2032df86f9d66b2fce014
CRs-Fixed: 2096338
2017-10-17 18:11:24 -07:00
Hanumanth Reddy Pothula
aaa3f8871c qcacld-3.0: Fix CPU soft lock up during workqueue cancellation
Propagation from qcacld-2.0 to qcacld-3.0

ipv4 and ipv6 workqueues are initialized in open adapter for STA
and P2P modes but not for AP mode. The workqueues are cancelled
in stop adapter. The cancel_work_sync may be called on AP adapter
workqueue also, if just in time, the AP adapter mode has changed
to STA mode, for example during hostapd stop etc. This can cause
the cancel_work_sync to continuously loop since INIT_WORK has not
been called, finally raising CPU stuck. There is no harm in calling
INIT_WORK on any workqueue since it only makes sure that in cases
as above there is no undeterministic behaviour.

Fix cancel_work_sync issues by initializing ipv4 and ipv6 workqueues.

CRs-Fixed: 2121723
Change-Id: Ief8dd0c797dd1492fa30ca4e41da9e583548e21d
2017-10-17 18:11:22 -07:00
Dustin Brown
a7cf3a9bb5 qcacld-3.0: Avoid buffer overrun via null termination
__iw_softap_set_ini_cfg assumes a given user supplied buffer is null
terminated, which can lead to a buffer overrun. Ensure the buffer is
null terminated by copying it to a new, oversized buffer whose last byte
is zero.

Change-Id: If94e753026f79a368cd6b9cb7c745ade4ae29452
CRs-Fixed: 2118809
2017-10-17 18:11:20 -07:00
Yun Park
1027e8ca6d qcacld-3.0: Implement clearStats for TSO and NAPI statistics
Implement missing clearStats for TSO and NAPI statistics.

Change-Id: I384a6abcecca8276dadc647e93720e067f324aab
CRs-Fixed: 2024016
2017-10-17 18:11:18 -07:00
snandini
db5d42b894 Release 5.2.0.49K
Release 5.2.0.49K

Change-Id: I00e27b562a615d00d6c375076a9f5226c49b8aa0
CRs-Fixed: 774533
2017-10-17 15:57:54 -07:00
Yun Park
2aa880cc76 qcacld-3.0: Set Netdev Tx/Rx stat counter for IPA uC data path
Netdev Tx/Rx stat counters doesn't reflect packet counter from IPA
offload data path.
Change to add Tx/Rx packet counts from IPA uC data path through IPA uC
stats query.

Change-Id: If80dee818e97f4f75407885c20ee9abf2257be7c
CRs-Fixed: 956283
2017-10-17 15:57:53 -07:00
snandini
986a27f6e9 Release 5.2.0.49J
Release 5.2.0.49J

Change-Id: I73f03199bae2544d9dc952fe29d086ee9f845b60
CRs-Fixed: 774533
2017-10-17 13:12:45 -07:00