Commit Graph

14173 Commits

Author SHA1 Message Date
Wu Gao
8cd2948ec0 qcacld-3.0: set roam offload only after sta connected
It set roam offload flag to FW when vdev type is sta in
wma_vdev_attach, FW team think this isn't reasonable since it wastes
FW memory if sta isn't disconnected. And required to set this flag
when connected to AP, remove this flag after disconnect from AP.

Change-Id: I5edfb8d5a2cec0e2ffdf34349c99d477860f1339
CRs-Fixed: 2367135
2019-01-15 12:50:37 -08:00
Jeff Johnson
bf614fb900 qcacld-3.0: Remove wlan_hdd_extscan_results_policy[]
The wlan_hdd_extscan_results_policy[] array is unused, so remove it.

Change-Id: I9803273ea1a284a3993a185bde10c973374c66fd
CRs-Fixed: 2380105
2019-01-15 12:50:34 -08:00
Jeff Johnson
c6f3d9ae85 qcacld-3.0: Remove struct wma_dfs_radar_ind
Change Ia0fa016b174ef4b50e2cc339e4e476ec65642dbf ("qcacld-3.0: Use dfs
component support") removed all usage of struct wma_dfs_radar_ind.
Since it is now obsolete, remove the struct.

Change-Id: I9930dff34224a02f6a8bdc9a7fcdb362da1eb1bb
CRs-Fixed: 2379065
2019-01-15 12:50:30 -08:00
Jeff Johnson
5d6a419caf qcacld-3.0: Remove wma_sta_send_vdev_down_bss() prototype
Change Iee7274fbc8ae985d034a29f920faa38aab68ccc7 ("qcacld-3.0: Add
VDEV state machine for STA disconnection") removed the implementation
of function wma_sta_send_vdev_down_bss(). However it left behind the
prototype, so remove it now.

Change-Id: Ia43371f6c86632955f67370d3ffc9b2753f797f7
CRs-Fixed: 2379064
2019-01-15 12:50:26 -08:00
Jeff Johnson
23994a0294 qcacld-3.0: Remove wma_scan_event_callback() prototype
Change Ibeb6f99335b4e745335d5968791d9e9187df47f7 ("qcacld-3.0: Remove
legacy scan event handling") removed the implementation of function
wma_scan_event_callback(). However the prototype was left behind, so
remove it now.

Change-Id: I34cd7fa0e9d28c10d73f1000284148eaece042f5
CRs-Fixed: 2379063
2019-01-15 12:50:23 -08:00
Jeff Johnson
b7771a38d6 qcacld-3.0: Remove wma_roam_preauth_*() prototypes
Change Ie3783306e0ff5b8a5bbcb6437e982590b03fe040 ("qcacld-3.0: Use
scan for preauth from LIM in roaming") removed all of the roaming
preauth logic from WMA, but it left behind some obsolete protptypes,
so remove these:
- wma_roam_preauth_chan_set()
- wma_roam_preauth_chan_cancel()
- wma_roam_preauth_scan_event_handler()

Change-Id: I9236f641fb80df0e5a6749781adb5af86d8b821b
CRs-Fixed: 2379062
2019-01-15 12:50:19 -08:00
Jeff Johnson
80d11f1fc6 qcacld-3.0: Remove wma_update_fw_tdls_state() prototype
As part of change I5c873b9571228f0d2b4fcd4782267a2cc40fc20a
("qcacld-3.0: Remove the deprecated IOCTL in TDLS") the implementation
of wma_update_fw_tdls_state() was removed. However the prototype was
left behind, so remove it as well.

Change-Id: Ibb08e9f8c8c39eac364b05e72d7c03db306cc8b3
CRs-Fixed: 2379061
2019-01-15 12:50:15 -08:00
Jeff Johnson
7526dfb3c0 qcacld-3.0: Remove typedef tUapsdParams
Typedef tUapsdParams is unused, so remove it.

Change-Id: I7adfff63a13f0b0840475fa45d496ba81b80ceaa
CRs-Fixed: 2379060
2019-01-15 12:50:11 -08:00
Jeff Johnson
a4ab494859 qcacld-3.0: Remove typedef tNanRequest
Change I542e5afe832619f8c088220cc4456aa7fe4416fd ("qcacld-3.0: Route
the legacy NAN commands through NAN component") removed the usage of
typedef tNanRequest. Since the typedef is obsolete, remove it.

Change-Id: I10e243b4e6998e69027c2f0d5f829cd2a6b27c92
CRs-Fixed: 2379059
2019-01-15 12:50:08 -08:00
Jeff Johnson
d8ae41fcfb qcacld-3.0: Remove unused wlan_hdd_get_*_ie_ptr() macros
The following macros are unused, so remove them :
- wlan_hdd_get_mbo_ie_ptr()
- wlan_hdd_get_p2p_ie_ptr()
- wlan_hdd_get_wfd_ie_ptr()

Change-Id: I37d84802f97881aaa3de1a604f7f29362d868667
CRs-Fixed: 2380103
2019-01-15 12:48:14 -08:00
CNSS_WLAN Service
8c05acecbe Merge "qcacld-3.0: Change WNI_CFG_COUNTRY_CODE_LEN to CFG_COUNTRY_CODE_LEN" into wlan-cld3.driver.lnx.2.0 2019-01-15 02:12:07 -08:00
CNSS_WLAN Service
adfa9ead02 Merge "qcacld-3.0: Enable/disable first DFS channel scan through ini" into wlan-cld3.driver.lnx.2.0 2019-01-15 02:12:05 -08:00
Wu Gao
aa15514706 qcacld-3.0: Change WNI_CFG_COUNTRY_CODE_LEN to CFG_COUNTRY_CODE_LEN
All WNI configurations will be cleanup based on new cfg framework, so
change Change WNI_CFG_COUNTRY_CODE_LEN to CFG_COUNTRY_CODE_LEN.

Change-Id: I786b62e2c0aff08a89fc3c8a3359e2ffb4044269
CRs-Fixed: 2380488
2019-01-14 21:47:20 -08:00
gaurank kathpalia
97c070b5da qcacld-3.0: Enable/disable first DFS channel scan through ini
Currently the driver includes all the DFS channels as part of scan
in the scan list, and thus not exclude the DFS channels in the first
scan for faster scan.

Fix is to check the ini, for first DFS channel scan, and then remove
the DFS channels from the scan list if the ini is enabled.

Change-Id: Iff3361f3c1a577fd8e2b541a0673af431db65a5e
CRs-Fixed: 2378801
2019-01-14 21:47:16 -08:00
nshrivas
26c927cd04 Release 5.2.0.115Y
Release 5.2.0.115Y

Change-Id: I7dcbe0d8beeeadff31b4b0f7f6c9d7913cb0477c
CRs-Fixed: 774533
2019-01-14 17:32:38 -08:00
Ashish Kumar Dhanotiya
f10aa5ff4c qcacld-3.0: Add mtrace logging for hdd messages
New mtrace logging infrastructre is added in the driver,
add mtrace logging for all the messages received from
userspace.

Change-Id: I235f7f8c890b16644d272328124f7a7b7a67f4c5
CRs-Fixed: 2376767
2019-01-14 17:32:37 -08:00
hangtian
44b1743568 qcacld-3.0: Use status value 0 stands for tdls_mgmt success
Use status value 0 stands for tdls_mgmt success.

Change-Id: I64834f7beaf2a58fd544d4ff5501aac6e7e5b5c7
CRs-Fixed: 2377881
2019-01-14 17:32:33 -08:00
Bala Venkatesh
d39cbb8034 qcacld-3.0: Cleanup He cap INI items
Cleanup the below INI items from HDD.
1.CFG_ENABLE_UL_MIMO_NAME
2.CFG_HE_DYNAMIC_FRAGMENTATION_NAME
3.CFG_ENABLE_UL_OFDMA_NAME
4.CFG_HE_STA_OBSSPD_NAME.

Change-Id: I6321035c14cfd03c1c57fd68b5394c84ed9e1f2c
CRs-Fixed: 2375905
2019-01-14 17:32:29 -08:00
nshrivas
31a8521467 Release 5.2.0.115X
Release 5.2.0.115X

Change-Id: I6d4bde9c24708d0fd83c1617a5d004e560a1c353
CRs-Fixed: 774533
2019-01-14 15:15:56 -08:00
chenguo
fa45431ec5 qcacld-3.0: Remove SME session creation in netdevice up operation
Take VDEV manager SM into consideration, the SME session creation
needs to be combined with VDEV start. So in the monitor mode, need
to postpone SME session creation from net device up to the channel
setting. This change will be applied no matter VDEV manager SM
enable or not.

CRs-Fixed: 2345543
Change-Id: I1b28abd6746ba851608464101a42ac14074e7c41
2019-01-14 15:15:55 -08:00
Visweswara Tanuku
633976b5b0 qcacld-3.0: Add iwpriv interface for Motion detection
iwpriv interface is added for configuring Motion detection
feature specific parameters

Added under flag WLAN_FEATURE_MOTION_DETECTION

Change-Id: Ic20c8c43782cf037317f412962fab4a6928eb0b9
CRs-Fixed: 2376722
2019-01-14 15:15:51 -08:00
Sravan Kumar Kairam
dd5a74a70f qcacld-3.0: Set skb cb for rx peer cache frames
There is a race condition while flushing the rx cache frames
from MC thread and same time from RX thread. So for rx cache
frames set QDF_NBUF_CB_RX_PEER_CACHED_FRM to avoid using gro
receive and use skb receive with local bh disable.

Change-Id: I5ece8ddf876d27ad3d24b0ba751fe3e3886608e2
CRs-Fixed: 2378342
2019-01-14 15:15:47 -08:00
nshrivas
894345887b Release 5.2.0.115W
Release 5.2.0.115W

Change-Id: I33c03dcfa1f251de56a83ffa2fab98492a362bab
CRs-Fixed: 774533
2019-01-14 12:58:51 -08:00
Ajit Pal Singh
5e618aa8c4 qcacld-3.0: Add support to save and get interface device
A bus can have multiple sub interfaces or pipes.
USB bus for example has endpoints grouped into interfaces.
WLAN uses one of these interfaces.
Each interface has its own "struct device". Add support to save
and retrieve this "struct device".
Also pass interface dev to pld_usb_wlan_enable() as CNSS expects
interface device.

Change-Id: I5800bde107157c35efed848a23b95696bd7f793a
CRs-Fixed: 2371440
2019-01-14 12:58:51 -08:00
Jeff Johnson
844da097fc qcacld-3.0: Remove nlo fields from struct pmo_vdev_priv_obj
Fields nlo_in_progress and nlo_match_received in struct
pmo_vdev_priv_obj are unused, so remove them.

Change-Id: I4152e55e407628bbcc32118aa702770a401cfe3b
CRs-Fixed: 2379076
2019-01-14 12:58:47 -08:00
lifeng
caa45efa73 qcacld-3.0: Fix implicit declaration building error
Fix implicit declaration building error when kenel version is
not great than 4.4.

Change-Id: I1155641911de9dce3e758d753183fc1a0e161cc4
CRs-Fixed: 2380299
2019-01-14 12:58:43 -08:00
nshrivas
e3b027f5a1 Release 5.2.0.115V
Release 5.2.0.115V

Change-Id: Ie0a511e5984620105243e6bce229ea5404d1cccf
CRs-Fixed: 774533
2019-01-14 08:38:07 -08:00
Jeff Johnson
18dd808afa qcacld-3.0: Harmonize PMO packet filter APIs
Update the PMO packet filter APIs to make sure the parameter names
in the prototypes match the ones in the implementations and in the
documentation.

Change-Id: I7fd924d17edb54c690e8ef5b85d4829a4a165edc
CRs-Fixed: 2379075
2019-01-14 08:38:06 -08:00
hangtian
127c953c7f qcacld-3.0: Use qdf_mem_zero for zero initialization
Use qdf_mem_zero for zero initialization.

Change-Id: Ic2b8d907623cf67a4569aaf01398c1b3a2bff707
CRs-Fixed: 2376644
2019-01-14 08:38:03 -08:00
nshrivas
b0efa7019d Release 5.2.0.115U
Release 5.2.0.115U

Change-Id: I69d8f379a2c2538bee6d02283ef525a1e31f33d2
CRs-Fixed: 774533
2019-01-14 01:45:24 -08:00
Wu Gao
2255ea2817 qcacld-3.0: Defines five WNI cfg and one INI cfg
Based on new cfg framework, defines below five WNI cfg items and one
INI cfg:
 - WNI_CFG_APSD_ENABLED
 - WNI_CFG_OBSS_DETECTION_OFFLOAD
 - WNI_CFG_OBSS_COLOR_COLLISION_OFFLOAD
 - WNI_CFG_CURRENT_TX_POWER_LEVEL
 - WNI_CFG_LOCAL_POWER_CONSTRAINT
 - gTxPowerCap

Change-Id: I5546ea7a4efd142b546ad10a40712d40d2d3ea0d
CRs-Fixed: 2375857
2019-01-14 01:45:23 -08:00
Wu Gao
5f764087a9 qcacld-3.0: Refactor five WNI cfg and one INI cfg
Based on new cfg framework, refactors below five WNI cfg items and one
INI cfg:
 - WNI_CFG_APSD_ENABLED
 - WNI_CFG_OBSS_DETECTION_OFFLOAD
 - WNI_CFG_OBSS_COLOR_COLLISION_OFFLOAD
 - WNI_CFG_CURRENT_TX_POWER_LEVEL
 - WNI_CFG_LOCAL_POWER_CONSTRAINT
 - gTxPowerCap

Change-Id: I5307fe73ad931eaec2e9471ddd36cd6d00061c76
CRs-Fixed: 2375860
2019-01-14 01:45:18 -08:00
Wu Gao
abdbbd0ccf qcacld-3.0: Cleanup legacy codes for six WNI cfg and three INI cfg
Since have refactored below configures, cleanup legacy codes.
 - WNI_CFG_APSD_ENABLED
 - WNI_CFG_OBSS_DETECTION_OFFLOAD
 - WNI_CFG_OBSS_COLOR_COLLISION_OFFLOAD
 - WNI_CFG_CURRENT_TX_POWER_LEVEL
 - WNI_CFG_LOCAL_POWER_CONSTRAINT
 - WNI_CFG_PS_WOW_DATA_INACTIVITY_TIMEOUT
 - g_wow_data_inactivity_timeout
 - gTxPowerCap
 - gDisablePacketFilter

Change-Id: I40410d0d9fe0e3f90206f07e3f437359f2a8d1e4
CRs-Fixed: 2375869
2019-01-14 01:45:14 -08:00
Ashish Kumar Dhanotiya
0148519463 qcacld-3.0: Check for the duplicate MAC during open adapter
Currently for STA mode in open adapter, locally administered
bit is getting reset, there is a possibility that after
resetting this locally administered bit this new MAC matches
to an existing MAC address which may result in multiple interfaces
to be up with same MAC address.

To avoid this issue, add a check for duplicate MAC address after
resetting locally administered bit.

Change-Id: I3ff8091df2c422bd89944ca39849c9961941e8c3
CRs-fixed: 2370349
2019-01-14 01:45:10 -08:00
nshrivas
d6d4082a7c Release 5.2.0.115T
Release 5.2.0.115T

Change-Id: I3c3667435ae0af323db6d90e9a4916a0d6e4a147
CRs-Fixed: 774533
2019-01-13 18:45:56 -08:00
Wu Gao
0821b0dd4c qcacld-3.0: Change WNI_VALID_CHANNEL_LIST_LEN to VALID_CHANNEL_LIST_LEN
All WNI configurations will be cleanup based on new cfg framework, so
change Change WNI_VALID_CHANNEL_LIST_LEN to VALID_CHANNEL_LIST_LEN.

Change-Id: I805be88ecdcca90cf3a19d1784bf8f8c261b6ca4
CRs-Fixed: 2379748
2019-01-13 18:45:55 -08:00
Wu Gao
9d117fbfc2 qcacld-3.0: Refactor three INI in PMO
Based on cfg framework, refactor below INI:
 - CFG_RA_RATE_LIMIT_INTERVAL_NAME
 - CFG_ACTIVE_UC_APF_MODE_NAME
 - CFG_ACTIVE_MC_BC_APF_MODE_NAME

Change-Id: I3b1ee6254de158ad6408dc8c61e83be571e180af
CRs-Fixed: 2379743
2019-01-13 18:45:51 -08:00
Mohit Khanna
c9649650d2 qcacld-3.0: Support to dump DP RX Thread stats
Add DP RX Thread Stats support. Stats can be retrieved using iwpriv
dumpStats command.
Remove print from hdd_gro_rx_dp_thread function. This condition is
expected when gro is disabled on low throughput. Print is not needed.

CRs-Fixed: 2346997
Change-Id: I3619844b66e845184a4b8c77763bf9f2d2ea0a38
2019-01-13 18:45:47 -08:00
nshrivas
a42c591730 Release 5.2.0.115S
Release 5.2.0.115S

Change-Id: I4511b6320eb700ea5ab7cca9fb3dfc4cad22eca6
CRs-Fixed: 774533
2019-01-13 11:26:31 -08:00
Abhinav Kumar
0fe1b4e00d qcacld-3.0: Cleanup INI CFG_DROP_BCN_ON_CHANNEL_MISMATCH
Scan component will do default value initialization,
remove the config from HDD.

Change-Id: I1b14a135566b40db757b81920c5d9775d56d039f
CRs-Fixed: 2375196
2019-01-13 11:26:30 -08:00
nshrivas
b60f49d5f9 Release 5.2.0.115R
Release 5.2.0.115R

Change-Id: Ib68f5213bd84f475a0c59a092c522abc2887694f
CRs-Fixed: 774533
2019-01-12 07:28:48 -08:00
Jingxiang Ge
37d878ccb5 qcacld-3.0: Fix potential out of bound issue
Change to avoid potential out of bound issue
when unsafe channel numbers parameter is invalid.

Change-Id: I0c2cdac844c5fd644fce61d3d69fefcecdb62f19
CRs-Fixed: 2374986
2019-01-12 07:28:47 -08:00
nshrivas
3dfb7254a3 Release 5.2.0.115Q
Release 5.2.0.115Q

Change-Id: Ie8e446dcf628af2f90610714c7ace42964898fea
CRs-Fixed: 774533
2019-01-12 01:28:30 -08:00
Jingxiang Ge
b5fb05be39 qcacld-3.0: Check if gp_sap_ctx is empty after reinit
In SSR, after reinit, there is still memory leak
for gp_sap_ctx; As in multi SSR test, memory leak
detection is disabled in recovery mode, it is a
little late to get the issue moment.

Check gp_sap_ctx after stopping all adapter in
hdd_is_interface_down_during_ssr.

Change-Id: I77708d296fb218ca53ac656f844d02f58e23d241
CRs-Fixed: 2377718
2019-01-12 01:28:29 -08:00
nshrivas
42e263af4d Release 5.2.0.115P
Release 5.2.0.115P

Change-Id: I3be7fa59c56c25220d65b25362a483b29d430712
CRs-Fixed: 774533
2019-01-11 22:25:25 -08:00
Sourav Mohapatra
47710c31ac qcacld-3.0: Validate user input for null termination
In hdd_dns_make_name_query() the parameter string is a user controlled
input. The driver assumes that the input is null terminated string and
accordingly the exit condition of the loop is specified. In case the
user sends input with no null termination then it can lead to possible
OOB scenario.

Add a null termination validation on the string so that any erroneous
input is filtered.

Change-Id: I2abb4875569c508179c4488347f7c9aae0666332
CRs-Fixed: 2342812
2019-01-11 22:25:24 -08:00
Wu Gao
6294afcfa7 qcacld-3.0: Refactor six LFR INI cfg
Based on new cfg component, refactor below LFR INI cfg and remove
unused legacy codes.
 - CFG_ENABLE_LFR_SUBNET_DETECTION
 - CFG_ROAM_HO_DELAY_FOR_RX_NAME
 - CFG_MIN_DELAY_BTW_ROAM_SCAN_NAME
 - CFG_ROAM_SCAN_TRIGGER_REASON_BITMASK_NAME
 - CFG_ROAM_FT_OPEN_ENABLE_NAME
 - CFG_ROAM_FORCE_RSSI_TRIGGER_NAME

Change-Id: Iaa738c6416dffe8159b49d59fc9a514da2fbb7ff
CRs-Fixed: 2376637
2019-01-11 22:25:19 -08:00
nshrivas
aee2a5b443 Release 5.2.0.115O
Release 5.2.0.115O

Change-Id: I9adda060458410a11d4bffb380140505b72a167c
CRs-Fixed: 774533
2019-01-11 18:08:07 -08:00
Pragaspathi Thilagaraj
ecb607352a qcacld-3.0: Add vdev valid check for wmi vdev level commands
Check if vdev is active for the following roam related vdev
commands before sending it to wmi:
1. WMI_ROAM_SCAN_MODE
2. WMI_ROAM_SCAN_PERIOD
3. WMI_ROAM_SCAN_RSSI_CHANGE_THRESHOLD
4. WMI_ROAM_AP_PROFILE
5. WMI_ROAM_CHAN_LIST
6. WMI_ROAM_SCAN_CMD
7. WMI_ROAM_SYNCH_COMPLETE

This will avoid the race condition where the vdev is deleted
and the vdev related commands for the deleted vdev are sent
to firmware before wmi_stop_inprogress is set at wmi.

Change-Id: I8b54bb5663ef517bc58141bc3b96fd9b863fd656
CRs-Fixed: 2344006
2019-01-11 18:08:06 -08:00
Kiran Kumar Lokere
6b01731f49 qcacld-3.0: Update the max BA buffer size value to 256
Update the max block ack buffer size value to 256 in the addba
response frame to support the reception of A-MPDU with 256 MPDUs.

Change-Id: Iaf699024b969b420b5328d2e91d104bd42adc732
CRs-Fixed: 2375563
2019-01-11 18:08:03 -08:00