Commit Graph

8100 Commits

Author SHA1 Message Date
Jeff Johnson
1e851a16f7 qcacld-3.0: Rename hdd_adapter macAddressCurrent field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field macAddressCurrent in struct hdd_adapter.

Change-Id: If4c674f7d8f10089d72e78954922ed1e859ea08e
CRs-Fixed: 2134944
2017-11-02 12:59:14 -07:00
Jeff Johnson
b527ebe705 qcacld-3.0: Rename hdd_adapter IP notifier work queues
Per the Linux coding style "mixed-case names are frowned upon" so
rename fields ipv4NotifierWorkQueue and ipv6NotifierWorkQueue in
struct hdd_adapter.

Change-Id: I91e3a439bb4e9aabbc2ab22673379e1332e5075d
CRs-Fixed: 2134943
2017-11-02 12:59:14 -07:00
Jeff Johnson
137c8eec3a qcacld-3.0: Rename hdd_adapter PSB fields
Per the Linux coding style "mixed-case names are frowned upon" so
rename fields psbChanged and configuredPsb in struct hdd_adapter.

Change-Id: I87d7b74f95e3644f718fc18ace285bf4b6066985
CRs-Fixed: 2134942
2017-11-02 12:59:14 -07:00
Jeff Johnson
18e866295d qcacld-3.0: Remove unused hdd_adapter TX fields
Fields mgmtTxCompletionStatus, monTxWorkQueue, and skb_to_tx in struct
hdd_adapter are unused, so remove them.

Change-Id: Ie050f8e144fdaf35fadb0baeb22a31c209a93b28
CRs-Fixed: 2134941
2017-11-02 12:59:14 -07:00
Jeff Johnson
c72c573df8 qcacld-3.0: Rename hdd_adapter isLinkUpSvcNeeded field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field isLinkUpSvcNeeded in struct hdd_adapter.

Change-Id: If2c6f33fb1a25fc3a88ba2f42309b5cb5bb11d65
CRs-Fixed: 2134940
2017-11-02 12:59:14 -07:00
Jeff Johnson
37fa040541 qcacld-3.0: Rename hdd_scan_info scanAddIE field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field scanAddIE in struct hdd_scan_info.

Change-Id: I8cc53023d703f91a8d63d8831a6eaaaea6ab9f4a
CRs-Fixed: 2134938
2017-11-02 12:59:14 -07:00
Jeff Johnson
5287de5176 qcacld-3.0: Rename pScanInfo
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename pScanInfo to align with the Coding
Style.

Change-Id: I2873e1121e412ea68561f02da74d231c37e58eeb
CRs-Fixed: 2134936
2017-11-02 12:59:13 -07:00
Jeff Johnson
157120959e qcacld-3.0: Rename pWlanHostapdDev
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename pWlanHostapdDev to align with the Coding
Style.

Change-Id: I78ea8d69c01d6af6941428c87bdb97d0be30dd4c
CRs-Fixed: 2134935
2017-11-02 12:59:13 -07:00
Jeff Johnson
6b82488af5 qcacld-3.0: Remove hdd_scan_info abortscan_event_var
Field abortscan_event_var in struct hdd_scan_info is no longer being
used, so remove it.

Change-Id: Idf5aa00d90a01e67f640036fefaa23196c343622
CRs-Fixed: 2134934
2017-11-02 12:59:13 -07:00
Jeff Johnson
0f9f87bca7 qcacld-3.0: Rename hdd_hostapd_state bssState field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field bssState in struct hdd_hostapd_state.

Change-Id: I0c259c8344f081fd755b574344cd8a721da4af18
CRs-Fixed: 2134933
2017-11-02 12:59:13 -07:00
Jeff Johnson
c98d41d718 qcacld-3.0: hdd: Remove obsolete WPS PBC support
The current driver contains support for WPS PBC handling that is
obsolete, so remove it.

Change-Id: I0e51f7aac5d82d0631939aa250ea5e7e6901cb7d
CRs-Fixed: 2134932
2017-11-02 12:59:13 -07:00
Jeff Johnson
0120686b2c qcacld-3.0: Rename hdd_ap_ctx operatingChannel field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field operatingChannel in struct hdd_ap_ctx.

Change-Id: Id7392319f9fed6aa098f349802624b55c9397cc8
CRs-Fixed: 2134931
2017-11-02 12:59:13 -07:00
Jeff Johnson
136c51b1b9 qcacld-3.0: Rename hdd_ap_ctx bApActive field
Per the Linux coding style "mixed-case names are frowned upon" and
"so-called Hungarian notation [...] is brain damaged" so rename field
bApActive in struct hdd_ap_ctx.

Change-Id: Id17869c55aa0467a4d1e845e9afd5002079197c9
CRs-Fixed: 2134930
2017-11-02 12:59:13 -07:00
Jeff Johnson
91df29d902 qcacld-3.0: Rename hdd_ap_ctx sapConfig field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field sapConfig in struct hdd_ap_ctx.

Change-Id: I9e9f7f2f3dbb4f0faf8118e552d99c6d402dd7b0
CRs-Fixed: 2134929
2017-11-02 12:59:13 -07:00
Jeff Johnson
0bbe66fab7 qcacld-3.0: Rename hdd_ap_ctx sapContext field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field sapContext in struct hdd_ap_ctx.

Change-Id: Id775f77bc052a99bb443af9fa8166ec814478ddf
CRs-Fixed: 2134928
2017-11-02 12:59:13 -07:00
snandini
b2a8448843 Release 5.2.0.52J
Release 5.2.0.52J

Change-Id: Ib839fbc52a467a8a73d86efc5661d18d005e6cec
CRs-Fixed: 774533
2017-11-02 09:38:18 -07:00
Rajeev Kumar
9084cc835d qcacld-3.0: Rename pmo_ucfg_* APIs to ucfg_pmo_* APIs
Rename pmo_ucfg_is_vdev_connected to ucfg_pmo_is_vdev_connected
to match existing naming convention for component ucfg APIs.

Change-Id: Idd04103664135f226881b07263365d70df5790e0
CRs-Fixed: 2135888
2017-11-02 09:38:18 -07:00
Rajeev Kumar
029015e2ba qcacld-3.0: Rename pmo_ucfg_* APIs to ucfg_pmo_* APIs
Rename pmo_ucfg_is_ap_mode_supports_arp_ns to ucfg_pmo_*
to match existing naming convention for component ucfg APIs.

Change-Id: I6877e1ebbc8a89d9b2cfb08f7af46e3f3b6606f3
CRs-Fixed: 2135193
2017-11-02 09:38:15 -07:00
snandini
a65c57e424 Release 5.2.0.52I
Release 5.2.0.52I

Change-Id: Ic37f1ab5427dc700dfe4fdc842f9ac73c3878058
CRs-Fixed: 774533
2017-11-02 05:48:30 -07:00
bings
29c9986f1f qcacld-3.0: Do adapter deinit after adapter stop in hdd_wlan_exit
Do adapter deinit in hdd_wlan_exit to free sapConfig.acs_cfg.ch_list.
Otherwise there may be memory leak.

Change-Id: I523a649e37fc0582c7e913edfa7d89f1eaac76a6
CRs-Fixed: 2136031
2017-11-02 05:48:29 -07:00
snandini
b09d513a9a Release 5.2.0.52H
Release 5.2.0.52H

Change-Id: I745bb171b5ef9889b80401e20e144f0fbc90d6fe
CRs-Fixed: 774533
2017-11-02 03:38:20 -07:00
Paul Zhang
2389cbe69c qcacld-3.0: Take care DEL the peer ref conunt
Take care DEL the peer ref conunt in function
ol_txrx_mgmt_send_frame.

Change-Id: Icd6176753cfb9a2a7bd9303be2d55e6ea7feb5be
CRs-Fixed: 2129920
2017-11-02 03:38:19 -07:00
snandini
46186251f5 Release 5.2.0.52G
Release 5.2.0.52G

Change-Id: I10791a3320757b5f0af3bbbe0341324382405a17
CRs-Fixed: 774533
2017-11-02 01:44:29 -07:00
hqu
73bccf2d88 qcacld-3.0: Keep WEP key when vendor subcmd restart sap
When vendor subcmd set sap channel, driver will do sap restart,
WEP key will be cleared when stop bss, then it will cause
WEP shared connection fail.

Fix is to keep WEP key when bss stop caused by
QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL.

Change-Id: Ib91993ae953f04c01dc9130774f91300dd8bd62a
CRs-Fixed: 2134346
2017-11-02 01:44:29 -07:00
snandini
7255b70295 Release 5.2.0.52F
Release 5.2.0.52F

Change-Id: I9f00e18e6381ff3fef7a1ad9e7f416f72600fac6
CRs-Fixed: 774533
2017-11-02 00:08:27 -07:00
Naveen Rawat
cbcc6545ba qcacld-3.0: Fix mcs/nss calculations for HE
1) In function lim_populate_he_mcs_set in case 2x2 is disabled, mcs is
being set incorrectly. Fix this assignment by using correct macro to
disable 2 or higher MCS set.

2) Fix HE_GET_NSS macro to get NSS.

2) In function lim_populate_peer_rate_set, NSS was being calculated
on peer MCS, instead of intersected MCS. Fix this by using intersected
MCS for NSS calculation.

Change-Id: Id674a90b69771b83c75c7aa316ead0b63df93891
CRs-Fixed: 2135014
2017-11-02 00:08:27 -07:00
snandini
39afb000ed Release 5.2.0.52E
Release 5.2.0.52E

Change-Id: I5c1386a28589f5b20e9d890b89100c6bc23ea2d2
CRs-Fixed: 774533
2017-11-01 17:39:05 -07:00
Tushnim Bhattacharyya
f24caf7009 qcacld-3.0: Don't drop the connection if multiple auth frames are received
Don't drop the connection if multiple auth frames are received from client
due to retransmission on bad rf condition.

Change-Id: I16d065ff6ada35b0c69b6b4cec84f9fac96ce8d7
CRs-Fixed: 2136412
2017-11-01 17:39:05 -07:00
Krunal Soni
f6a367bf53 qcacld-3.0: Make SAP open()-close() & start()-stop() symmetrical
Current driver is not having wlansap_open() and wlansap_close()
symmetrical and same goes for wlansap_start() and wlansap_stop()
which may create confusion in understanding.

Create a symmetry and clean-up any unnecessary data-structure.

CRs-Fixed: 2135995
Change-Id: I2c3b96e1f2ee44c9f1158108d4b5e48495222080
2017-11-01 17:39:02 -07:00
Krunal Soni
4a020c72f4 qcacld-3.0: Refactor & fix the SAP HDD APIs to maintain symmetry
Current driver is not having wlansap_open() and wlansap_close()
symmetrical and same goes for wlansap_start() and wlansap_stop()
which may create confusion in understanding.

Caller of these APIs should also maintain the symmetry while calling
them. Fix callers who are not following the symmetry.

When hostapd starts, it sends change interface command. After that if
user does "ifconfig <intf> down" to temporary tear down the SAP session
then in such cases driver needs to wipe-out the sap session.

Again if "ifconfig <intf> up" comes down to bring up SAP session again
then SAP session needs to be re-initialized.

Remove some of the unused APIs related to SAP operations.

CRs-Fixed: 2135994
Change-Id: Ib22dfa375217a48448c5a7872a9a2ed154dd862f
2017-11-01 17:38:59 -07:00
snandini
f327f982c8 Release 5.2.0.52D
Release 5.2.0.52D

Change-Id: I16ccce7cd9725bbedd8b1801f657817cd3b5e537
CRs-Fixed: 774533
2017-11-01 16:27:40 -07:00
Naveen Rawat
aeca1b93d6 qcacld-3.0: Update 11AX - Draft 1.4 MCS support - 2/2
Update driver to conform with Draft 1.4 MCS frame parser changes made
as part of Change-Id: I207db123d463f54ed6b148c9e957eb551d617ca2.

Change-Id: I4007ce0303b87c281b6fb2a94df576ee0da3f3e8
CRs-Fixed: 2130185
2017-11-01 16:27:39 -07:00
Naveen Rawat
215dad6234 qcacld-3.0: Update 11AX - Draft 1.4 MCS support - 1/2
Update HE capability IE as per Draft 1.4 for MCS support.

Change-Id: I207db123d463f54ed6b148c9e957eb551d617ca2
CRs-Fixed: 2130185
2017-11-01 16:27:37 -07:00
snandini
a0cf2ca7a5 Release 5.2.0.52C
Release 5.2.0.52C

Change-Id: I687192a3af5375620958b1555d33f67b46d90dd0
CRs-Fixed: 774533
2017-11-01 14:39:10 -07:00
Kiran Kumar Lokere
d547fdda5b qcacld-3.0: Enable scan mac randomization if INI cfg is set
Enable scan randomization only if gEnableMacAddrSpoof
configuration is enabled

Change-Id: I1b9accb7fe1049ee6c5dda2a4f5920c0908196ff
CRs-Fixed: 2104796
2017-11-01 14:39:09 -07:00
Deepak Dhamdhere
f918d42bca qcacld-3.0: Add peer debug log entries in WMA and ol_txrx
Add wlan_objmgr_peer_debug_log() calls in WMA, ol_txrx for
tracking of peer create/delete/map/unmap events and related roaming
events. These calls, added in lnx.1.1 driver in different change lists,
are consolidated in this change.

Add wlan_roam_debug_dump_table() call to the functions that perform
recovery after detecting peer deletion error.

CRs-Fixed: 2130256
Change-Id: Ia3bb6a01b2f62889fe542a02ca42ffab5a8a76aa
2017-11-01 14:39:06 -07:00
Deepak Dhamdhere
5d7ea2fac9 qcacld-3.0: Add wlan_rome_debug.o to Kbuild
New files are added to qca-wifi-host-cmn project for roam debug
infrastructure. Add the corresponding entry to Kbuild for compilation
of utils/logging/src/wlan_roam_debug.o.

CRs-Fixed: 2135189
Change-Id: I50a3ed760b454ce0de59caec6af7c0b86c556e3e
2017-11-01 14:39:04 -07:00
snandini
df7c569fbe Release 5.2.0.52B
Release 5.2.0.52B

Change-Id: Iaf652c209aa206403a3e2287318eb45188908c82
CRs-Fixed: 774533
2017-11-01 13:56:50 -07:00
Rajeev Kumar Sirasanagandla
b13b777c32 qcacld-3.0: Get RCPI value in cfg80211 get_station callback
Currently, API to get RCPI value is wlan_hdd_get_rcpi(),
invoke this API to log computed RCPI.

Change-Id: I99e137e37a0c2c4a94f37009b6c00d992c440ec6
CRs-Fixed: 1115232
2017-11-01 13:56:49 -07:00
Rajeev Kumar Sirasanagandla
996e529f9d qcacld-3.0: Add support to query RCPI info
RCPI is measure of received RF power in the selected channel for a
received frame and is measured at the antenna connector and shall be
measured over an entire frame. It is a monotonically increasing,
logarithmic function of received power level.

Wlan firmware computes RCPI.

Add host support to query firmware for RCPI information of peer
mac address in sta, p2p client, softap and p2p go modes.

Change-Id: I43a061ad4ed0fceb66dbd82b1c35b7678ee2259c
CRs-Fixed: 1092612
2017-11-01 13:56:47 -07:00
snandini
4b9e07d89b Release 5.2.0.52A
Release 5.2.0.52A

Change-Id: Ic7fb96d295b9a36f76f01ea4de9f2626b35dc3de
CRs-Fixed: 774533
2017-11-01 13:17:19 -07:00
Paul Zhang
382248f646 qcacld-3.0: control mac spoofing scan by INI
The function wlan_hdd_cfg80211_scan_randomization_init
will set mac spoofing scan feature ignore the ini
configuration on gEnableMacAddrSpoof.

CRs-fixed: 2108137
Change-Id: I8164aa15e83c6fbe1a4249efeca4c7f6474604f8
2017-11-01 13:17:18 -07:00
Krunal Soni
6de1b2173a qcacld-3.0: Move lim_del_pmf_sa_query_timer API to pe_delete_session
In some of the stress and stability testing, it has been found that
lim_del_pmf_sa_query_timer() is not getting called which results in
to memory leak.

Move lim_del_pmf_sa_query_timer() API to pe_delete_session() to make
sure that pmf timer gets deleted in all the cases.

CRs-Fixed: 2133344
Change-Id: Iefed50ad0c473deb8c3803d0bd6b2997624f2f82
2017-11-01 13:17:16 -07:00
Liangwei Dong
9fcc72168e qcacld-3.0: Fix memory leak
To fix pmo_ctx memory leak by call component_deinit in
failure path of __hdd_module_init.

Change-Id: I66ee4566e805c9510d6dec219dc397bc7191952c
CRs-Fixed: 2131441
2017-11-01 13:17:14 -07:00
snandini
0742e5c96a Release 5.2.0.52
Release 5.2.0.52

Change-Id: I139202ddc647690df19ffb5fea652c6aa464c8a4
CRs-Fixed: 774533
2017-10-31 21:37:56 -07:00
Lin Bai
aa7f8d772d qcacld-3.0: Fix build error without MSM_PLATFORM
Compiler is throwing error - undefined variable
'busBandwidthComputeInterval' after MSM_PLATFORM disabled.

Wrap the related code within MSM_PLATFORM.

CRs-Fixed: 2135338
Change-Id: Iad1b7a4deefec0d454d12c257d885f0fa256d33f
2017-10-31 21:37:56 -07:00
bings
86657feebf qcacld-3.0: Fix race condition between vendor scan and nl scan
If vendor scan and nl scan happen and abort at the same time, before
scan_block_work is scheduled, pAdapter->request may be set as vendor
scan request firstly, then scan_block_work is scheduled while at the
same time pAdapter->request may be as nl scan request by nl scan.

This causes memory leak and incorrect scan done called.

Change-Id: Id730f2d0041641099a26e76ab13ec419a48b4241
CRs-Fixed: 2134652
2017-10-31 21:37:53 -07:00
snandini
f576afd2f0 Release 5.2.0.51Z
Release 5.2.0.51Z

Change-Id: Id360fe0dc649bfc19f24ae7716e00a5998d10ab9
CRs-Fixed: 774533
2017-10-31 20:22:42 -07:00
Jeff Johnson
3d731362e1 qcacld-3.0: Rename hdd_ap_ctx wepKey field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field wepKey in struct hdd_ap_ctx.

Change-Id: I8964d07ebaf77c9ff14ec0a055c800f3923a9b55
CRs-Fixed: 2134927
2017-10-31 20:22:41 -07:00
Jeff Johnson
413c15f9f9 qcacld-3.0: Rename hdd_ap_ctx groupKey field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field groupKey in struct hdd_ap_ctx.

Change-Id: I3dcac71706cee8c97593370e7c3d0c99d56dca20
CRs-Fixed: 2134926
2017-10-31 20:22:39 -07:00