Commit Graph

1096 Commits

Author SHA1 Message Date
Abhishek Singh
a6e5c3f0bf qcacld-3.0: Change default value of pcl_weightage to 10
Change default value of pcl_weightage to 10, so that PCL weightage
is used while connecting to a profile to select best BSS.

Change-Id: Ic074e01480d32510fb355846d92cb81d01e6e0d8
CRs-Fixed: 2206140
2018-03-15 11:51:02 -07:00
Rajeev Kumar
f5a17acdc7 qcacld-3.0: Remove redundant extern keyword from wext public APIs
Some of wext public APIs are declared using extern storage
class specifier which is not needed hence clean up extern
keyword from wext public API declarations from wlan_hdd_wext.h

Change-Id: Ib1fe79a94b62bc457784340a7e930489fffe98f9
CRs-Fixed: 2202699
2018-03-15 08:04:52 -07:00
Dustin Brown
5e89ef8673 qcacld-3.0: Remove hdd_notice
hdd_notice() is a redundant re-definition of hdd_info(), so remove it.
Replace existing usages with hdd_info() or hdd_debug() as appropriate.

Change-Id: Ie8ce7530c0118eff740975dcce396b68c2115429
CRs-Fixed: 2205815
2018-03-15 08:04:50 -07:00
Himanshu Agarwal
813b2bf082 qcacld-3.0: Handle concurrency for green AP component
Invoke green AP start/stop based on the current concurrency
and present state of green AP state machine.

Change-Id: I5648d236e6492f326c7ba9951da550e229352412
CRs-Fixed: 2173952
2018-03-15 08:04:47 -07:00
Dustin Brown
32a6118d85 qcacld-3.0: Rename ENTER/EXIT macros (part 1)
In order to better align with the rest of the driver, rename the
following macros:
 * ENTER -> hdd_enter
 * ENTER_DEV -> hdd_enter_dev
 * EXIT -> hdd_exit

For part 1, introduce the new macros

Change-Id: I82fed51ed676041352acfeff20923c58ade4a826
CRs-Fixed: 2205830
2018-03-14 17:58:34 -07:00
Rajeev Kumar
c9518ef38c qcacld-3.0: Clean up obsolete INI item gEnableFwSelfRecovery
Config ini item gEnableFwSelfRecovery is obsolete and no longer used
hence remove it.

Change-Id: I3b7f8662cb42f74d217dbdf3b2c3512176e2833e
CRs-Fixed: 2202033
2018-03-14 15:52:58 -07:00
Sourav Mohapatra
92ea8d67eb qcacld-3.0: Add support for recovery in FTM mode
While the driver is in FTM state, if a PDR is encountered
the driver is not allowed to recover.

Allow the recovery of the driver after PDR in FTM mode.

Change-Id: Ib4ee3970067a9fde5ba12d4dd954774a16ef0255
CRs-Fixed: 2181509
2018-03-14 07:04:59 -07:00
Naveen Rawat
56d5e0b7e0 qcacld-3.0: Allow tx/rx chainmask value to be 3
Allow tx/rx chainmask value to be 3, which indicates use both chains.

Change-Id: I95779ff97dca6538312177443163dc7276985fb9
CRs-Fixed: 2183831
2018-03-13 18:41:48 -07:00
Jeff Johnson
1d40f5b3f9 qcacld-3.0: Use new TDLS peer callback interface
Change "qcacmn: Introduce new versions of TDLS peer callbacks"
(Change-Id Id4ea23266b0f3e1480b645c5afce6c17585ccb46 in project
qca-wifi-host-cmn) introduced a new interface which removed an unused
parameter and changed obsolete naming. Update qcacld-3.0 to use this
new interface.

Change-Id: I5c4684ac0a62f314da26f92ece2c9a9874d63634
CRs-Fixed: 2200993
2018-03-12 09:35:24 -07:00
Krunal Soni
e608a27cb8 qcacld-3.0: Remove obsoleted INI called gFixedRate
Latest driver is not using "gFixedRate" INI anymore and this INI
is not doing any meaningful work, so remove it.

Change-Id: Icf7ef052a722f25c4338dd8086b14ce01c6176d8
CRs-Fixed: 2201799
2018-03-09 17:30:20 -08:00
Jeff Johnson
111ad91fa3 qcacld-3.0: Remove obsolete hdd_qdf_event
Change "qcacld-3.0: Use Request Manager for ioctl getWlanStats"
removed the only user of item hdd_qdf_event in struct hdd_wext_state,
so completely remove it.

Change-Id: Ifc00f6dc396ca5f6e59b3895a6c9467179073218
CRs-Fixed: 2202506
2018-03-08 10:32:50 -08:00
Jeff Johnson
a8ce12744d qcacld-3.0: Remove unused hdd_roam_register_tdlssta() param
The parameters to function hdd_roam_register_tdlssta() currently
includes ucastSig. This "signature" parameter dates back to a previous
version of the driver that used signatures to synchronize the data
plane with the control plane. However the current version of the
driver does not use this parameter, so remove it as part of the plan
to completely remove these signatures from throughout the driver.

Change-Id: Iee51d79e58501e3e8312c6c7a21b98c1ae6bf268
CRs-Fixed: 2200886
2018-03-07 17:28:51 -08:00
Jeff Johnson
3f6c89f77d qcacld-3.0: Remove unused hdd_softap_register_sta() params
The parameters to function hdd_softap_register_sta() currently include
ucastSig and bcastSig. These "signature" parameters date back to a
previous version of the driver that used these signatures to
synchronize the data plane with the control plane. However the current
version of the driver does not use these parameters, so remove them as
part of the plan to completely remove these signatures from throughout
the driver.

Change-Id: I1f1f1fb1ef553d36ba0f4902ab29b2b4852ae5ca
CRs-Fixed: 2200356
2018-03-07 17:28:48 -08:00
Dustin Brown
0b703ef927 qcacld-3.0: Remove maxWoWFilters and related
Recent changes in Power Management and Offload (PMO) have removed the
need for a configurable maximum number of WoW filters. Remove the
following relevant fields:

 * maxWoWFilters
 * CFG_MAX_WOW_FILTERS_MAX
 * WMA_STA_WOW_DEFAULT_PTRN_MAX
 * max_wow_filters
 * ol_ini_info

Change-Id: I99cc74731d6373258dc65473a8342bda0ab2786b
CRs-Fixed: 2199452
2018-03-05 23:33:27 -08:00
Mukul Sharma
ecf8e09fd5 qcacld-3.0: Disable indoor channel on sap start
There are scenario where indoor channel operations
(like  active / passive scan/connect/roam etc)
are not desired / permitted specially in sap case.
Hence add support of disabling indoor channel
on sap start and revert it on sap stop.

Change-Id: Id6e01534532e3076a3e662e6a4f71e8be924165a
CRs-fixed: 2121103
2018-03-05 22:33:43 -08:00
Rajeev Kumar
d056536a27 qcacld-3.0: Nuke HDD and SME obsolete wow enter and exit APIs
WoW is always enabled on ROME and ADRASTEA platforms and wow
wake up pattern configuration is dynamic based on vdev type.
All wow wake up patterns are configured at the time of vdev
creation. HDD and SME has obsolete wow enter and exit logic
and hence nuke it.

Change-Id: I228ff5b77a7f9dac579448ada4ebee591d5a0c38
CRs-Fixed: 2198644
2018-03-02 18:28:26 -08:00
Prakash Manjunathappa
e73e3b57db qcacld-3.0: Add INI to control tcp_limit_output_bytes tuning
Current driver posts the high and low Tx TPUT indications to cnss-daemon to
tune  the tcp_limit_output_byte system parameter. Add option to disable it.

Change-Id: Ic65fe0bd762024425cabf2f1f07123211dce5dce
CRs-Fixed: 2197112
2018-03-02 16:33:34 -08:00
Jeff Johnson
153f0263ea qcacld-3.0: Fix bad block comment in wlan_hdd_main.h
The checkpatch script has identified an instance of a non-conformant
block comment in wlan_hdd_main.h, so fix it.

Change-Id: Ie76156601021e2b5e503280337b38792217b7dbc
CRs-Fixed: 2197711
2018-02-28 18:02:41 -08:00
Nirav Shah
eb017befbd qcacld-3.0: Add support for QCA9379 on x86 platform
Add support for QCA9379 chip on x86 platform for
USB and SDIO attach.

Change-Id: I2de81794cd16521097ffa6956a18b4b0fe981d36
CRs-Fixed: 2196757
2018-02-28 05:29:39 -08:00
Yeshwanth Sriram Guntuka
469f957cd3 qcacld-3.0: Set hw mode based on channel_select_logic_conc ini
Set hw mode to DBS or single MAC for STA+STA and STA+P2P
concurrencies based on channel_select_logic_conc ini.

Change-Id: I46ba4d5cd8f5cda71d0c00be2b612bc851eb5ba4
CRs-Fixed: 2185554
2018-02-26 06:34:27 -08:00
Yeshwanth Sriram Guntuka
db7995db23 qcacld-3.0: Add ini support for channel selection logic
Add ini to select DBS or inter-band MCC channel selection logic
for STA+STA and STA+P2P connections.

Change-Id: I7cfde9592ec210b0a8c812171d2bc6f005e17fb2
CRs-Fixed: 2185552
2018-02-26 06:34:22 -08:00
Sravan Kumar Kairam
c1ae71c4cd qcacld-3.0: Add ARP debug stats
Change to collect arp packet stats along with
existing hdd stats to debug arp packet related
issues.

Change-Id: Idce70799bd3698dc8a8ecd8cfc8ef7d9bf1f5764
CRs-Fixed: 2019787
2018-02-26 04:07:10 -08:00
Kiran Kumar Lokere
5cc2f0da1f qcacld-3.0: Add support to configure HE fragmentaion
Add support to configure HE fragmentation support using NL
command.

Change-Id: I49b81df96a9c8199a1cc5994762aeba0ed9676b0
CRs-Fixed: 2166782
2018-02-24 04:11:17 -08:00
Dustin Brown
7bd76330b1 qcacld-3.0: Disable Packet Filter by default
The Android Packet Filter (APF) is the preferred method for filtering
packets, but the legacy Packet Filter may also be used. In order to
encourage the use of APF over Packet Filter, disable Packet Filter by
default. Customers may still enable Packet Filter via setting
gDisablePacketFilter=0 via ini configuration.

Change-Id: I581a4001167571efbc7c1c1738c5585e4bde0611
CRs-Fixed: 2195111
2018-02-23 13:26:05 -08:00
Hanumanth Reddy Pothula
3862ca9efa qcacld-3.0: Flush scan results on interface down
After successful connection, if interface down(STA) happens on DUT
and if AP changes data rates before interface up happens, there
is a possibility of STA to send packets at older data rates, because
of holding older scan results in SME scan cache. This results in using
stale scan result even after wifi turn off and on. If stale scan result
is used and if AP has updated some params like rates DUT will not be
using those supported rates for tx which is an issue.

To mitigate this issue, flush scan results on STA interface down.
Also, make sure there are no other STA interfaces before flushing
scan results.

Change-Id: I3505c128276fa8e5e05ea5d9110eb75275a746e9
CRs-Fixed: 2171523
2018-02-22 14:05:22 -08:00
Ashish Kumar Dhanotiya
191d164636 qcacld-3.0: Add ini parameter for chain selection optimization
Add ini support to Enable/Disable chain selection optimization
for one chain dtim.

Change-Id: I95999a4204f2d978abc9951688332400b9670f0e
CRs-Fixed: 2189150
2018-02-22 04:04:00 -08:00
Abhinav Kumar
5eda62d43c qcacld-3.0: Fix to avoid race condition during acs scan
Currently, driver allows multiple acs scan requests at a time. Due to this
race conditions can occur and causes "use after free" issue for variable
channelList. To avoid race condition, driver should allow only one acs scan
request at a time.

Add a new atomic variable to make sure that if one acs scan request
is in process, the driver should reject all further acs scan requests.

Change-Id: I7aa2f4df0dd4c6ca8ff791fe462d142fc7b3e691
CRs-Fixed: 2176354
2018-02-15 14:10:44 -08:00
Vignesh Viswanathan
0fcb4d3b6b qcacld-3.0: Reduce minimum value for 11k offload cache timeout
Reduce the minimum value for the ini nr_offload_cache_timeout to
5 seconds.

This is done to give the user a shorter cache_timeout to trigger
neighbor report frames more frequently.

Change-Id: Ica5359b9e826dad382868de991dcbf204c10a096
CRs-Fixed: 2189034
2018-02-14 09:33:15 -08:00
Krunal Soni
707eb78287 qcacld-3.0: Add support to enable/disable WMM using nl cmd
Add support to enable/disable WMM feature using nl command

Change-Id: I71f5afd0f922854f8756a0428cbb290e641d5021
CRs-Fixed: 2187621
2018-02-13 18:28:44 -08:00
Naveen Rawat
d1ad569cee qcacld-3.0: Change TXRX chainmask default to 0
Change CFG_VHT_ENABLE_1x1_TX/RX_CHAINMASK_DEFAULT to 0 which
indicates to don't care setting.

Change-Id: Ic16a2eba471bdfb77ecc0329c67b36b65a3b3489
CRs-Fixed: 2184433
2018-02-12 15:44:51 -08:00
Liangwei Dong
2a7f2914a9 qcacld-3.0: Unit test chan avoid
Add iw private command for unit test sap ch avoid

Change-Id: I27f051b47eb25e3a57be6449ccb778aefe5b0967
CRs-Fixed: 2186440
2018-02-11 03:33:49 -08:00
Kiran Kumar Lokere
44a2943836 qcacld-3.0: Add support to update HE cap Nss using ioctl
Add support to update HE Nss capability using ioctl command

Change-Id: I0f32da6eb5835c008b6b35f000e4c670a22b111b
CRs-Fixed: 2181263
2018-02-10 00:52:06 -08:00
Sandeep Puligilla
019a1bd120 qcacld-3.0: changes to support spectral genl
HDD changes to support general netlink sockets for
spectral scan feature.

Change-Id: Ie8f262ef77b42c69ac5e25e9a2d0cc099b66b1dd
CRs-Fixed: 2183863
2018-02-09 09:20:49 -08:00
Paul Zhang
a05a025bcf qcacld-3.0: use driver database for reg no-offload
Currently driver created reg database instead of
db.txt for reg no-offload case.

Change-Id: Ia7853679532ad7536d34b4a4040feffb8566e907
CRs-Fixed: 2174245
2018-02-08 21:37:25 -08:00
Surabhi Vishnoi
7f085d2147 qcacld-3.0: Adding an ini for wmi wq watchdog
Adding an ini for wmi workqueue watchdog, the ini value will
give the timeout value for wmi watchdog timer.

Change-Id: I6338351c8d788478307892152305e10186ead6cb
2018-02-07 04:00:19 -08:00
Himanshu Agarwal
87696b6c6c qcacld-3.0: Assign CFG_AUTO_CHANNEL_SELECT_WEIGHT_MIN as 0
Logically, minimum value of gAutoChannelSelectWeight ini
should be 0 but as CFG_AUTO_CHANNEL_SELECT_WEIGHT_MIN is
defined as 0x1, when user assigns gAutoChannelSelectWeight
as 0 in ini file, it is not taking effect and default value
of 0xff gets assigned as 0 is out of bound of [min,max]
range.

Assign CFG_AUTO_CHANNEL_SELECT_WEIGHT_MIN as 0 instead of 1.

Change-Id: I025fd2af757ca1f169b6f1a155ee9f041398c6fa
CRs-Fixed: 2181422
2018-02-05 18:32:43 +05:30
Jiachao Wu
4f9820f47b qcacld-3.0: Change btm stick time minimum value
Change btm stick time minimum value to 0.

Change-Id: I87fc49b3fb04cb5c0ba0023d3cd5b500258a1d66
CRs-Fixed: 2182589
2018-02-05 01:31:08 -08:00
Abhishek Singh
6884428a1a qcacld-3.0: Add ini to enabled/disable the SU beamformee in vendor VHTIE
Enabling SU beamformee in vendor vht IE gives good throughput in long
range while bad throughput in short range due to excessive sounding
action frames sent by APs.

So to give control to the user, add INI "enable_subfee_vendor_vhtie"
to enabled/disable the SU beamformee in vendor vht IE. It is
dependend on INI "gTxBFEnable" and if "gTxBFEnable" is set to 0
this will not have any effect and SU beam forming will always be
disabled.

Change-Id: Id67ea86d3e0a48fec8913d6254733f753dfdae8b
CRs-Fixed: 2178940
2018-02-01 02:20:49 -08:00
Vignesh Viswanathan
694e28eee7 qcacld-3.0: Add support for 11k offload to FW
Add new ini options for 11k offload paramters and changes to pass down the
11k offload parameters to the FW. The 11k offload command is sent after
roam start to the FW in connect path.

Also add 11k invoke command support to offload neighbor report request
iwpriv command to FW

Change-Id: If6d4bff91531e5460bbc8a851a6d777cf088eda0
CRs-Fixed: 2162029
2018-01-31 02:05:45 -08:00
Min Liu
2fef579fc1 qcacld-3.0: Fix safe channel switch failure
For the AP+AP SCC LTE-Coex case, when channel avoidance event
is reported, the channel switch request for SAP will be blocked
by policy manager if the target channel is different with the
operating channel of the existing SAP due to the SCC policy.

Need to update the logic to give higher priority to the channel
avoidance request.

Another change is to move the dfs_radar_found ref counter from
hdd_ctx to hdd_adapter so that the channel switch request of
the 2nd SAP will not be blocked when the 1st one is still in
progress since it might take some time to get VDEV restart
response from FW.

Change-Id: I8594b35b70276f7ed3884697caf69a99ee91b952
CRs-Fixed: 2171958
2018-01-25 11:27:33 -08:00
Naveen Rawat
1af0939d2e qcacld-3.0: Set RTT responder role for SAP as per ini
Set RTT responder role for SAP as indicated by ini parameter

Change-Id: Ica0fcf027d8235654dda5d2e2065a90202621e6a
CRs-Fixed: 2167760
2018-01-24 21:43:21 -08:00
Ashish Kumar Dhanotiya
cb14b11324 qcacld-3.0: Add host support to configure GCMP
Add an ini parameter for GCMP support. Send an indication
to FW with the ini value.

Change-Id: Ib24747ddb35593373ecc83d6c7f89866571c2421
CRs-Fixed: 2175104
2018-01-24 01:43:22 -08:00
Jiachao Wu
84bb2ea507 qcacld-3.0: Add new config for BTM offload
Add new config in INI for solicited BTM offload.
Those parameters will be sent to firmware.
New parameters:
* btm_solicited_timeout: Timeout value for waiting BTM request.
* btm_max_attempt_cnt: Maximum attempt for sending BTM query to ESS.
* btm_sticky_time: Stick time after roaming to new AP by BTM.

Change-Id: I24cc680bbfde3d44a57b1e1ccf644c2bed515a2c
CRs-Fixed: 2168981
2018-01-23 00:27:47 -08:00
Ryan Hsu
6fdc60fcae qcacld-3.0: clean up the FTM legacy code
clean up the ftm legacy code

Change-Id: If56f46386108b04f8c1ec73804976c61019a6ffe
CRs-fixed: 2169366
2018-01-22 11:20:52 -08:00
Varun Reddy Yeturu
076eaa810d qcacld-3.0: Disable Tx Queues upon sta kick out event
Upon receiving a STA kick out event or a beacon miss event,
disable the Tx Queues immediately so that there is no influx
of packets anymore as the STA is going to disconnect further.

Change-Id: Ic6d7a3acbd8b90aec68771c1520359d39e0534db
CRs-Fixed: 2171633
2018-01-20 03:20:56 -08:00
Naveen Rawat
7154974018 qcacld-3.0: NAN datapath cleanup
Cleanup NAN datapath legacy code left after NAN componentization

Change-Id: I5828002d2363e01f63b0a643a0c59abd52bc4f19
CRs-Fixed: 2117687
2018-01-20 01:44:58 -08:00
Jingxiang Ge
b49aa305d6 qcacld-3.0: Fix memleak for pm runtime suspend lock
For wlan0/p2p0, connect_rpm_ctx is deinit in
hdd_cleanup_adapter.
In two cases, memleak will be detected.
1 if stop modules is triggered from __hdd_stop
   turn on/off wifi, wait iface_change_wait_time
2 if stop modules is triggered from wlan_hdd_startup
   when booting wifi, stay idle, wait iface_change_wait_time

As hdd_cleanup_adapter is only happens when rmmod, so it
doesn't satisfy LONU memleak detection.

Move connect_rpm_ctx from adapter to hdd_context, and
init/deinit following with module start/stop.

Change-Id: Iaa1934594d5ffcf3b90dd2ad41bba4eb62f71119
CRs-Fixed: 2169828
2018-01-19 11:40:15 -08:00
Padma, Santhosh Kumar
3e47c63ff2 qcacld-3.0: Add SAE related ini and cap exchange changes
Add ini changes related to SAE and also changes related
to capability exchange with supplicant.

Change-Id: I8deaa124fe0c604e8777c4bffa064a2d8173661b
CRs-Fixed: 2029357
2018-01-19 03:54:46 -08:00
Naveen Rawat
06c4ebe53d qcacld-3.0: Fix band agnostic chainmask ini params
Change band agnostic chainmask variable in hdd_config to uint8_t
because the parameter can take values 0, 1 and 2.

Change-Id: I4ea06db6031bcb98c3d3b352e175a09cd735901a
CRs-Fixed: 2171613
2018-01-19 02:03:39 -08:00
Himanshu Agarwal
6c3607ac01 qcacld-3.0: Stop connection in progress STA when SAP comes up
For STA+SAP concurrency support from GUI, first STA connection gets
triggered and while it is in progress, SAP start also comes up. Once
STA association is successful, STA connect event is sent to kernel which
gets queued in kernel workqueue and supplicant won't process M1 received
from AP and send M2 until this NL80211_CONNECT event is received. Workqueue
is not scheduled as RTNL lock is already taken by hostapd thread which has
issued start_bss command to driver. Driver cannot complete start_bss as the
pending command at the head of the SME command pending list is
hw_mode_update for STA session which cannot be processed as SME is in
WAITforKey state for STA interface. The start_bss command for SAP interface
is queued behind the hw_mode_update command and so it cannot be processed
until hw_mode_update command is processed. This causes a deadlock.

Disconnect STA interface first if connection or key exchange is in progress
and then start SAP interface to prevent this deadlock condition.

Change-Id: I2ef5fe0e3bc84e721e6a2baa0dae81c6106c5a8f
CRs-Fixed: 2171912
2018-01-18 01:49:39 -08:00