Graphe des révisions

3677 Révisions

Auteur SHA1 Message Date
Jeff Johnson
3aa54d42ef qcacld-3.0: Remove dead code in start pending ACS callback
In wlan_hdd_cfg80211_start_pending_acs() the result of calling
container_of() is NULL checked. The container of a work_struct is
always a valid pointer, so the NULL check is unnecessary. Remove this
resulting dead code.

Change-Id: Iac4d48037ee27bc5de4c5fbc7f91188d837c6d49
CRs-Fixed: 2267075
2018-06-26 20:11:34 -07:00
Bala Venkatesh
f2a75c0522 qcacld-3.0: Allow scanning on DFS channel if sta+sap scc is enabled
Allow scanning on DFS channel if sta+sap scc on dfs channel is
enabled.

CRs-Fixed: 2163490
Change-Id: I7bb94ed211062ff0f0f0ca93c765d51f26e28ce2
2018-06-26 20:11:31 -07:00
Ajit Pal Singh
d6c08f2f0e qcacld-3.0: Add function to set vdev tx_desc limit
1) Add ol txrx function to set TX descriptor limits for a
vdev.
2) Set the TX descriptor limits for STA and AP mode.

Change-Id: Ie9b1e52c3aff05db99ba3748a94792cc8116cdca
CRs-fixed: 2236321
2018-06-26 01:35:51 -07:00
Ajit Pal Singh
851a777ffc qcacld-3.0: Update OS queue status in TXRX module
Add function: ol_txrx_set_vdev_os_queue_status() to update
OS queue stop/start status in TXRX module.
Also call cdp_hl_fc_set_os_queue_status() from 'flow control
resume timer' to update OS queue status in TXRX module.

Change-Id: I03260985a48084bc523a3814c93c0e6b213e1970
CRs-fixed: 2236321
2018-06-26 01:35:42 -07:00
Ajit Pal Singh
5d269618d5 qcacld-3.0: Populate legacy flow control ops for HL
1) Populate legacy flow control ops 'cdp_lflowctl_ops'
for HL netdev flow control.
2) Also call cdp_hl_fc_register() to register HL flow control
callback.
3) Increase number of netdev queues to 5

Change-Id: I6bdb015b3325e54386f2aad093c89f6f782c24ed
CRs-fixed: 2236321
2018-06-26 01:35:35 -07:00
Jeff Johnson
d549efa633 qcacld-3.0: Use mac_handle_t in wlan_hdd_ioctl
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_ioctl to use the new naming.

Change-Id: I5b6a062e02dc6db387c0a4e4cc363cdac7013f45
CRs-Fixed: 2267221
2018-06-25 23:52:52 -07:00
Jeff Johnson
89a0c74c9b qcacld-3.0: Use mac_handle_t in wlan_hdd_hostapd
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_hostapd to use the new naming.

Change-Id: I63b3bc8017de7f73a09599f9e8c9ef41009d6bc6
CRs-Fixed: 2267151
2018-06-25 22:31:19 -07:00
Jeff Johnson
2954dedb2d qcacld-3.0: Use mac_handle_t in wlan_hdd_power
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_power to use the new naming.

Change-Id: I6729766eda0b6dc31d62028a8552c9fa9d7ce4f0
CRs-Fixed: 2267218
2018-06-25 21:19:03 -07:00
Jeff Johnson
cbbc78f93c qcacld-3.0: Use mac_handle_t in wlan_hdd_wmm
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_wmm to use the new naming.

Change-Id: I225c7b62b2b104941564856b3ed1ee20e3a8e1cd
CRs-Fixed: 2267123
2018-06-25 19:54:01 -07:00
Jeff Johnson
34fc63ab8d qcacld-3.0: Use mac_handle_t in wlan_hdd_cfg80211
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_cfg80211 to use the new naming.

Change-Id: Ia9a7014db052c46ee16d2cb834b46a0b7afafeee
CRs-Fixed: 2267223
2018-06-25 19:53:58 -07:00
Jeff Johnson
cec6e923a5 qcacld-3.0: Use mac_handle_t in wlan_hdd_wext
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_wext to use the new naming.

Change-Id: I3cabec634252453b33c8f480ba785cc739e872df
CRs-Fixed: 2267115
2018-06-25 19:53:55 -07:00
Dustin Brown
662f48b2a2 qcacld-3.0: Initialize all completion vars for SAP vdevs
Because a SAP vdev can be repurposed as a station adapter, there is a
case where a station vdev that was created as a SAP vdev will try to
access uninitialized completion variables. As these members are directly
attached to the adapter struct, always initialize them, regardless of
the vdev type at time of creation.

Change-Id: Ifc14ec677ffa76551e55fe982a58df21d430d6c6
CRs-Fixed: 2266419
2018-06-25 15:54:53 -07:00
Lin Bai
7d83a64f4c qcacld-3.0: Configure num_vdevs for FTM mode
Recent num_vdevs configuration change involved the regression,
that num_vdevs in FTM mode isn't configured, and default 0 interface
allowed. This is blocking FTM initialized.

Though no vdev required for FTM, here use INI configuration
to bypass check as well.

CRs-Fixed: 2266815
Change-Id: I019814fb2c37f1f9b5922545769761bed7a0da52
2018-06-25 10:02:16 -07:00
Ashish Kumar Dhanotiya
e533f6cdf1 qcacld-3.0: Return success on same MAC address change
Currently if the set mac adderess command comes, driver is
returning failure if any of the interface is using the MAC
address given in the command.
Return success if the same MAC address is passed in the command
for the same interface which is using this MAC currently.

Change-Id: Iaab6109aa015b6be525eba2bacbe05c3c796e033
CRs-Fixed: 2266755
2018-06-25 06:31:47 -07:00
Hanumanth Reddy Pothula
04bad8fa9d qcacld-3.0: Resolve possible OOB issue while processing start_bss
Presently, while processing start_bss, after retrieving WPS IE from
the beacon frame, 15th byte of WPS IE is accessed to get WPS state,
without confirming IE length holds that much minimum length to access.

Before accessing 15th byte(WPS state) of WPS IE, make sure IE length
holds minimum length to access it.

Change-Id: Ic00c700a1fbf88183b8b2d834c9700b538700ce7
CRs-Fixed: 2239164
2018-06-24 16:10:03 -07:00
Jeff Johnson
6dca9b3421 qcacld-3.0: Use mac_handle_t in wlan_hdd_clear_link_layer_stats
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern name
for what was previously called the tHalHandle. Subsequently change
"qcacld-3.0: Use mac_handle_t in wlan_hdd_stats" transitioned
wlan_hdd_stats to use the new naming. But while that change was in the
pipeline a new instance of tHalHandle was added. So now transition the
instance recently added to wlan_hdd_clear_link_layer_stats().

Change-Id: I2d17c729a92eb5c545b829fc6699e34233116f94
CRs-Fixed: 2266545
2018-06-24 10:16:58 -07:00
Wu Gao
ae38aeda71 qcacld-3.0: Do not clear session id
No valid channel found when DUT as P2P GO and radar signal detected,
stop ap and then up layer start ap again, session id of adapter
changed to invalid since session id of sap context is invalid and
passed to adapter in hdd_hostapd_sap_event_cb with event
eSAP_START_BSS_EVENT. So, do not clear session id of sap context for
stopping ap due to invalid channel case.

Change-Id: I3d60ae9b4ec8223dff26ffd9078b31e02bf29ba2
CRs-Fixed: 2257932
2018-06-23 22:10:18 -07:00
Jeff Johnson
daa7cd9475 qcacld-3.0: Use mac_handle_t in wlan_hdd_cfg
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_cfg to use the new naming.

Change-Id: Ib3a9d26cb8966b52b71e97d7b9fb8f2cca9ed916
CRs-Fixed: 2266499
2018-06-23 14:19:41 -07:00
Jeff Johnson
792c83bd6c qcacld-3.0: Use mac_handle_t in wlan_hdd_ext_scan
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_ext_scan to use the new naming.

Change-Id: I69f8a76ae798ed00953727b7687f53506acd22d3
CRs-Fixed: 2266498
2018-06-23 14:19:37 -07:00
Jeff Johnson
f7187f24e1 qcacld-3.0: Use mac_handle_t in wlan_hdd_assoc
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_assoc to use the new naming.

Change-Id: I33e58d6c51124036d00e37fa3018379b7f99105a
CRs-Fixed: 2266433
2018-06-22 22:19:09 -07:00
Hanumanth Reddy Pothula
834f943961 qcacld-3.0: Report valid MCS index to upper layer
While processing get_station cfg operation, HDD is using Nss
value, which gets updated during association, to calculate data
rate. So, there is a possibility of driver to report invalid
MCS index to upper layer if association happens with Nss 2 and
when data transmission is happening at Nss 1 rate.

On receiving GET STATS response, calculate Nss value based upon
the current data rate received from firmware, and pass it to HDD,
so that HDD can use the same Nss value to report valid MCS index
to the upper layer.

Change-Id: I62f029d53149a4747f619027ce69ce65fb280b8d
CRs-Fixed: 2250993
2018-06-22 21:07:13 -07:00
Jeff Johnson
a96ee9371e qcacld-3.0: Use mac_handle_t in wlan_hdd_p2p
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_p2p to use the new naming.

Change-Id: I93514340fcfcf136e6e635aa142209f7cf35a68f
CRs-Fixed: 2266176
2018-06-22 15:36:40 -07:00
Naveen Rawat
23a3b916b4 qcacld-3.0: Fix NDI create sequence
Create NDI vdev after adapter is added to back of hdd adapter list,
so that vdev create completion callback can identify right adapter
and set corresponding completion variable.

Change-Id: If72f779fabc15a9c29f7d94bffa041f7d42db1f4
CRs-Fixed: 2252030
2018-06-22 10:32:27 -07:00
Ashish Kumar Dhanotiya
ab2a929bb1 qcacld-3.0: Validate hdd_ctx in set peer authorized event
Add a check to validate hdd context in
hdd_set_peer_authorized_event api.

Change-Id: If3f2ed8262f0690d3633da9033531d53709db6e6
CRs-Fixed: 2259273
2018-06-22 08:18:15 -07:00
Alok Kumar
f28ca24789 qcacld-3.0: Add missing break statement in between switch cases
Add missing break statement between cases in switch statement
in hdd_wlan_dump_stats.

Change-Id: I4e48bec92c06eb4d8c7ff602ad0535826b3ed0d3
CRs-Fixed: 2233182
2018-06-22 02:58:47 -07:00
Jeff Johnson
a18d7343e7 qcacld-3.0: Use mac_handle_t in wlan_hdd_twt
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_twt to use the new naming.

Change-Id: Ia7148fa24d9ddfc53f27cdeb0667db6860b8d04a
CRs-Fixed: 2265586
2018-06-21 22:42:18 -07:00
Jeff Johnson
c61622311a qcacld-3.0: Use mac_handle_t in wlan_hdd_apf
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_apf to use the new naming.

Change-Id: I3be23a0d519e872e0f5d3b0cbf6184204f473a17
CRs-Fixed: 2264573
2018-06-21 21:18:50 -07:00
Kiran Kumar Lokere
0da2ba67a6 qcacld-3.0: Revert sending the reg sync event
Revert sending the reg sync event to fix stability issue.

Change-Id: Ie8e95ca338602d0eb48fcf7cf8c22cfd6716c0a5
CRs-Fixed: 2242697
2018-06-21 18:49:36 -07:00
Jeff Johnson
003f739f70 qcacld-3.0: Use mac_handle_t in wlan_hdd_stats
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_stats to use the new naming.

Change-Id: Ib61c29e2cc112df47c318cf8cb8848b9430c1066
CRs-Fixed: 2265345
2018-06-21 17:40:31 -07:00
Alok Kumar
4696fb0272 qcacld-3.0: Add Tx comp cbk for DHCP ACK SKB CB
During hard_start_xmit, set a flag in SKB CB to indicate DHCP ACK
packet, and a callback gets called on TX completion.

Change-Id: I4e11b2c35b4747c7af35a387b404e3ccb1e8e8e4
CRs-Fixed: 2253557
2018-06-21 13:52:12 -07:00
gaurank kathpalia
89d3c32488 qcacld-3.0: Move objmgr create/delete from HDD->WMA
Currently the driver creates and deletes the objmgr peer
in HDD layer. According to the latest requirement, the CDP
peer create/delete needs the pointer of objmgr peer, which
thus has to created before CDP peer create, and deleted
after CDP peer delete, which is done in WMA layer.

Remove the objmgr peer create/delete from HDD, and move it
to the WMA layer.

Change-Id: I5bd62a83864e09a3728109e2deec2adf4bb899b5
CRs-Fixed: 2264892
2018-06-21 13:52:08 -07:00
Nachiket Kukade
4b7c8e03c7 qcacld-3.0: Port modulated dtim and override listen interval
Port modulated dtim and override listen interval to PMO from
WMA.

Change-Id: Id965dd8ee0fbddfa563335fd2fe225dcd20cd162
CRs-Fixed: 2252788
2018-06-21 12:35:40 -07:00
Hanumanth Reddy Pothula
e9af116d9b qcacld-3.0: Initialize start logging object
While processing WIFI_LOGGER_START vendor command, HDD passes
uninitialized 'user_triggered' variable(member of start logging
object), to down layers, which may lead to enable packet logging,
not in the way user intended.

Make sure valid data is passed to down layers by initialize start
logging object and assigning valid data to the user_triggered variable.

Change-Id: I38ac09a6b658eefb52ab113c885ce3ab54f36535
CRs-Fixed: 2235153
2018-06-21 07:01:21 -07:00
Jinwei Chen
998a1a0e95 qcacld-3.0: separate HE caps per band
currently some HE capability is shared same value from
MIN value of 2G and 5G capability, separate them per band.

Change-Id: I37831b4044d4ca2deaf5015fb44227c824996136
CRs-Fixed: 2239070
2018-06-21 01:58:50 -07:00
Ashish Kumar Dhanotiya
1e20bcc70c qcacld-3.0: Vendor command support to enable/disable GTX
Add vendor command support to enable or disable GTX.
Currently there is no vendor attribute to enable/disable
GTX from vendor command. Add vendor attribute
QCA_WLAN_VENDOR_ATTR_CONFIG_GTX support through
QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION vendor command
and with new wmi command WMI_VDEV_PARAM_GTX_ENABLE.

Change-Id: I8a740f9209ffd5f6438c3cfdd830ee2a76d0aa52
CRs-Fixed: 2253655
2018-06-21 01:58:47 -07:00
Qiwei Cai
3719efe9e3 qcacld-3.0: Featurize WLAN_FEATURE_LINK_LAYER_STATS
Featurize WLAN_FEATURE_LINK_LAYER_STATS to compile out
in mission mode.

Change-Id: If0f27efa3661f4b3083180690160109084c5da67
CRs-Fixed: 2255035
2018-06-21 00:24:23 -07:00
Jeff Johnson
23e5148cee qcacld-3.0: Use mac_handle_t in wlan_hdd_oemdata
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_oemdata to use the new naming.

Change-Id: I78c2a1d6b93b7357071455d3585d9b6932863d55
CRs-Fixed: 2264435
2018-06-21 00:24:19 -07:00
Jeff Johnson
32833f11f6 qcacld-3.0: Use mac_handle_t in wlan_hdd_nan_datapath
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_nan_datapath to use the new naming.

Change-Id: I3f292fda33c4ab0085407cf87fcc8297e4be13f6
CRs-Fixed: 2264407
2018-06-20 21:23:20 -07:00
Jeff Johnson
b396b06864 qcacld-3.0: Use mac_handle_t in wlan_hdd_regulatory
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_regulatory to use the new naming.

Change-Id: I9626ae9722d43bae1840f95b49cd8014e87acc5c
CRs-Fixed: 2264404
2018-06-20 16:29:24 -07:00
Wen Gong
f07597e7e6 qcacld-3.0: Add recovery ability for ftm
Add recovery ability for ftm, otherwise it will fail in
cds_trigger_recovery_work

Change-Id: I425a0eadc174bc5a56e62ad3ebfb78841140abee
CRs-Fixed: 2258709
2018-06-20 16:29:21 -07:00
Jeff Johnson
1cfebab2e7 qcacld-3.0: Use mac_handle_t in wlan_hdd_tx_rx
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_tx_rx to use the new naming.

Change-Id: I9793ded75df9c0a0347ab3d1cba5ef85065fe653
CRs-Fixed: 2264433
2018-06-20 15:19:43 -07:00
Jeff Johnson
17743898c4 qcacld-3.0: Use mac_handle_t in wlan_hdd_scan
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern name
for what was previously called the tHalHandle. Transition
wlan_hdd_scan to use the new naming. In the case of scheduled scan
remove unnecessary testing of the handle since the scan component will
validate the actual vdev.

Change-Id: I68d2be133bd6d18c97ad5211b0d6f95f4ad28652
CRs-Fixed: 2264397
2018-06-20 14:01:05 -07:00
Nachiket Kukade
177b5b06c4 qcacld-3.0: Add support for Android Packet Filter v3
Android Packet Filter 3.0 requires the framework to be able
to read and write into the APF work memory in the Firmware.
It also requires to be able to enable or disable the
interpreter.

Add support for the new read/write/enable/disable operations.

Change-Id: Ic72243b918f4a8385a92b803a1ca3c5305423b52
CRs-Fixed: 2184969
2018-06-20 11:32:39 -07:00
Sravan Kumar Kairam
ce792eb7f6 qcacld-3.0: Clean up IPA interface when SAP stop bss fails
In case of rmmod if stop bss fails SAP IPA interface is not
deleted. So again at next driver load IPA will be holding the
stale IPA header and new IPA header will not be added at IPA
interface creation. In this change clean IPA interface when SAP
stop bss fails.

Change-Id: I3a1bf891752308ba1a29d6768f24880d8514d5bf
CRs-Fixed: 2224307
2018-06-20 04:05:36 -07:00
Jeff Johnson
4e998e3f04 qcacld-3.0: Remove obsolete wlan_hdd_latency_opt()
Change "qcacld-3.0: Add ARP debug stats" (Change-Id
Idce70799bd3698dc8a8ecd8cfc8ef7d9bf1f5764) removed the only use of
wlan_hdd_latency_opt(), so remove this now obsolete function.

Change-Id: I27a3157072847e313fe8379abd2de4ec76cfef57
CRs-Fixed: 2263616
2018-06-20 02:30:45 -07:00
Jeff Johnson
0a6de649a1 qcacld-3.0: Use mac_handle_t in wlan_hdd_he
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_he to use the new naming.

Change-Id: Id0ee15548a2bb78258afd9381bad6b4834e0e47c
CRs-Fixed: 2262588
2018-06-20 02:30:12 -07:00
Jeff Johnson
ad278e62c3 qcacld-3.0: Use mac_handle_t in wlan_hdd_tsf
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_tsf to use the new naming.

Change-Id: I180e9a6347e5bccea41f9c14612d888711aa6485
CRs-Fixed: 2262587
2018-06-20 02:30:09 -07:00
Jeff Johnson
8b941e074c qcacld-3.0: Use mac_handle_t in wlan_hdd_debugfs
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_debugfs to use the new naming.

Change-Id: I762d1f9520c94beafc912f9b6e3720531af0eeea
CRs-Fixed: 2262586
2018-06-20 02:30:05 -07:00
Jeff Johnson
8915329a78 qcacld-3.0: Use mac_handle_t in wlan_hdd_lpass
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
wlan_hdd_lpass to use the new naming.

Change-Id: Id5ffe841fa4d81a07756c7e9f9d9873d2ba921cb
CRs-Fixed: 2262585
2018-06-20 02:30:02 -07:00
Varun Reddy Yeturu
d33033f7d0 qcacld-3.0: Kbuild changes for TWT
Add the compilation flags for TWT feature to Kbuild.
Based on the compilation flag, include the source
files for compilation and also include the header
files path.

Change-Id: I45991b3c9e49e2aa0ff51a2650fde69ea447bf15
CRs-Fixed: 2238302
2018-06-20 00:42:47 -07:00