Commit Graph

15568 Commits

Author SHA1 Message Date
Jeff Johnson
b91e2d9eeb qcacld-3.0: Properly featurize sap_update_unsafe_channel_list()
Function sap_update_unsafe_channel_list() is conditional upon feature
flag FEATURE_WLAN_CH_AVOID. However there isn't a stub implementation
for when the feature is not enabled, and as a result in-function
conditional compilation is required at the call site. This is contrary
to the coding style, so introduce a stub implementation for when the
feature is not present. In addition make this function static since
the scope is local to a single source file.

Change-Id: I12f010ac8f6d2cb63794e3295977bfac4266cca1
CRs-Fixed: 2423728
2019-03-27 21:36:10 -07:00
Jeff Johnson
6c3368392b qcacld-3.0: Remove acsBestChannelInfo from struct sap_context
The information currently being stored in the sap_context's
acsBestChannelInfo is only utilized during the execution of function
sap_select_channel(). Since this use temporal there is no need to
cache the information, so remove the struct from the sap_context.

Change-Id: I6ca7ff73752ed44fdf11ad99f303538480942edb
CRs-Fixed: 2423727
2019-03-27 21:36:05 -07:00
Jeff Johnson
eb18030b81 qcacld-3.0: Remove SapQosCfg from struct sap_context
The SapQosCfg in struct sap_context is written, but is never read.
Since this information is unused, remove it.

Change-Id: Ic04980cd365524d458f6cb5d3e1ea411d1efd10f
CRs-Fixed: 2423726
2019-03-27 21:36:01 -07:00
nshrivas
b4813ac60d Release 5.2.0.128J
Release 5.2.0.128J

Change-Id: I19013d8b9f3dd8a00e10908377a46a6efeefaf44
CRs-Fixed: 774533
2019-03-27 17:45:49 -07:00
Veerendranath Jakkam
62fedb911f qcacld-3.0: Advertise mandatory OCE scan extended feature flags
Below scan flags introduced from Linux kernel version 4.15. Advertise
the mandatory flags from Linux kernel version 4.15 and backport versions
if OCE STA feature enabled.
- NL80211_EXT_FEATURE_FILS_MAX_CHANNEL_TIME
- NL80211_EXT_FEATURE_ACCEPT_BCAST_PROBE_RESP
- NL80211_EXT_FEATURE_OCE_PROBE_REQ_HIGH_TX_RATE
- NL80211_EXT_FEATURE_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION

Change-Id: I700c7021ff921066d6ca2f9a00ce3ea93c0552df
CRs-Fixed: 2418086
2019-03-27 17:45:48 -07:00
nshrivas
6e6faab55b Release 5.2.0.128I
Release 5.2.0.128I

Change-Id: I7b349bf09e226044fd7f24bc6d2362a4d5cf2ce4
CRs-Fixed: 774533
2019-03-27 14:31:48 -07:00
Srinivas Girigowda
ff8f5efad4 qcacld-3.0: Consolidate multiple SIR/CSR PMKID_LEN to PMKID_LEN
1. Change MAX_PMKID_LEN to PMKID_LEN (present in qcacmn)
2. Change SIR_PMKID_LEN to PMKID_LEN
3. Change CSR_RSN_PMKID_SIZE to PMKID_LEN

Change-Id: I7a25d49ab2fc032338b2f88915852ae7f3a6271f
CRs-Fixed: 2423876
2019-03-27 14:31:47 -07:00
nshrivas
2c3513d503 Release 5.2.0.128H
Release 5.2.0.128H

Change-Id: Ia154d314f78e9bce3df04c6338974b7fb8924b5a
CRs-Fixed: 774533
2019-03-27 12:51:54 -07:00
Dustin Brown
f688ea13e2 qcacld-3.0: Remove hdd_context.iface_change_lock
The hdd_context.iface_change_lock field has been obsoleted by the
addition and integration of the Driver Synchronization feature. Remove
the hdd_context.iface_change_lock field

Change-Id: Ib0a184476735c6ee7eb70c307557e91d33538429
CRs-Fixed: 2423620
2019-03-27 12:51:54 -07:00
Dustin Brown
3f49e5e9b1 qcacld-3.0: Remove start/stop modules in progress
With the addition and integration of the Driver Synchronization feature,
it is no longer necessary to keep track of whether the driver modules
are starting or stopping. Remove the driver modules starting/stopping
flags.

Change-Id: I4718eedfaa1305780c5fcf6a2ff04114b210a911
CRs-Fixed: 2423618
2019-03-27 12:51:49 -07:00
Dustin Brown
e0a77273a9 qcacld-3.0: Remove hdd_ctx.con_mode_flag
hdd_ctx.con_mode_flag has been obsoleted by the addition and integration
of the Driver Synchronization feature. Remove hdd_ctx.con_mode_flag.

Change-Id: I33c47997e9f473e19ed96d7cd1cce00eb3b2365f
CRs-Fixed: 2423617
2019-03-27 12:51:44 -07:00
nshrivas
d7f58a5883 Release 5.2.0.128G
Release 5.2.0.128G

Change-Id: I00fea508851a9054423477d83e19a7f73b51fd88
CRs-Fixed: 774533
2019-03-27 11:09:46 -07:00
Abhinav Kumar
51dfb7af79 qcacld-3.0: Don't process duplicate WMM/WME IEs
After parsing initial WMM params (say with version 1) if
driver gets another WMM param with same IE present of qbss
params (say with version 2), the driver rejects the entire
IE. This results driver does not send WMM/WME IEs in assoc
request as per expected value.

Fix is to make sure driver should not process duplicate
WMM/WME IEs.

Change-Id: Ieb218af18709b0632b91c8d66560690667bfb8fa
CRs-Fixed: 2415298
2019-03-27 11:09:45 -07:00
nshrivas
ad9fb8f9e3 Release 5.2.0.128F
Release 5.2.0.128F

Change-Id: I41829b32329b7f18214213f9f6a857c4ca07d9fe
CRs-Fixed: 774533
2019-03-27 06:09:45 -07:00
Abhishek Singh
424ca57742 qcacld-3.0: Hold lock while temporary deleting the connection entry
If two thread are trying to access the connection entry and one of them
Is modifying it by temporarily deleting an entry, the other thread may
get the invalid connection entry and decision made using that connection
table will be invalid.

Thus acquire the lock before the entry is temporarily deleted and release
only after its added back.

Change-Id: I83b9d7a77045d8bddd6cf3e4b1af80bded116e2f
CRs-Fixed: 2422611
2019-03-27 06:09:44 -07:00
nshrivas
d6a72b0995 Release 5.2.0.128E
Release 5.2.0.128E

Change-Id: I8c81ec7355ae28d082636ed868d8013029cca370
CRs-Fixed: 774533
2019-03-27 02:53:35 -07:00
Rakshith Suresh Patkar
785b8450b5 qcacld-3.0: Add flag for ipa pipes_down_in_progress
ipa disable pipes request is honoured based on
ipa_pipes_down flag. However, there is a possible
synchronization issue if disable pipes request is
initiated from different contexts, as there is no
locking to protect this flag.

Add pipes_down_in_progress flag in ipa_ctx and
use this flag to ignore disable pipes requests if
one request is already in progress.

Change-Id: Iabf01249d4b6a551e03cea2ae96a0c6096f43ff8
CRs-Fixed: 2423155
2019-03-27 02:53:34 -07:00
nshrivas
243e28be6d Release 5.2.0.128D
Release 5.2.0.128D

Change-Id: I8a670d9c810b700392e55cde65f2eb3b2c3d7d61
CRs-Fixed: 774533
2019-03-27 01:25:39 -07:00
Dustin Brown
3fdaaf61ad qcacld-3.0: Remove cds_ssr_protect/unprotect
cds_ssr_protect/unprotect is obsolete. Remove them, replacing any
remaining call sites with qdf_op_protect/unprotect.

Change-Id: Ib8e1fc1e16785dfe3c5f8273e4ad8d5d6ecdb6e6
CRs-Fixed: 2418454
2019-03-27 01:25:38 -07:00
nshrivas
0c74d1c657 Release 5.2.0.128C
Release 5.2.0.128C

Change-Id: Ia6fec8a9dfded4971721b17427532a3df08fb798
CRs-Fixed: 774533
2019-03-26 22:41:19 -07:00
Srinivas Girigowda
9d5501596c qcacld-3.0: Change argument data type from int to unsigned int
kstrtouint() expects 3rd argument to be of data type unsigned int,
but currently argument of type int is passed.
Fix this by changing int to unsigned int.

Change-Id: I8263de9a4a9260da91dac6be021c54a927390a9a
CRs-Fixed: 2423711
2019-03-26 22:41:18 -07:00
Abhishek Singh
628bb6fb5f qcacld-3.0: Fix check for last active connection to set SMM
Check for last active connection to set SMM is checked in
hdd_stop_adapter. hdd_stop_adapter can get called even when session
is still active and thus the last connection check may fail to detect
the last connection and driver may end up sending SMM req after all
vdevs are deleted as part of opportunistic timer callback.

To fix this move the check in hdd_vdev_destroy once the session is
disconnected.

Change-Id: Ie074d690ec0b2848529910bd8e1411c149d4483f
CRs-Fixed: 2423329
2019-03-26 22:41:08 -07:00
nshrivas
ab93eae5d6 Release 5.2.0.128B
Release 5.2.0.128B

Change-Id: I71274c159f74b253a86aca929622e3bd0733239d
CRs-Fixed: 774533
2019-03-26 20:56:07 -07:00
Harprit Chhabada
e57425536e qcacld-3.0: Add support for bcast deauth in sap mode
Currently, only broadcast disassociate is supported and deauth is
send in a unicast manner.
For enabling broadcast deauth support, bypass the unicast deauth
and directly send broadcast disassociate.

Change-Id: Ie196bc955b5b9a9f48a474e5f109b2a6c73fa208
CRs-Fixed: 2420980
2019-03-26 20:56:07 -07:00
Rajasekaran Kalidoss
869bc4af4f qcacld-3.0: LFR2 DBS roam support
During LFR2 roaming, after the preauth with new AP
and disassociation with current AP are successful,
proper HW mode should be set based on the
existing concurrency scenario.

Change-Id: I312ed10bc844712b3dba36680457198a19f1e85c
CRs-Fixed: 2367224
2019-03-26 20:56:02 -07:00
nshrivas
193cc62420 Release 5.2.0.128A
Release 5.2.0.128A

Change-Id: Ib2bd5653c2ade8c0a18269aabf4010cc359fc0cc
CRs-Fixed: 774533
2019-03-26 17:16:34 -07:00
Dustin Brown
92acafe925 qcacld-3.0: Enable qdf_ptr_hash
Enable the recently added type, qdf_ptr_hash, added in
I7f5fc0c59ed220bde43044e7013b3c8573f1bf39.

Change-Id: I090adcb480e4dbce9934d17c82342c5b53cb8c9a
CRs-Fixed: 2421833
2019-03-26 17:16:33 -07:00
Dustin Brown
128e2d03bd qcacld-3.0: Enable qdf_slist
Enable the recently added type, qdf_slist, added in
I2959f34649a0d8e0b312d9d67c81de17753b9b6c.

Change-Id: I64ab3de7322846d2084f4f4bea01ab69bff52b32
CRs-Fixed: 2418502
2019-03-26 17:16:29 -07:00
nshrivas
6170085bea Release 5.2.0.128
Release 5.2.0.128

Change-Id: If978f96fb8c8621c73b9259cfd785915b5f6811e
CRs-Fixed: 774533
2019-03-26 15:38:15 -07:00
Rajeev Kumar Sirasanagandla
32ae804cfa qcacld-3.0: Add driver commands to set and get country
Add new driver commands SETCOUNTRYREV and GETCOUNTRYREV to set and get
the country code respectively.

Change-Id: Ia231b2842f127d1e48ffdc110d3d7ec08a15bd6c
CRs-Fixed: 2412656
2019-03-26 15:38:14 -07:00
Abhishek Singh
8c54e38f56 qcacld-3.0: Limit the wait for first CSA beacon TX completion
During channel switch in AP, Driver send beacon with CSA count
and wait for first beacon tx complete to initiate the host timer
every beacon interval to send the beacon template with updated CSA
count till CSA count become 0 and then do the vdev restart.

If driver doesn't get first beacon tx complete, the state machine
get stuck waiting for CSA to complete and can lead to functional
and stability issues.

So wait maximum for MAX_WAIT_FOR_BCN_TX_COMPLETE time for first
beacon tx complete and if not received, start the timer for every
beacon interval to send the beacon template with updated CSA count.

Change-Id: I90fab62d0851144906a7e7bd56285e64729c568c
CRs-Fixed: 2423079
2019-03-26 15:38:08 -07:00
nshrivas
b492bae0b3 Release 5.2.0.127Z
Release 5.2.0.127Z

Change-Id: I5f7799df6fc212cdf73136412fdedfa3e7594da8
CRs-Fixed: 774533
2019-03-26 10:30:13 -07:00
wadesong
7f682da30f qcacld-3.0: Documentation refine for some ini items
1) Refine the documentation text of the following items:

gTxChainMask1ss
gTDLSPuapsdInactivityTime
UapsdMask
InfraUapsdVoSrvIntv
InfraUapsdVoSuspIntv
InfraUapsdViSrvIntv
InfraUapsdViSuspIntv
InfraUapsdBeSrvIntv
InfraUapsdBeSuspIntv
InfraUapsdBkSrvIntv
InfraUapsdBkSuspIntv
InfraDirAcVo
InfraDirAcBe
InfraDirAcBk
InfraSbaAcBk
burstSizeDefinition
tsInfoAckPolicy
SingleTIDRC

2) Remove the duplicated definitions of 2 ini items:

gTDLSPuapsdInactivityTime
gTDLSPuapsdRxFrameThreshold

Change-Id: I0f122af2fc91616a38a2c101478bad942292a9ba
CRs-Fixed: 2422339
2019-03-26 10:30:12 -07:00
nshrivas
d8e2f3feba Release 5.2.0.127Y
Release 5.2.0.127Y

Change-Id: I3008dfc761e4d089d9b46f5f380b402fbd190237
CRs-Fixed: 774533
2019-03-26 05:47:08 -07:00
Jeff Johnson
8e9530b563 qcacld-3.0: mac: 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 mac replace any such comparisons with logical
operations performed on the pointer itself.

Change-Id: I387e08b1ba4d46e6b5ca5cf08ba398a32a3a00d4
CRs-Fixed: 2418392
2019-03-26 05:47:07 -07:00
Sravan Kumar Kairam
782f9c141c qcacld-3.0: Add feature flag to serialize reorder queue setup
Add feature flag to serialize update reorder queue setup wmi
command to firmware.

Change-Id: I91e3e2631d9a15500f61f5e449db71c047e0021a
CRs-Fixed: 2422772
2019-03-26 05:47:02 -07:00
nshrivas
4b81e701b0 Release 5.2.0.127X
Release 5.2.0.127X

Change-Id: I90ce56d7d740e3b35fbc501592d51f08158f6259
CRs-Fixed: 774533
2019-03-26 01:24:30 -07:00
Dustin Brown
8d8ab30f21 qcacld-3.0: Migrate to qdf_delayed_work
qdf_delayed_work_t has been superseded by qdf_delayed_work. Replace all
instances as appropriate.

Change-Id: I83f0dcec050bc9f91624048bd171f9a86b0394b5
CRs-Fixed: 2420202
2019-03-26 01:24:29 -07:00
nshrivas
2b2e6f52db Release 5.2.0.127W
Release 5.2.0.127W

Change-Id: Iafcec45223391bafdba06ad6d32202cc68cd2523
CRs-Fixed: 774533
2019-03-25 22:17:26 -07:00
Jeff Johnson
9a472f7f85 qcacld-3.0: Rename SAP identifier pconfig
The Linux Coding Style frowns upon so-called Hungarian notation, so
rename SAP identifier pconfig to be compliant.

Change-Id: I2d0ef46cf8f9972ca16592e7d8799ab8592b04a0
CRs-Fixed: 2422213
2019-03-25 22:17:25 -07:00
Jeff Johnson
8f8ceb9ac8 qcacld-3.0: Replace typedef tsap_config_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 tsap_config_t typedef does not
meet any of those criteria, so replace it with the underlying struct.

Change-Id: I95d9ad30d9af35dc4572d70c555b24b0285f8b2d
CRs-Fixed: 2422212
2019-03-25 22:17:19 -07:00
Jeff Johnson
e71c30916e qcacld-3.0: Rename SAP identifier pconfig_params
The Linux Coding Style frowns upon so-called Hungarian notation, so
rename SAP identifier pconfig_params to be compliant.

Change-Id: I2213bd6875113b5e73238d05cc131c29a0d473c2
CRs-Fixed: 2422211
2019-03-25 22:17:15 -07:00
nshrivas
44f73bf3df Release 5.2.0.127V
Release 5.2.0.127V

Change-Id: Iafec7aee1f5eba9dcc287edca8f7f49774fe6827
CRs-Fixed: 774533
2019-03-25 20:40:34 -07:00
Jeff Johnson
7dcac7ecbf qcacld-3.0: Rename SAP Event Callback identifiers
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename SAP Event Callback identifiers
tpWLAN_SAPEventCB, pfnSapEventCallback, pSapEventCallback, and
pacs_event_callback to be compliant.

Change-Id: I6ce97af649c73dd779b23c7ec4f0192f28d0f00a
CRs-Fixed: 2422210
2019-03-25 20:40:33 -07:00
Jeff Johnson
2284ad9c47 qcacld-3.0: Rename SAP identifier pUsrContext
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename SAP identifier pUsrContext to be
compliant.

Change-Id: Ib9c4cac6eb6f813e4da66c1c65bab16cebf62946
CRs-Fixed: 2422209
2019-03-25 20:40:26 -07:00
Jeff Johnson
eb704c070e qcacld-3.0: Rename SAP identifier pConfig
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename SAP identifier pConfig to be compliant.

Change-Id: I7618b95b3d88c2306412eb8d1f55dcc6cfd1a476
CRs-Fixed: 2422208
2019-03-25 20:40:19 -07:00
Jeff Johnson
72577c82a6 qcacld-3.0: Rename SAP identifier pDelStaParams
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename SAP identifier pDelStaParams to be
compliant.

Change-Id: I034f0157fe4016bbcacf3ce652035a3a13184f90
CRs-Fixed: 2422207
2019-03-25 20:40:12 -07:00
Jeff Johnson
8329f33bc8 qcacld-3.0: Rename SAP identifier sapContext
The Linux Coding Style frowns upon mixed-case names so rename SAP
identifier sapContext to be compliant.

Change-Id: If3d09c63141077247635315186068cabab396612
CRs-Fixed: 2422206
2019-03-25 20:40:05 -07:00
Jeff Johnson
84e2270bc6 qcacld-3.0: Remove obsolete SapFsm() prototype
Function SapFsm() no longer exists, so remove the obsolete prototype.

Change-Id: Ie308376743bd5e501d5037464ad55a9e47965b31
CRs-Fixed: 2422205
2019-03-25 20:39:59 -07:00
Jeff Johnson
01fcdb6b96 qcacld-3.0: Rename SAP identifier sapEvent
The Linux Coding Style frowns upon mixed-case names so rename SAP
identifier sapEvent to be compliant.

Change-Id: Iaa39fd0e82dedeed1a6749372214d6bd7e9c324b
CRs-Fixed: 2422204
2019-03-25 20:39:53 -07:00