Commit Graph

6739 Commits

Author SHA1 Message Date
Jeff Johnson
da47af82ec qcacld-3.0: Replace hdd_adapter_t in wlan_hdd_oemdata.c
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_adapter_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: Id43c38784aadb07b5352d9ecc2c7dcb0e31dbcd8
CRs-Fixed: 2101045
2017-09-11 16:21:52 -07:00
Jeff Johnson
fbb5452527 qcacld-3.0: Replace hdd_adapter_t in wlan_hdd_p2p.[ch]
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_adapter_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: I5be95445278bf120ddf8b1a01a6af8ddf7a0d5d7
CRs-Fixed: 2101039
2017-09-11 16:21:50 -07:00
Jeff Johnson
75b737d48c qcacld-3.0: Replace hdd_adapter_t in wlan_hdd_power.[ch]
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_adapter_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: I66ecfb6f5a478298c1300f7ac3086715aa66e4c2
CRs-Fixed: 2101044
2017-09-11 16:21:49 -07:00
snandini
48911a60aa Release 5.2.0.42Z
Release 5.2.0.42Z

Change-Id: Idcc2fe95bfdba6294812fd7bdcd5fa8a3444044e
CRs-Fixed: 774533
2017-09-11 12:16:33 -07:00
Tushnim Bhattacharyya
518e80fc94 qcacld-3.0: Add the DFS MCC check in ACS algorithm
During channel selection for SAP via ACS, add check if there is
a connection on 5Ghz, don't allow SAP to select DFS channel.

Change-Id: If6e42cbc584ddb80588daf138d94d2e0a75b882a
CRs-Fixed: 2102024
2017-09-11 12:16:33 -07:00
Arif Hussain
dcb9ead668 qcacld-3.0: Change the default ini values of adapt dwelltime params
Make default values as
global_adapt_dwelltime_mode=0
hostscan_adaptive_dwell_mode=1
roamscan_adaptive_dwell_mode=1
extscan_adaptive_dwell_mode=1
pnoscan_adaptive_dwell_mode=1

Change-Id: I1845b5a06446cf043ba16c7b4686a1a2049fcdef
CRs-Fixed: 2017558
2017-09-11 12:16:31 -07:00
Arif Hussain
fdb25e2022 qcacld-3.0: Fix memory leak in sme
In some places memory allocated for the parsed IE’s
using csr_get_parsed_bss_description_ies are freed only
if existing IE description is NULL. Even though memory
allocation not done based on above condition, this may
lead to memory leak..

To fix this make sure to check existing IE description
while allocating memory.

Change-Id: Ia065b9ebb4cbd00f48f3cdca8737190b3609e1c7
CRs-Fixed: 2002298
2017-09-11 12:16:29 -07:00
snandini
4b3c174372 Release 5.2.0.42Y
Release 5.2.0.42Y

Change-Id: Ica4f22b510eed525b40bcc41446b8cd43d535644
CRs-Fixed: 774533
2017-09-10 21:27:58 -07:00
Jeff Johnson
71c5f0fa1b qcacld-3.0: Remove obsolete prototype for sysMcStart()
Function sysMcStart() no longer exists in the code, but the prototype
for it is still present. Get rid of it.

Change-Id: Ifd6c1fde27f907300ab7a8e03d4a201d861fd94e
CRs-Fixed: 2102689
2017-09-10 21:27:57 -07:00
Jeff Johnson
b4b196e024 qcacld-3.0: Remove handling of obsolete SYS messages
The SYS_MSG_ID_MC_START and SYS_MSG_ID_MC_STOP messages are no longer
being used, so remove all supporting logic.

Change-Id: I29f2d852e4313a580532cdc4db1b9e0bf211283f
CRs-Fixed: 2102670
2017-09-10 21:27:56 -07:00
Paul Zhang
fb35175109 qcacld-3.0: Fix the spinlock pairing issue
Per code review, some spin_lock/spin_unlock are not pairing.

Change-Id: I72cbc6d77ee37e44b4672a4e6747b90b7ebb0a4e
CRs-Fixed: 2105070
2017-09-10 21:27:54 -07:00
snandini
1f20ec6b0e Release 5.2.0.42X
Release 5.2.0.42X

Change-Id: I2b1180ea3126cec64ab327253be33bd3cfbd437f
CRs-Fixed: 774533
2017-09-10 19:27:31 -07:00
Jeff Johnson
40dae4e63b qcacld-3.0: Replace typedef hdd_station_ctx_t
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_station_ctx_t typedef does
not meet any of those criteria, so replace it with a well named
struct.

Change-Id: Idaa9c96dc757465d120b33c686d102ef29b31ca4
CRs-Fixed: 2101019
2017-09-10 14:51:40 -07:00
Jeff Johnson
8725103294 qcacld-3.0: Replace typedef hdd_ap_ctx_t
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_ap_ctx_t typedef does not
meet any of those criteria, so replace it with a well named struct.

Change-Id: I3084d902b405529f82ff9056f48a8c38392f50f5
CRs-Fixed: 2101017
2017-09-10 14:51:40 -07:00
Jeff Johnson
4943206a0c qcacld-3.0: Replace hdd_context_t in wlan_hdd_assoc.[ch]
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_context_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: Iadc364f1abf3159f7c258a01fd11628a86fcf820
CRs-Fixed: 2100215
2017-09-10 14:51:40 -07:00
Jeff Johnson
d867d7d5f0 qcacld-3.0: Replace hdd_context_t in __iw_get_peer_rssi()
Previously change "qcacld-3.0: Replace hdd_context_t in
wlan_hdd_hostapd.[ch]" replaced all instances of hdd_context_t in
wlan_hdd_hostapd.c. However a subsequent change introduced
__iw_get_peer_rssi() which has a new instance, so replace it.

Change-Id: I0a986b4e5255937732c41737ab65390e53257373
CRs-Fixed: 2103682
2017-09-10 14:51:40 -07:00
Jeff Johnson
d49c4a1fa6 qcacld-3.0: Replace hdd_context_t in wlan_hdd_main.[ch]
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_context_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: Ib6fe81f9537bd760447b3e0f5fedee44499c302c
CRs-Fixed: 2100213
2017-09-10 14:51:40 -07:00
Jeff Johnson
7aeb95b648 qcacld-3.0: Replace hdd_context_t in wlan_hdd_cfg80211.[ch]
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_context_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: I996f41049c1be0e37f27a8c9a032d69f5c58a390
CRs-Fixed: 2100208
2017-09-10 14:48:18 -07:00
Jeff Johnson
f772687a8c qcacld-3.0: Replace hdd_context_t in wlan_hdd_softap_tx_rx.c
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_context_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: I4d204f1fc4ef0c8d2d2664544ca470d1f31099aa
CRs-Fixed: 2100159
2017-09-10 14:45:54 -07:00
Jeff Johnson
5eb1e68b33 qcacld-3.0: Replace hdd_context_t in wlan_hdd_stats.[ch]
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_context_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: Ie0a9961cfe67a7549469756ec0df08546aa94cc0
CRs-Fixed: 2100163
2017-09-10 14:45:54 -07:00
Jeff Johnson
b6909becf1 qcacld-3.0: Replace hdd_context_t in wlan_hdd_cfg.[ch]
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_context_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: Iea06364201509e916b3e9c60a2248eaf29402720
CRs-Fixed: 2100212
2017-09-10 14:45:54 -07:00
snandini
2dab3c2814 Release 5.2.0.42W
Release 5.2.0.42W

Change-Id: I5f779931b3c6bddb0296ec76e235743174ae024a
CRs-Fixed: 774533
2017-09-08 19:40:10 -07:00
Ashish Kumar Dhanotiya
cc2e0d3e7e qcacld-3.0: Enable 802.11p channel configuration from ini
Currently 802.11p channels are by default enabled.
To make it configurable, use ini value gDot11PMode.

Change-Id: I70417f79d179649df9597c02ec51fe46ef953b91
CRs-Fixed: 2098677
2017-09-08 19:40:10 -07:00
Sandeep Puligilla
f22263c8e0 qcacld-3.0: Decrease tx drain wait time during del bss
wma_delete_bss is stuck for more than
400ms in failure scenario due to pending
tx packets to drain.

-Decrease the wait time to 20ms(2ms*max_wait_iterations)
to avoid the delete bss stuck issue.
-Tx drain wait feature added for LFR2.0
feature so moved the code under the LFR2.0
macro.

Change-Id: I33b56bb627ac914ca6fe96949de373b015853fc9
CRs-Fixed: 2097269
2017-09-08 19:40:08 -07:00
psimha
aca7fc9ece qcacld-3.0: Deregister HIF ext groups on rmmod
- Deregister & free the hif ext ctx when detaching DP interrupts.
- Unregister the hotcpu_notifier during rmmod.

Change-Id: I35cf8b22ff785e90f6e6fd976e83e46a126f95e2
CRs-Fixed: 2086729
2017-09-08 19:40:07 -07:00
snandini
9edc5dba43 Release 5.2.0.42V
Release 5.2.0.42V

Change-Id: Icdeb37d0794ed3d8c1d59753255e60cd5d1fadce
CRs-Fixed: 774533
2017-09-08 18:57:16 -07:00
Amar Singhal
58b45ef32b qcacld-3.0: Cache the current band value
Add a separate variable to store the band value. Since the
value can be set at run-time, config data structure cannot be
used to store the runtime value. Also apply the configuration
restrictions while calculating this band value.

Change-Id: Id6df155b7ecfbe9ca84e489b2dd099cdd0cbcc8f
CRs-Fixed: 2085746
2017-09-08 18:57:15 -07:00
snandini
894e6a18f2 Release 5.2.0.42U
Release 5.2.0.42U

Change-Id: Id6e1cf5ed6011fff80202209a73129ef1880d567
CRs-Fixed: 774533
2017-09-08 17:57:16 -07:00
Krunal Soni
9c2ee03d1a qcacld-3.0: Re-register the callbacks up on driver reinit operation
Some of the callbacks in mac context gets initialized to NULL when SSR
is triggered and up on reinitialization of driver, those callbacks need
to be re-registered.

CRs-Fixed: 2078706
Change-Id: I0ce9b0ab2680e7403536d6b4dd745c2bcb10791a
2017-09-08 17:57:15 -07:00
Krunal Soni
4df4b660e5 qcacld-3.0: Don't discard nss update when channel bonding is disabled
For STA-DUT, when host receives the beacon forwarded by firmware which
contains NSS update, host discards that beacon if channel bonding is
disabled from INI. This is incorrect behavior.
When channel bonding is disabled from INI and host should discard the
beacon when it contains channel width related updates.

Change-Id: I76b42caec6ed0faea7b1650407ff5c1565ac6947
CRs-Fixed: 2059895
2017-09-08 17:57:14 -07:00
Abhishek Singh
9da81d0555 qcacld-3.0: Fix SAP close issue in dual band SAP
In Dual band SAP+SAP, if channel change for a SAP, the SAP get
stuck in eSAP_DISCONNECTING state, waiting for channel change
indication for the concurrent SAP, which may never come as this
is Dual band SAP+SAP and both are on different bands.

Now when stop adapter is called for this SAP, the stop BSS fails
as its already in disconnecting state and due to this it is not
deleted cleanly.

To fix this if DBS is enabled change the channel of the AP on
which CSA was initiated without waiting for other SAP interface.

Change-Id: I54d903d4fc0694b16c1f1debf52ffe2a6dad0ba9
CRs-Fixed: 2097002
2017-09-08 17:57:12 -07:00
snandini
290b16860e Release 5.2.0.42T
Release 5.2.0.42T

Change-Id: I83c6fc4091490dc2aafc542a0e360cb6025c89a6
CRs-Fixed: 774533
2017-09-08 16:47:41 -07:00
Liangwei Dong
6e1a209be5 qcacld-3.0: avoid duplicated LTE_COEX event
For each WLAN_SVC_LTE_COEX_IND event, SCM
will stop/start hostapd. In middle of
Stop/restart hostapd, the current unsafe
operation channel is not changed. If multiple
FW LTE coex event are uploaded during this
time, the WLAN_SVC_LTE_COEX_IND could be
delivered multiple times. And then the hostapd
will stop/start several times.
Fix by skipping unsafe channel checking
and SAP restart when the unsafe channel list
has no change.

Change-Id: I756f317ba39f97c673fa54b382191a6429435b1e
CRs-Fixed: 2078725
2017-09-08 16:47:41 -07:00
Jeff Johnson
5522bc9a07 qcacld-3.0: Remove unused p_cds_context in "set mac acl"
__wlan_hdd_cfg80211_set_mac_acl() contains a local variable
p_cds_context that is written but never read, hence it is unused.
Therfore remove the variable.

Change-Id: I99051fbfb5e44791514a5086eb9cf33f773ffbee
CRs-Fixed: 2102503
2017-09-08 15:59:52 -07:00
snandini
b625c48726 Release 5.2.0.42S
Release 5.2.0.42S

Change-Id: I8f6d9725dfcfe28b7a68fc41645a45ef9fde2c71
CRs-Fixed: 774533
2017-09-08 15:47:02 -07:00
Yun Park
66f24c4c50 qcacld-3.0: Initialize maximum IPA clock when IPA clock scaling is disabled
When IPA clock scaling is not enabled, initialize IPA clock as maximum.

Change-Id: I856279a5b14222e3a7e6d82f78570080cbe0b839
CRs-Fixed: 2022249
2017-09-08 15:47:02 -07:00
snandini
953ca2f41c Release 5.2.0.42R
Release 5.2.0.42R

Change-Id: I189cf28259c4fc62005f46a51775585146560eff
CRs-Fixed: 774533
2017-09-08 14:28:18 -07:00
Tushnim Bhattacharyya
c3c375e5e9 qcacld-3.0: Use lockless sme API to get valid channel list from sme
Use lockless sme API to get valid channel list from sme instead of
sme_get_cfg_valid_channels to avoid deadlock.

Change-Id: I481824cb116244b9c13665d6a0ee88e28c88cf66
CRs-Fixed: 2063060
2017-09-08 14:28:18 -07:00
Tushnim Bhattacharyya
2df9de7637 qcacld-3.0: Add debug logs in SAP channel switch logic
Add debug logs in SAP channel switch logic to catch race condition cases.

Change-Id: I4eb40f25e113b0b0eab971dcb2fd114774b6824b
CRs-Fixed: 2063060
2017-09-08 14:28:16 -07:00
Tushnim Bhattacharyya
1f3a123652 qcacld-3.0: Handle no common channel between PCL and the favorite channel list
Handle the scenario where no common channel between PCL & the
favorite channel list is found.

Change-Id: I560d7ef861d89f3f4a0c63afacd0ffbf6aaa976e
CRs-Fixed: 2063060
2017-09-08 14:28:14 -07:00
Tushnim Bhattacharyya
2479ba3ec7 qcacld-3.0: Fix logic to force SCC in SAP+STA concurrency
If SAP is up & STA is coming up next(or vice versa) on a different
channel causing MCC, move SAP to cause SCC or DBS. This logic is
enabled only if gWlanMccToSccSwitchMode is set to
QDF_MCC_TO_SCC_SWITCH_FORCE_WITHOUT_DISCONNECTION or
QDF_MCC_TO_SCC_SWITCH_WITH_FAVORITE_CHANNEL.

Change-Id: I16615d828a285762133ee3533339320ef119b3d3
CRs-Fixed: 2063060
2017-09-08 14:28:12 -07:00
Tushnim Bhattacharyya
03103fd070 qcacld-3.0: Add logic to force SCC in SAP+STA concurrency with ACS
If STA is up & SAP is comings up on a ACS derived channel causing MCC,
move SAP to the other band if DBS is supported. This logic is enabled
only if gWlanMccToSccSwitchMode is set to
QDF_MCC_TO_SCC_SWITCH_FORCE_WITHOUT_DISCONNECTION.

Change-Id: I48d809f83921292f51ca1735bff4c4d6dd339975
CRs-Fixed: 2063060
2017-09-08 14:28:10 -07:00
Tushnim Bhattacharyya
9a92999835 qcacld-3.0: Add logic to force SCC in SAP+STA concurrency - Part 2
If STA is up on a a DFS or passive or LTE unsafe channel & SAP is
comings up that causes MCC, move SAP to the other band if DBS
is supported. This logic is enabled only if gWlanMccToSccSwitchMode
is set to QDF_MCC_TO_SCC_SWITCH_FORCE_WITHOUT_DISCONNECTION.

Change-Id: I5d393a21301f3fa838f7cf38620fb1d57ae1d57a
CRs-Fixed: 2063060
2017-09-08 14:28:08 -07:00
Tushnim Bhattacharyya
ed678f97ae qcacld-3.0: Add logic to force SCC in SAP+STA concurrency
If SAP is up & STA comes up or moves to a DFS or passive or LTE
unsafe channel that causes MCC, move SAP to the other band if DBS
is supported. This logic is enabled only if gWlanMccToSccSwitchMode
is non zero.

Change-Id: I56f78dfaedec31c4c41aea6ac8c66261c9ad4c91
CRs-Fixed: 2063060
2017-09-08 14:28:06 -07:00
snandini
c178a35ca8 Release 5.2.0.42Q
Release 5.2.0.42Q

Change-Id: I8bdf86a47d91f1818216a630dad84f3e34a9bc99
CRs-Fixed: 774533
2017-09-08 03:57:31 -07:00
Jeff Johnson
382bce0268 qcacld-3.0: Remove cds_ctx param from register_ocb_peer()
The cdp_peer_ops register_ocb_peer() method currently takes a cds_ctx
parameter. Converged datapath APIs should not require the MCL-specific
CDS context, and in fact it is not required by the MCL implementation,
so remove it from all OCB peer registration APIs.

Change-Id: I873eeb472f463ac76f30de5a9013783565be916d
CRs-Fixed: 2103451
2017-09-08 03:57:31 -07:00
snandini
b9bc6de114 Release 5.2.0.42P
Release 5.2.0.42P

Change-Id: I72dab80787559899b1b862d435f7a9e39ff0b1b7
CRs-Fixed: 774533
2017-09-08 03:18:02 -07:00
Jeff Johnson
a9b6657591 qcacld-3.0: Remove unused wma_register_roaming_callbacks param
Currently wma_register_roaming_callbacks() has a cds_ctx parameter. At
one time this was necessary since the global context was required to
get the module-specific context.  However the global context is no
longer required for this purpose, so remove the unused parameter.

Change-Id: Ida681fb20dd98a46f385f1e04662f72a334c68bf
CRs-Fixed: 2103626
2017-09-08 03:18:02 -07:00
snandini
b4afd7899f Release 5.2.0.42O
Release 5.2.0.42O

Change-Id: Ic57b28dc79d275dd8dde4d9dd6aee1f18c7cbe5f
CRs-Fixed: 774533
2017-09-08 01:57:53 -07:00
Sravan Kumar Kairam
4402a264b2 qcacld-3.0: Log IP addr of the first RX packet after wow wakeup
Log the IP header source and destination address for the first Rx
packet received after host wakeup.

Change-Id: Ie8cf71c8ce913378687ad2c79ab9d5f46c0c2419
CRs-Fixed: 2010971
2017-09-08 01:57:52 -07:00