Commit Graph

14184 Commits

Author SHA1 Message Date
Jeff Johnson
2449b32e09 qcacld-3.0: Remove sta_sap_scc_on_dfs_chan_allowed
Change Id1333a49d0538eb4ccfaf3c8498e9ca06671de02 ("qcacmn: Allow SAP
to come up on DFS channel in SCC mode") added two separate fields to
track the status of this feature. The sta_sap_scc_on_dfs_chan_allowed
field in struct policy_mgr_psoc_priv_obj was never used, so remove it.

Change-Id: I75fe9129d4df9a70af103d4b75389d75528ad422
CRs-Fixed: 2379072
2019-01-15 18:41:06 -08:00
Jeff Johnson
9a866ec4cf qcacld-3.0: Remove enable_sap_mandatory_chan_list
As part of change I83a13b1fcc6ca4350071a71648c7072c2b2a5191
("qcacld-3.0: Move few INIs's ownership from HDD to Policy manager")
support for the gEnableSAPManadatoryChanList INI item was moved to
Policy Manager, and the sap_mandatory_chnl_enable field in struct
policy_mgr_cfg now reflects the status of this INI item. The prior
mechanism, the enable_sap_mandatory_chan_list field in struct
policy_mgr_psoc_priv_obj, is no longer used, so remove it.

Change-Id: I1675257f2a4aac3ae34e934173415f9a4064618b
CRs-Fixed: 2379071
2019-01-15 18:41:02 -08:00
Jeff Johnson
cec5b82e37 qcacld-3.0: Remove enum ht_capability_fields
All usage of the ht_capability_fields enums have been removed from the
driver. Since the enum is now unused, remove it.

Change-Id: I0b81b4b93d9dd2deffc6230dbf614281c5a8ebbd
CRs-Fixed: 2379070
2019-01-15 18:40:58 -08:00
Jeff Johnson
8ada6825f1 qcacld-3.0: Remove gLimDfs fields in tAniSirLim
The following DFS-related fields in tAniSirLim are no longer used, so
remove them:
- gLimDfsChanSwTxCount
- gLimDfsTargetChanNum

Change-Id: I093a7714018e4470e20c528f5bce199f5424367e
CRs-Fixed: 2379069
2019-01-15 18:40:54 -08:00
Jeff Johnson
bcbb6500c6 qcacld-3.0: Remove gLimProbeRespDisableFlag from tAniSirLim
The gLimProbeRespDisableFlag field in tAniSirLim is initialized, but
is otherwise never modified, hence it serves no purpose. Therefore
remove it.

Change-Id: I053ad8f37b8be31d2f6ad261063c26a1e55c951f
CRs-Fixed: 2379068
2019-01-15 18:40:50 -08:00
Jeff Johnson
2973ca7526 qcacld-3.0: Remove gLim*Enabled flags from tAniSirLim
The following fields in tAniSirLim are unused, so remove them:
- gLimQosEnabled
- gLimWmeEnabled
- gLimWsmEnabled
- gLimHcfEnabled
- gLim11dEnabled

Change-Id: Ia60a25172bbf47b77e6d15d7feb1fe3dd8563a1b
CRs-Fixed: 2379067
2019-01-15 18:40:46 -08:00
Jeff Johnson
42317dca66 qcacld-3.0: Remove macro VERSION_VALUE_MAX_LEN
Macro VERSION_VALUE_MAX_LEN is unused, so remove it.

Change-Id: I6e5dc52a50f01395269e2e089ca129adfd1ad1ea
CRs-Fixed: 2379066
2019-01-15 18:40:42 -08:00
nshrivas
c0d9d24239 Release 5.2.0.116
Release 5.2.0.116

Change-Id: If74f137f6ce1c378713ee5e8e6f4f7afb6cbcf5e
CRs-Fixed: 774533
2019-01-15 12:50:51 -08:00
Sandeep Puligilla
dc6d68a6ea qcacld-3.0: Refactor CFG item CFG_ADVERTISE_CONCURRENT_OPERATION
Refactor CFG item CFG_ADVERTISE_CONCURRENT_OPERATION

Change-Id: Iadd46a2882b14010786afbf8c626bdbf96fae486
CRs-Fixed: 2378457
2019-01-15 12:50:48 -08:00
Harprit Chhabada
1125e0ca0b qcacld-3.0: Fix OOB in wlan_hdd_netif_queue_control
Put spinlock when adapter->history_index is getting incremented.
There is possibility of race condition in the increment of
adapter->history_index as there are multiple call paths that
invoke wlan_hdd_netif_queue_control() that are not all within
the same thread.

Since the check is to see if it equals the max value, we can
exceed the bounds of the array on the next invocation of this
function, resulting in a OOB.

Change-Id: I0d127b2e47bee32cd0b8a0281c6213895f3d4960
CRs-Fixed: 2370801
2019-01-15 12:50:44 -08:00
nshrivas
653da3aecf Release 5.2.0.115Z
Release 5.2.0.115Z

Change-Id: I683836716d733c4aaf20665e1404abcd32405612
CRs-Fixed: 774533
2019-01-15 12:50:40 -08:00
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