Commit graph

14,217 commits

Author SHA1 Message Date
Jeff Johnson
853da1612c qcacld-3.0: Remove WLAN_SOFTAP_FW_BEACON_TX_PRNT_LOG
The WLAN_SOFTAP_FW_BEACON_TX_PRNT_LOG feature wraps a single log which
references a non-existent TimIeOffset beaconParams field. Since the
driver will not build if this feature is enabled, remove it.

Change-Id: I607b55b82e8ae1d304ac8203395cffe384c8bb74
CRs-Fixed: 2380121
2019-01-16 19:35:16 -08:00
Jeff Johnson
2fcff28765 qcacld-3.0: Remove HAL_TDLS_PEER_STA_MASK
Macro HAL_TDLS_PEER_STA_MASK is unused, and appears to conflict with
macro HAL_USE_PEER_STA_REQUESTED_MASK, so remove it.

Change-Id: Idb28362772b0b1219bb75dbd1a99927667c608ab
CRs-Fixed: 2380120
2019-01-16 19:35:10 -08:00
Jeff Johnson
de3cad07c8 qcacld-3.0: Remove obsolete LIM_HASH_* action macros
The macros LIM_HASH_ADD and LIM_HASH_UPDATE are obsolete, so remove
them.

Change-Id: Ie91f497d14167bfe719c8f91373a95d96357489e
CRs-Fixed: 2380119
2019-01-16 19:35:05 -08:00
Jeff Johnson
a5abe279f8 qcacld-3.0: Revise lim_sys_process_mmh_msg_api()
The qType parameter to function lim_sys_process_mmh_msg_api() is
unused, so remove it. In addition, since this function is just a
wrapper, turn it into a static inline to to eliminate an unnecessary
function call at every call site.

Change-Id: If3e95855361bd9efd90b426c698982773b4677da
CRs-Fixed: 2380118
2019-01-16 19:34:56 -08:00
Jeff Johnson
1b87a0100e qcacld-3.0: Remove atimWindow from tLimMlmStartReq
Field atimWindow in tLimMlmStartReq is unused, so remove it.

Change-Id: Id7c1b071b7b69e500eaa4e8ca14faa58a9f31a09
CRs-Fixed: 2380117
2019-01-16 19:34:51 -08:00
Jeff Johnson
72f7de3fd1 qcacld-3.0: Remove WNI_CFG_TDLS_LINK_SETUP_*_TIMEOUT
The following macros are unused, so remove them:
- WNI_CFG_TDLS_LINK_SETUP_CNF_TIMEOUT
- WNI_CFG_TDLS_LINK_SETUP_RSP_TIMEOUT

Change-Id: Ibae6895881ef1ad831ecb405b510f04d40da7c14
CRs-Fixed: 2380116
2019-01-16 19:34:47 -08:00
Jeff Johnson
1f29564878 qcacld-3.0: Remove enum tdlsLinkNodeStatus
Enum tdlsLinkNodeStatus is unused, so remove it.

Change-Id: Ifc1aacdb31fddb5594e9fb9361b3f64ad2768586
CRs-Fixed: 2380115
2019-01-16 19:34:43 -08:00
Jeff Johnson
81ae428572 qcacld-3.0: Harmonize lim_populate_matching_rate_set()
Currently the lim_populate_matching_rate_set() prototype uses
different parameter identifiers than the implementation. Since this
can be confusing for both humans and code analysis tools, update the
prototype to match the implementation.

Change-Id: Ic96e47e82f3c6ab873a87f570fca81659d87a52b
CRs-Fixed: 2380114
2019-01-16 19:34:39 -08:00
Jeff Johnson
ac05741cf7 qcacld-3.0: Consolidate the SCH global context
Currently the SCH global context contains a single field which is
itself a struct. That struct, in turn, contains multiple fields with
naming that does not conform to the Linux coding style. Having a
single struct within a struct is pointless, so consolidate the two
structs into one, and update the field names to conform to the coding
standard.

Change-Id: Ibabb32440a833357a50933d399406113cf6f271b
CRs-Fixed: 2380113
2019-01-16 19:34:35 -08:00
Jeff Johnson
50fcd13be1 qcacld-3.0: Harmonize rrm_process_radio_measurement_request()
Currently the rrm_process_radio_measurement_request() prototype uses
different parameter identifiers than the implementation. Since this
can be confusing for both humans and code analysis tools, update the
prototype to match the implementation.

Change-Id: I904d39ad37293ab012062c6a5e78d33cf42e8973
CRs-Fixed: 2380112
2019-01-16 19:34:07 -08:00
Jeff Johnson
201dfa846c qcacld-3.0: Harmonize rrm_process_beacon_report_xmit()
Currently the rrm_process_beacon_report_xmit() prototype uses
different parameter identifiers than the implementation. Since this
can be confusing for both humans and code analysis tools, update the
prototype to match the implementation.

Change-Id: Id6d671dcc6e7f0dc3db9f5a07ca3ea74b45e2b41
CRs-Fixed: 2380111
2019-01-16 19:33:33 -08:00
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
Sravan Kumar Kairam
4757819765 qcacld-3.0: Delete second STA wlan ipa interface
Currently second STA wlan ipa interface is not deleted in case
of STA-STA concurrency for second sta disconnection. At the time
of driver recovery first virtual interface is deleted and later
existing ipa interfaces are deleted. This leads to invalid access
of second STA ipa interface net dev at the time of deletion during
driver recovery. Fix this by deleting the interface at the time of
sta disconnect event.

Change-Id: I21e46fe5c6f0b0213d139050acf229cb5ab914eb
CRs-Fixed: 2376897
2019-01-16 12:56:51 -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
Sravan Kumar Kairam
9cd68d0639 qcacld-3.0: Rate limit IPA callback API error logs
Excessive wlan ipa call back error logs when driver is in
transition stat which may leads to watchdog timeout. So rate
limit the logs.

Change-Id: I1398ea67abde53d3a5f0b5ab7c7ea1dd8553e4cc
CRs-Fixed: 2379522
2019-01-16 10:37:34 -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
ee066a08a3 qcacld-3.0: Remove pmo_dump_wow_ptrn() prototype
Change I47cce6123566b67d4aa0c56f1cf6738f4fdbf77d ("qcacmn: Initial
power manager offload skeleton") included a prototype for function
pmo_dump_wow_ptrn(), but not an implementation. Since subsequently
an implementation was never added, remove the unused prototype.

Change-Id: I4fda06ef5cabdbff069e542319a9d5296a0e932a
CRs-Fixed: 2380102
2019-01-15 18:41:19 -08:00
Jeff Johnson
678ddc4b16 qcacld-3.0: Remove ignore_dynamic_dtim_in_p2p_mode
Change I9b0126d9cc71f7de0d255981ba5fe88f3da05ce2 ("qcacmn: Define
configures about P2P") introduced struct p2p_param. One of the fields,
ignore_dynamic_dtim_in_p2p_mode, has apparently never been used, so
remove it.

Change-Id: I1c7c34d72f22c89f243d2639ec2baccb76be7dc2
CRs-Fixed: 2379074
2019-01-15 18:41:15 -08:00
Jeff Johnson
da70bd1338 qcacld-3.0: Harmonize the mlme_ht_info_field_2 layouts
Struct mlme_ht_info_field_2 has two different layouts depending upon
endinaness, but for one of the fields the naming does not match.
Rename the nonGFDevicesPresent field to be consistent with its
counterpart non_gf_devices_present.

Change-Id: Iafec9976d5f890ae6555af35c40186afacb5c325
CRs-Fixed: 2379073
2019-01-15 18:41:11 -08:00
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