Commit Graph

12679 Commits

Author SHA1 Message Date
Jeff Johnson
6cce285075 qcacld-3.0: Remove p2pGoPsNoaStartInd from pe_session
As part of change I71de90d5fb88462e52148a434d43ea80c41cfe36
("qcacld-3.0: Move Channel convert and frame indication logic to
lim_utils.c") the usage of field p2pGoPsNoaStartInd in struct
pe_session was removed. However the field itself was left behind, so
remove it now.

Change-Id: I1d6965587b0387ecd6e1822a774f874d922d90c0
CRs-Fixed: 2380110
2019-01-16 19:33:29 -08:00
Jeff Johnson
5e656ec0bb qcacld-3.0: Remove amsduSupportedInBA from pe_session
Field amsduSupportedInBA in struct pe_session is unused,
so remove it.

Change-Id: I5ac6d8c75355f1422b54b26f73163a68003940b0
CRs-Fixed: 2380109
2019-01-16 19:32:41 -08:00
Jeff Johnson
0ec9ed9581 qcacld-3.0: Remove proct_deauh_disassoc_cnt from tDphHashNode
Change I8876a4d4b99948cd9ab3ccec403cf5e4050b1cff ("qcacld-3.0: Fix
layering violation while handling management frames") removed the only
usage of tDphHashNode field proct_deauh_disassoc_cnt. Since it is
obsolete, remove it.

Change-Id: If4adb4bfb704cc6721796faca9dce2dfff844b6b
CRs-Fixed: 2380108
2019-01-16 19:32:37 -08:00
Jeff Johnson
4dfe66100e qcacld-3.0: Consolidate mac_trace() APIs
There are currently two separate MAC Trace APIs, mac_trace() and
mac_trace_new(). Since these ultimately result in a call to
qdf_trace(), and since only mac_trace() is widely called, consolidate
these two APIs into a single mac_trace() API. In addition, make this a
static inline to eliminate an unnecessary function call at every call
site and to fully take advantage of the conditional expansion of
qdf_trace().

Change-Id: I71101cc076a19ae8dad26c743f726c94571ae8a1
CRs-Fixed: 2380107
2019-01-16 19:32:33 -08:00
Jeff Johnson
6b9f15fa84 qcacld-3.0: Remove legacy max channel time CFG macros
Change I67a589133e58fd7740d7edc93d32a2d9fcd14c5a ("qcacld-3.0: Cleanup
unused scan params and ini") removed the following legacy CFG items:
- WNI_CFG_ACTIVE_MAXIMUM_CHANNEL_TIME
- WNI_CFG_PASSIVE_MAXIMUM_CHANNEL_TIME

However this change left behind the associated MIN/MAX/DEF macros
which are now unused, so remove the following:
- WNI_CFG_ACTIVE_MAXIMUM_CHANNEL_TIME_STAMIN
- WNI_CFG_ACTIVE_MAXIMUM_CHANNEL_TIME_STAMAX
- WNI_CFG_ACTIVE_MAXIMUM_CHANNEL_TIME_STADEF
- WNI_CFG_PASSIVE_MAXIMUM_CHANNEL_TIME_STAMIN
- WNI_CFG_PASSIVE_MAXIMUM_CHANNEL_TIME_STAMAX
- WNI_CFG_PASSIVE_MAXIMUM_CHANNEL_TIME_STADEF

Change-Id: I0da08ee379b754f7724754b497825de2372685c4
CRs-Fixed: 2380106
2019-01-16 19:32:30 -08:00
Jeff Johnson
c8b36dcaa4 qcacld-3.0: Remove WLAN_WAIT_TIME_POWER macros
The macros WLAN_WAIT_TIME_POWER and WLAN_WAIT_TIME_POWER_STATS are
unused, so remove them.

Change-Id: Idb9e39036688a2f02d33e08acc488798553bac36
CRs-Fixed: 2380104
2019-01-16 19:32:26 -08:00
nshrivas
004c43039c Release 5.2.0.116E
Release 5.2.0.116E

Change-Id: If14b3a0f05d0db6b027e6bd0189f850f07182569
CRs-Fixed: 774533
2019-01-16 17:09:49 -08:00
Rachit Kankane
4b6fdd1cce qcacld-3.0: Read hw_config_type from correct mac-phy config
In function wma_update_hw_mode_list, hw_config_type should be read from
the same mac-phy config array to check if next array could be for used
for MAC1 SS_bw settings bas on hw_config_type.

Change-Id: If787b127b5cf0f811344b3322ba84c2956543e14
CRs-Fixed: 2381784
2019-01-16 17:09:48 -08:00
Manikandan Mohan
66df7fcdf4 qcacld-3.0: Fix fw offload ucfg APIs for wiphy features
WIPHY features are populated before FW offload object is
initialized. Thus use direct config values for SAE and GCMP
WIPHY features.

Change-Id: Ic1b84c8709a0347fa22773786c0d5af32426e8fc
CRs-fixed: 2376983
2019-01-16 17:09:44 -08:00
Manikandan Mohan
0faf628eaa qcacld-3.0: Fix hdd_tsf_is_ptp_enabled function for CFG item
Fix compilation error caused after TSF PTP Options INI item
is moved to CFG component from HDD config.

Change-Id: I0c39fb4eb546ebd236d82e684aff7010512c74f9
CRs-fixed: 2380983
2019-01-16 17:09:41 -08:00
nshrivas
c297c32144 Release 5.2.0.116D
Release 5.2.0.116D

Change-Id: Ibec7d8be8ac43eb34c62f7ddeb8d1f4f9db1b3b5
CRs-Fixed: 774533
2019-01-16 12:56:52 -08:00
nshrivas
c073981183 Release 5.2.0.116C
Release 5.2.0.116C

Change-Id: If44a22ee22e43b9b20b363c8fa129740386e04b3
CRs-Fixed: 774533
2019-01-16 10:37:38 -08:00
Jianmin Zhu
c8bfffb89d qcacld-3.0: Set 2g vht20 cfg by both target capability and ini config
2g vht20 config should be decided by both capability indicated
by target and ini config. Only when F/W indicates 2g vht20
supported and ini config gEnableVhtFor24GHzBand=1, 2g vht20 is
enabled.

Change-Id: I5b7ad8f82b6000096327c501dc84ad05480ef0fd
CRs-Fixed: 2381514
2019-01-16 10:37:37 -08:00
Arif Hussain
f8f6b3bcba qcacld-3.0: Set wapi key management to crypto module
Set wapi key management to crypto module and add bkid support.

Change-Id: If851d7a9ba5d77be9240f1c6087dab10c218aa48
CRs-Fixed: 2379882
2019-01-16 10:37:30 -08:00
nshrivas
3e1966f8a3 Release 5.2.0.116B
Release 5.2.0.116B

Change-Id: I687dfeb0abd4dd457515354925089b93a00dd1b0
CRs-Fixed: 774533
2019-01-15 21:02:09 -08:00
Harprit Chhabada
d59ae7648e qcacld-3.0: Clean up adaptive dwell time params CFG
Clean following adapative dwell time params
CFG/INI item.
CFG_ADAPTIVE_DWELL_MODE_ENABLED
CFG_GLOBAL_ADAPTIVE_DWELL_MODE
CFG_ADAPT_DWELL_LPF_WEIGHT
CFG_ADAPT_DWELL_PASMON_INTVAL
CFG_ADAPT_DWELL_WIFI_THRESH

Change-Id: Iebc8507b0eefe52969f928d98473f99d69095480
CRs-Fixed: 2378488
2019-01-15 21:02:09 -08:00
nshrivas
76fc02f289 Release 5.2.0.116A
Release 5.2.0.116A

Change-Id: I033d1c81483ada5dbc44117d410a8ab239b6b4d4
CRs-Fixed: 774533
2019-01-15 18:41:20 -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