Commit Graph

12633 Commits

Author SHA1 Message Date
Jeff Johnson
6c7d9a1b6f qcacld-3.0: Remove WMA EXTSCAN macros
The following WMA EXTSCAN macros are obsolete, so remove them:
- WMA_MAX_EXTSCAN_MSG_SIZE
- WMA_EXTSCAN_REST_TIME
- WMA_EXTSCAN_MAX_SCAN_TIME
- WMA_EXTSCAN_BURST_DURATION

Change-Id: I568f6757f7a60fcc24f0843ca8cddd29f8a78ab7
CRs-Fixed: 2375432
2019-01-07 19:58:45 -08:00
Jeff Johnson
5918e364f3 qcacld-3.0: Remove WMA_CHAN_START/END_RESP macros
Change I654e53fa2441e03723f150d973c124985c67f2b4 ("qcacld-3.0: Add new
params in ACS calc process") introduced macros WMA_CHAN_START_RESP and
WMA_CHAN_END_RESP, but did not add any code which uses them. Since
they are unused, remove them.

Change-Id: I7a5f20cb8e72c19f52d5a44afb3b480eaa84c06b
CRs-Fixed: 2375431
2019-01-07 19:58:41 -08:00
nshrivas
3cbeedcb6c Release 5.2.0.114V
Release 5.2.0.114V

Change-Id: Ice93d0c5626068adf996a73f2b7c7eb06c4eba68
CRs-Fixed: 774533
2019-01-07 17:28:26 -08:00
bings
50112bb4bb qcacld-3.0: Do DFS flag configure only when DFS channels are supported
When gEnableDFSChnlScan is configured as 0, it is incorrect that DFS
channels are not skipped when scanning.
Android O/P framework always enables DFS flag for station interface, then
gEnableDFSChnlScan is always overwritten currently.

Only support DFS flag configuration when gEnableDFSChnlScan is set as 1.

Change-Id: I4c819c4cc8c44d95ebe1ce074e67f3f1d9b254e0
CRs-Fixed: 2368131
2019-01-07 17:28:25 -08:00
Jeff Johnson
90f55253cf qcacld-3.0: Remove WMA_SCAN_NPROBES_DEFAULT
Change I840c6a5f83c6cdc479e6746f36a29c2a7970c964 ("qcacld-3.0: Remove
wma_get_buf_extscan_start_cmd()") removed the only usage of macro
WMA_SCAN_NPROBES_DEFAULT. Since it is now obsolete, remove it.

Change-Id: If4907fcc397ba77bd58d8423b1695896a7197597
CRs-Fixed: 2375430
2019-01-07 17:28:21 -08:00
Wu Gao
6768d76a7b qcacld-3.0: Remove unused tdls structures in pe
It alloc memory with structures in sir_api.h, and process/parse them
with structures in tdls component, which will cause memory corruption
potentially. So, this change refacor these functions and let them use
unified structures. Remove unused structures in sir_api.h
Here are these functions:
- lim_send_sme_tdls_add_sta_rsp
- lim_send_tdls_comp_mgmt_rsp
- lim_send_sme_tdls_del_sta_rsp
- lim_send_sme_mgmt_tx_completion

Remove below unused tdls structures:
- tSirTdlsDelAllPeerInd
- tSirTdlsDelStaInd
- tSirTdlsEventnotify
- tSirTdlsLinkEstablishReq
- tSirTdlsLinkEstablishReqRsp
- tSirTdlsAddStaRsp
- tSirTdlsDelStaRsp
- tSirMgmtTxCompletionInd

Change-Id: Ic595cadefcdbeb2df44f97563c4652db409213a2
CRs-Fixed: 2373706
2019-01-07 17:28:16 -08:00
nshrivas
65c245c591 Release 5.2.0.114U
Release 5.2.0.114U

Change-Id: I107e8649a4e1e2ca3dbda260974e9b2fdd64cc97
CRs-Fixed: 774533
2019-01-07 13:58:19 -08:00
Jeff Johnson
5574f6fa3c qcacld-3.0: Remove WMA_TX_Q_RECHECK_TIMER_MAX_WAIT
Change I33b56bb627ac914ca6fe96949de373b015853fc9 ("qcacld-3.0:
Decrease tx drain wait time during del bss") removed the only
usage of macro WMA_TX_Q_RECHECK_TIMER_MAX_WAIT. Since it is
obsolete, remove it.

Change-Id: Iec4ad45efcd7bc407f639226f7aa21ed39d753e9
CRs-Fixed: 2375429
2019-01-07 13:58:18 -08:00
Jeff Johnson
0cfe284fe0 qcacld-3.0: Remove legacy typedef tBeaconFilterIe
The legacy typedef tBeaconFilterIe is unused, so remove it, along with
the underlying tEidByteInfo typedef.

Change-Id: Id02c67ff49892d63cd2443a2639f4bc7d4253a7f
CRs-Fixed: 2375428
2019-01-07 13:58:13 -08:00
Jeff Johnson
08eee0d8e6 qcacld-3.0: Remove struct sAniProbeRspStruct typedefs
The typedefs for struct sAniProbeRspStruct are unused. Since the Linux
coding style discourages the use of typedefs, remove these so that
they won't possibly be used in the future.

Change-Id: I71965804bd32e3413314e81447ee004e6e663e49
CRs-Fixed: 2375427
2019-01-07 13:58:07 -08:00
Jeff Johnson
995163a512 qcacld-3.0: Remove legacy scan typedefs
The following legacy scan typedefs are obsolete, so remove them:
- tStartScanParams
- tEndScanParams
- tAbortScanParams

Change-Id: Ie106be72b2ff1d1969018d0db14da9408df97747
CRs-Fixed: 2375426
2019-01-07 13:58:02 -08:00
nshrivas
296bc71578 Release 5.2.0.114T
Release 5.2.0.114T

Change-Id: I17fa2da9146c7d7cbc6f2ca660e72f1ffde979fc
CRs-Fixed: 774533
2019-01-07 11:25:03 -08:00
Jeff Johnson
a8edc5901c qcacld-3.0: Remove unused protocol macros from HDD
Code componentization relocated large portions of protocol code from
HDD to protocol-specific components. Left behind were quite a few
macros that are now no longer used, so remove the following:
- WLAN_HDD_P2P_SINGLE_CHANNEL_SCAN
- WLAN_HDD_P2P_SOCIAL_CHANNELS
- WLAN_HDD_PUBLIC_ACTION_FRAME
- WLAN_HDD_PUBLIC_ACTION_FRAME_ACTION_OFFSET
- WLAN_HDD_PUBLIC_ACTION_FRAME_BODY_OFFSET
- WLAN_HDD_PUBLIC_ACTION_FRAME_CATEGORY_OFFSET
- WLAN_HDD_PUBLIC_ACTION_FRAME_OUI_OFFSET
- WLAN_HDD_PUBLIC_ACTION_FRAME_OUI_TYPE_OFFSET
- WLAN_HDD_PUBLIC_ACTION_FRAME_SUB_TYPE_OFFSET
- WLAN_HDD_PUBLIC_ACTION_FRAME_TYPE_OFFSET
- WLAN_HDD_SA_QUERY_ACTION_FRAME
- WLAN_HDD_TDLS_ACTION_FRAME
- WLAN_HDD_VENDOR_SPECIFIC_ACTION
- WLAN_HDD_WFA_OUI
- WLAN_HDD_WFA_P2P_OUI_TYPE

Change-Id: I74611f7db2c2d3a6fa50c2719986cba2c33b41b3
CRs-Fixed: 2375425
2019-01-07 11:25:02 -08:00
Jeff Johnson
62a665ad8e qcacld-3.0: Remove SS_OUI macros
The SS_OUI_TYPE and SS_OUI_TYPE_SIZE macros are unused,
so remove them.

Change-Id: I5f9e6277c94d2b1d3685a4c3ceff4b31e6e7bbd6
CRs-Fixed: 2375424
2019-01-07 11:24:56 -08:00
Jeff Johnson
b3ce645368 qcacld-3.0: Remove macro MAC_ADDR_LEN
The macro MAC_ADDR_LEN is unused, so remove it.

Change-Id: Ic9770e7ffbcdfe3c01bcafb376c5e2c7b7f29eec
CRs-Fixed: 2375423
2019-01-07 11:24:50 -08:00
Jeff Johnson
c1ff128405 qcacld-3.0: Remove field connection from struct hdd_adapter
Field connection in struct hdd_adapter is unused, so remove it.

Change-Id: Ifb2898e5587b17454135181b054fb2bcd815ef88
CRs-Fixed: 2375422
2019-01-07 11:24:45 -08:00
nshrivas
cc7d56fc3f Release 5.2.0.114S
Release 5.2.0.114S

Change-Id: I7c22a567ebce26a369f2d0541af22aca2e872501
CRs-Fixed: 774533
2019-01-07 08:47:16 -08:00
Jeff Johnson
40d289ec79 qcacld-3.0: Remove macro HTT_TX_DESC_PADDR()
Macro HTT_TX_DESC_PADDR() is unused. Furthermore, it references
tx_descs fields which do not exist. Since it couldn't possibly be
used in its current form, remove the macro.

Change-Id: I62b2d7bc3291ba6c2dc486196076827cfc22d8ec
CRs-Fixed: 2375421
2019-01-07 08:47:15 -08:00
Jeff Johnson
473f76a260 qcacld-3.0: Remove TDLS_STA_INDEX_VALID
Change I8ba344ce5593df44bd15527e2ff68e872b6d23b8 ("qcacld-3.0: TDLS:
remove legacy core functions") removed all uses of macro
TDLS_STA_INDEX_VALID. Since it is now unused, remove it.

Change-Id: Iefec2b4565f4a387778ccd5a4ed7e0d9eb9b732e
CRs-Fixed: 2375416
2019-01-07 08:46:46 -08:00
Jeff Johnson
303ebc0bf2 qcacld-3.0: Remove WLAN_WAIT_TIME_APF_GET_CAPS
Change Ic72243b918f4a8385a92b803a1ca3c5305423b52 ("qcacld-3.0: Add
support for Android Packet Filter v3") introduced macro
WLAN_WAIT_TIME_APF_GET_CAPS, but didn't actually introduce any code
that uses it. Since it is unused, remove it.

Change-Id: Iad513163ee32ea542b5f1ba22ec349385cfe9457
CRs-Fixed: 2374850
2019-01-07 08:46:41 -08:00
Jeff Johnson
3f9520131d qcacld-3.0: Remove QCSAP_IOCTL_CLR_STATS
The QCSAP_IOCTL_CLR_STATS ioctl is no longer supported, so remove the
associated macro.

Change-Id: Icc7462005c3ce97833c7309a70f51cf54722660f
CRs-Fixed: 2374849
2019-01-07 08:46:35 -08:00
Jeff Johnson
783ef375c5 qcacld-3.0: Remove CDS_SCHED_THREAD_HEART_BEAT
Macro CDS_SCHED_THREAD_HEART_BEAT is unused, so remove it.

Change-Id: I28a2aa8117e5f9bacd20aadc086103f40585e922
CRs-Fixed: 2374848
2019-01-07 08:46:30 -08:00
Jeff Johnson
103e4fb219 qcacld-3.0: Remove WMA_NVDownload_Start()
Macro WMA_NVDownload_Start() is obsolete, so remove it.

Change-Id: Iabdf9cd343a36dca78c527a45aa80338c1b43057
CRs-Fixed: 2374847
2019-01-07 08:46:25 -08:00
nshrivas
e28d11f057 Release 5.2.0.114R
Release 5.2.0.114R

Change-Id: I860cded92a1a22cab34d6e46475d052c3bafebbe
CRs-Fixed: 774533
2019-01-07 00:12:23 -08:00
Jeff Johnson
150d961938 qcacld-3.0: Remove typedef tBeaconFilterMsg
Change Id235d6303ce7c740f907147afc7248d833772067 ("qcacld-3.0:
Cleanup eWNI_SME_SET_BCN_FILTER_REQ") removed the usage of typedef
tBeaconFilterMsg, but didn't actually remove the obsolete typedef,
so remove it now.

Change-Id: Id7a24e18a6aa4fb7cfa6747f264bd3e6eeaa1ad8
CRs-Fixed: 2374845
2019-01-07 00:12:23 -08:00
Jeff Johnson
e1eb7480f7 qcacld-3.0: Remove MHF fields from t_wma_handle
The enable_mhf_offload and last_mhf_entries_timestamp fields of
t_wma_handle are unused, so remove them.

Change-Id: If07fa52f93caa0c2f2bb191603c6a96830dad469
CRs-Fixed: 2374844
2019-01-07 00:12:11 -08:00
Jeff Johnson
970bea4b53 qcacld-3.0: Remove typedef uapsd_start_indication_cb
Change Ie891eddad2b536e43f5f933c8683d41b096bf578 ("qcacld-3.0: Remove
obsolete code in SME QOS module") removed the only references to
typedef uapsd_start_indication_cb. Since it is obsolete, remove it.

Change-Id: I940608cf59b4f9f5f68cffb68b9ee45606461ded
CRs-Fixed: 2374843
2019-01-07 00:12:00 -08:00
Jeff Johnson
7e6e127ce7 qcacld-3.0: Remove DISA fields from tSmeStruct
Change Ia44acd9a3e31bf0d1098f7d423f0c28a2b7fe5fa ("qcacld-3.0: Cleanup
WMA and SME code related to DISA") removed the SME DISA code, but it
left behind the encrypt_decrypt_cb and encrypt_decrypt_context fields
in tSmeStruct. Since these are now obsolete, remove them, along with
their underlying type definitions.

Change-Id: I7bf5d737b89cc9604310b7c18c510f42f73ec971
CRs-Fixed: 2374842
2019-01-07 00:11:49 -08:00
Jeff Johnson
30e9bb6508 qcacld-3.0: Remove wlan_hdd_check_custom_con_channel_rules()
Change I6cb9fe12bee3702556c9b52e7ccb7c69c762d8de ("qcacld-3.0: Remove
legacy code for policy manager restructuring") removed the client of
wlan_hdd_check_custom_con_channel_rules(). Since this is no longer
used, remove it.

Change-Id: I2e43eec1f2ee7a7916630b1099cf7de000a06a6a
CRs-Fixed: 2374841
2019-01-07 00:11:38 -08:00
Jeff Johnson
fd692ff77f qcacld-3.0: Remove csr_roamGetConcurrencyConnectStatusForBmps()
Function csr_roamGetConcurrencyConnectStatusForBmps() no longer
exists, but the prototype is still present. Since it is obsolete,
remove it.

Change-Id: I6e1f0206957a828a1041659e7d5f3ac9e97dc843
CRs-Fixed: 2374840
2019-01-07 00:11:26 -08:00
Jeff Johnson
d2ce414147 qcacld-3.0: Remove sme_ConfigureAppsCpuWakeupState()
Function sme_ConfigureAppsCpuWakeupState() no longer exists, but the
prototype is still present. Since it is obsolete, remove it.

Change-Id: I91c26c2e3ec67c61ff55efbf24b2716e3ff35675
CRs-Fixed: 2374839
2019-01-07 00:11:15 -08:00
Jeff Johnson
db6f33dc0e qcacld-3.0: Remove csr_get_phy_mode_from_bssDesc()
Function csr_get_phy_mode_from_bssDesc() no longer exists, but the
prototype is still present. Since it is obsolete, remove it.

Change-Id: Ib5a37e0468d3f6f2f5ed862c99d508aadb3afda0
CRs-Fixed: 2374838
2019-01-07 00:11:05 -08:00
Jeff Johnson
d5f34f8623 qcacld-3.0: Remove macro CSR_IS_11D_INFO_FOUND
Macro CSR_IS_11D_INFO_FOUND is unused, so remove it.

Change-Id: I8e5ff1f935fd4486144aeea588e1e2dee3920020
CRs-Fixed: 2374837
2019-01-07 00:10:56 -08:00
Jeff Johnson
0ad556031c qcacld-3.0: Remove unused channel fields from csr_roamstruct
The following channel-related fields in struct csr_roamstruct are
unused, so remove them:
- baseChannels
- channelList24
- channelList5G
- numChannelsEeprom

Change-Id: Ia44e386496e36ba15bcb1c39c6190d0331603903
CRs-Fixed: 2374836
2019-01-07 00:10:45 -08:00
Jeff Johnson
2f98db3eb2 qcacld-3.0: Remove enum csr_hi_rssi_scan_id
Change I7994a9038d5bd094ce23bcd525ef8f5282974bfc ("qcacld-3.0: Apply
second part of LFR INIs changes") removed the logic that utilized the
csr_hi_rssi_scan_id enumerations. Since these are now unused, remove
the definition.

Change-Id: Ia72aabdfa672c8012f952967c7f67b1bc8024514
CRs-Fixed: 2374835
2019-01-07 00:10:36 -08:00
Jeff Johnson
676dacfbb9 qcacld-3.0: Remove SapAllChnlList from struct sap_context
Change Ia0fa016b174ef4b50e2cc339e4e476ec65642dbf ("qcacld-3.0: Use dfs
component support") removed the logic that utilized the SapAllChnlList
in struct sap_context. Since this field is now obsolete, remove it,
along with the underlying tAll5GChannelList typedef that is also now
obsolete.

Change-Id: I5a07c44ca4138af5494d1a6f6e1d08158d244be2
CRs-Fixed: 2374834
2019-01-07 00:10:27 -08:00
Jeff Johnson
e0b7effe1e qcacld-3.0: Remove macro ANI_EAPOL_KEY_RSN_NONCE_SIZE
Macro ANI_EAPOL_KEY_RSN_NONCE_SIZE is obsolete, so remove it.

Change-Id: Id9107d513f8c4ebe42e7dc6b6ee19d2e09fd7748
CRs-Fixed: 2374833
2019-01-07 00:10:18 -08:00
Jeff Johnson
534dc7f16b qcacld-3.0: Remove typedef tSapChSelParams
Typedef tSapChSelParams is unused, so remove it.

Change-Id: I13f55881c75454125b1fbc6be741e4f164c51782
CRs-Fixed: 2374832
2019-01-07 00:10:08 -08:00
Jeff Johnson
b3a9c6cfc7 qcacld-3.0: Remove ap_table fields from struct sap_config
The ap_table_max_size and ap_table_expiration_time fields in struct
sap_config are unused, so remove them.

Change-Id: I24aabe78b0da45c3dde19b444f94222eb874477d
CRs-Fixed: 2374831
2019-01-07 00:09:59 -08:00
Jeff Johnson
c3f76aa289 qcacld-3.0: Remove obsolete sys*Entry() prototypes
The following prototypes are obsolete, so remove them:
- sysBbtEntry()
- sysDphEntry()
- sysHalEntry()
- sysLimEntry()
- sysMmhEntry()
- sysMntEntry()
- sysNimPttEntry()
- sysPmmEntry()
- sysSchEntry()

Change-Id: I7bdfa157e8a7bd1c73e5358715b862a600ef6eae
CRs-Fixed: 2374830
2019-01-07 00:09:50 -08:00
Jeff Johnson
81575a6cf8 qcacld-3.0: Remove struct ndp_peer_node
Change I12a1d0cf37db22ff0bcb8165cb3f6b3847f8bf5b ("qcacld-3.0: Add
interface changes for supporting NAN data path") introduced struct
ndp_peer_node, but did not actually add code which uses it. Since
this struct is unused, remove it.

Change-Id: I36b333287de19e42855a596d25ba489e9cfb3241
CRs-Fixed: 2374293
2019-01-07 00:09:37 -08:00
Jeff Johnson
b485f7ba5e qcacld-3.0: Remove lim_handle_ndp_event_message()
Change I5828002d2363e01f63b0a643a0c59abd52bc4f19 ("qcacld-3.0:
NAN datapath cleanup") removed all code that called
lim_handle_ndp_event_message(), but inexplicably left behind an
inline stub function. Since the stub is unused, remove it.

Change-Id: I283c5e4ad8f285fc0452d8efbdc77960e420cf0b
CRs-Fixed: 2374292
2019-01-07 00:09:28 -08:00
Jeff Johnson
c18472319f qcacld-3.0: Remove obsolete limGetBssidFromPkt() prototype
LIM exposes a prototype for limGetBssidFromPkt(), but the actual
function no longer exists. Since this is an obsolete prototype,
remove it.

Change-Id: Idef628f4de18d4b4cc9a12c1cfb184eb2eadfdf1
CRs-Fixed: 2374291
2019-01-07 00:09:20 -08:00
Jeff Johnson
275af47102 qcacld-3.0: Remove obsolete limWPSPBCTimeout() prototype
LIM exposes a prototype for limWPSPBCTimeout(), but the actual
function no longer exists. Since this is an obsolete prototype,
remove it.

Change-Id: I31cbeae9dfa9fb561506bbd5ca16771ec9c566d8
CRs-Fixed: 2374290
2019-01-07 00:09:12 -08:00
Jeff Johnson
05b9d757f1 qcacld-3.0: Remove obsolete "Pre-n" PropIE support
The driver contains remnant support for Proprietary IEs that were
inherited from the original "Pre-n" version of the driver.  Since
these IEs are no longer parsed or used, remove all references to them.

Change-Id: Iac7c3176682ce0054b7f06827fa6b6ec7be1e6a5
CRs-Fixed: 2374289
2019-01-07 00:09:04 -08:00
Jeff Johnson
11b3aa5643 qcacld-3.0: Remove tSirExtScanGetCachedResultsRspParams
Typedef tSirExtScanGetCachedResultsRspParams is unused, so remove it.

Change-Id: Id6859f454258b547ce54c315772ce99458430f4d
CRs-Fixed: 2374288
2019-01-07 00:08:56 -08:00
Jeff Johnson
8bab82b473 qcacld-3.0: Remove obsolete packet filtering structs
The following legacy packet filtering structs are obsolete,
so remove them:
- tSirRcvFltPktMatchCnt
- tSirRcvFltPktMatchRsp
- tSirRcvFltPktClearParam

Change-Id: Idb4d38d498a9c618f41d35cadfc54332b435d400
CRs-Fixed: 2374287
2019-01-07 00:08:48 -08:00
Jeff Johnson
1273c955c5 qcacld-3.0: Remove unused/obsolete byte swap APIs
There are a large number of legacy byte swap APIs in utils_api.h that
are unused, so remove them.

Change-Id: I1adbb82820e4b325ed2843a87a201250978ce04c
CRs-Fixed: 2374286
2019-01-07 00:08:41 -08:00
Jeff Johnson
8a4154bb5d qcacld-3.0: Remove tSirMbMsgP2p
Change I71de90d5fb88462e52148a434d43ea80c41cfe36 ("qcacld-3.0: Move
Channel convert and frame indication logic to lim_utils.c") removed
the last reference to typedef tSirMbMsgP2p. Since it is obsolete,
remove it.

Change-Id: I009aa479ffddeceebb3bd26af5ae48c32a43240c
CRs-Fixed: 2374285
2019-01-07 00:08:34 -08:00
Jeff Johnson
8e2c97965c qcacld-3.0: Remove burstEnableForce from tDphHashNode
Field burstEnableForce in tDphHashNode is unused, so remove it.

Change-Id: I6661c5befa2a537ec62b041c144bc7fbc01420a6
CRs-Fixed: 2374284
2019-01-07 00:08:27 -08:00
Jeff Johnson
eca21795b8 qcacld-3.0: Remove tCfgPerStaStatStruct
Typedef tCfgPerStaStatStruct is obsolete, so remove it.

Change-Id: I1a024dc706f5604a951f473d94a3d03664226a13
CRs-Fixed: 2374283
2019-01-07 00:08:20 -08:00
Jeff Johnson
16cb64e1fe qcacld-3.0: Remove tSirBackgroundScanMode
Change Ia664f815759142e7f4ad8e648a469c63ddd003f5 ("qcacld-3.0:
Cleanup unused scan code") removed the last reference to
tSirBackgroundScanMode. Since it is now obsolete, remove it.

Change-Id: I2faab5487988b1941601f2befdb570ecab8651ed
CRs-Fixed: 2374282
2019-01-07 00:08:13 -08:00
Jeff Johnson
424bc294e3 qcacld-3.0: Remove obsolete Scan Params typedefs
Typedefs tInitScanParams and tFinishScanParams are unused, so remove
them, along with tSirScanEntry and tSirLinkTrafficCheck that is used
just by them.

Change-Id: I5f9c58236f8c5fe639c5b896a66b9dc290e54ab1
CRs-Fixed: 2374281
2019-01-07 00:08:06 -08:00
Jeff Johnson
27df22e68d qcacld-3.0: Remove HDD_SCAN_INACTIVITY_TIMEOUT
Change I38900a4c786b5ba5f31006e6e29332c081a565cf ("qcacld-3.0:
cleanup legacy scan code") removed the last reference to macro
HDD_SCAN_INACTIVITY_TIMEOUT. Since this macro is now unused,
remove it.

Change-Id: I9cb1370b6284a76c073594760bd857f666426e84
CRs-Fixed: 2374280
2019-01-07 00:08:00 -08:00
Jeff Johnson
4377eba726 qcacld-3.0: Remove timWaitCount from tAniSirDph
The timWaitCount field in tAniSirDph is initialized but never read.
Since it is ultimately unused, remove it.

Change-Id: I98795820caf8087f225b3835e531790d2d1f167e
CRs-Fixed: 2374279
2019-01-07 00:07:54 -08:00
Jeff Johnson
4e7862fbb2 qcacld-3.0: Remove txRateFlags from tSirIbssPeerInfoParams
The txRateFlags field in tSirIbssPeerInfoParams is initialized to zero
but is otherwise unused, so remove it.

Change-Id: I8efcb18869dfe1c5e2a42395bb40c281391b3bfa
CRs-Fixed: 2374278
2019-01-07 00:07:48 -08:00
Jeff Johnson
59f8ee46a5 qcacld-3.0: Remove ucPatternIdBitmap from tSirDelPeriodicTxPtrn
Field ucPatternIdBitmap in tSirDelPeriodicTxPtrn serves no purpose, so
remove it.

Change-Id: I966983c3dea674e61ccf4d06473ea21448484a4c
CRs-Fixed: 2374277
2019-01-07 00:07:42 -08:00
Jeff Johnson
86bef3ee7a qcacld-3.0: Remove ucastDataRate from tSirRateUpdateInd
The ucastDataRate field in tSirRateUpdateInd is initialized, but is
otherwise not used, so remove it. And the ucastDataRateTxFlag field is
never referenced, so remove it as well.

Change-Id: I1df8e5ec32d8ebb1d1e1f53c83bec45fbb86bb4e
CRs-Fixed: 2374276
2019-01-07 00:07:36 -08:00
Jeff Johnson
94b3303ffd qcacld-3.0: Remove ucSecEnabled from struct sap_context
Field ucSecEnabled in struct sap_context is initialized, but is
otherwise unused, so remove it.

Change-Id: I4b947be54d86e0e7e272b97427efd7acb4658fe6
CRs-Fixed: 2374275
2019-01-07 00:07:31 -08:00
Jeff Johnson
d039a3302f qcacld-3.0: Remove ownSsid from struct sap_context
The ownSsid and ownSsidLen fields in struct sap_context are unused, so
remove them.

Change-Id: I405f0c7c47e163a962bc3db19d88d5b69ca95ac7
CRs-Fixed: 2374274
2019-01-07 00:07:25 -08:00
gaurank kathpalia
1be77fa6a9 qcacld-3.0: Add Dot11 mode related CFG items in mlme cfg
Add dot11mode related cfg items in mlme cfg, and replace
old WNI dot11 modes with new MLME DOT11 mode enums

Change-Id: I6e866959f440ae781432c8aaa724b229c0874856
CRs-Fixed: 2362540
2019-01-07 00:07:19 -08:00
Sravan Kumar Kairam
f48210cb66 qcacld-3.0: Add cdp api for dp tx desc availability
Add cdp api to check if tx desc pool available descriptor
threshold has reached.

Change-Id: I12cc38b56a68ca7ee8f4560677fcdabccb38928b
CRs-Fixed: 2369244
2019-01-07 00:07:14 -08:00
Abhishek Singh
ef6f38c913 qcacld-3.0: Refactor the prints for rx management frames
Refactor the prints for rx management frames. Do not print rx
frames in wma_form_rx_packet, as txrx module take care of it.

Change-Id: I52403c9dd32919507af13782dc838ff8076070cd
CRs-Fixed: 2375675
2019-01-07 00:07:10 -08:00
Nachiket Kukade
338547b58b qcacld-3.0: Print APF work memory as it is read or written
Just like the legacy APF commands, dump the contents of the
APF instructions/data as it is read or written by upper
layer using the new APFv3 vendor commands. This is helpful
for debugging purposes.

Change-Id: I24725b5b8431fcaa573953187f8412e4f4d0b510
CRs-Fixed: 2375362
2019-01-07 00:07:05 -08:00
nshrivas
5761a0355e Release 5.2.0.114Q
Release 5.2.0.114Q

Change-Id: Ifa1c30e54f404eeb2fd27b995699f4b40da2bb56
CRs-Fixed: 774533
2019-01-03 16:16:48 -08:00
Abhishek Singh
1a8299a139 qcacld-3.0: Cleanup unused eLIM_LEARN_DURATION_TIMER
Cleanup unused timer enum eLIM_LEARN_DURATION_TIMER

Change-Id: I79d215777e18a453488471f530e598773c1e6b77
CRs-Fixed: 2375046
2019-01-03 16:16:47 -08:00
Abhishek Singh
d085438d4a qcacld-3.0: Cleanup unused LIM MLM states
Cleanup unused LIM MLM states:
eLIM_MLM_P2P_LISTEN_STATE
eLIM_MLM_WT_PROBE_RESP_STATE
eLIM_MLM_PASSIVE_SCAN_STATE
eLIM_MLM_LEARN_STATE
eLIM_MLM_WT_SET_MIMOPS_STATE

Change-Id: I04b29adf4729e830b61cebb47bd501caad5ace50
CRs-Fixed: 2375044
2019-01-03 16:16:43 -08:00
Abhishek Singh
5432c35d01 qcacld-3.0: Remove unused logic to convert DFS channels to active
lim.dfschannelList.timeStamp is a array of
SIR_MAX_24G_5G_CHANNEL_RANGE(166). In some countries channel greater
than 165 are allowed and thus if channel is greater than 165 driver
access out of bound memory which lead to corruption of
lim.sme_msg_callback.

lim.dfschannelList.timeStamp is used to convert DFS channels to
active, which is used for host handled scan to decide if active
scan can be done on DFS channel. Scan now been handled in firmware
this logic is unused and can be removed.

Change-Id: Ib301fa70a6b7ed99f3ecacbf344dd9e821079149
CRs-Fixed: 2374977
2019-01-03 16:16:38 -08:00
nshrivas
e1ea09e9b6 Release 5.2.0.114P
Release 5.2.0.114P

Change-Id: Ia149e0aea3704089cac08a9536c0c4d4512ffcaf
CRs-Fixed: 774533
2019-01-03 09:04:16 -08:00
Kiran Kumar Lokere
ceeed83aa2 qcacld-3.0: Enable power save with user cfg request
Currently power save enable request user command is not
processed if the station is not in connected state and the
configuration is not saved hence station do not enter into
power save mode until the user command is issued after
connection.
Save the power save user configuration setting if the station
is not connected and start the auto power save timer for one
second timeout value after the station is connected to enable
the power save.

Change-Id: I6e17a8e989ca731ca008dcb46ca79c3a181ddff0
CRs-Fixed: 2371045
2019-01-03 09:04:15 -08:00
nshrivas
7e3f297823 Release 5.2.0.114O
Release 5.2.0.114O

Change-Id: I0ce565dd729925d89d69582741fd2ad28ea1ef9d
CRs-Fixed: 774533
2019-01-03 06:47:35 -08:00
Harprit Chhabada
98225f6b0d qcacld-3.0: Add flag CONFIG_WMI_BCN_OFFLOAD to dependent APIs
Change I4fdbf041b53b5f1606d324714f01088742a9307f ("qcacld-3.0:
Modify Kbuild to add new beacon header file") added new file
wmi_unified_bcn_api.c to Kbuild with flag CONFIG_WMI_BCN_OFFLOAD.

Add this flag to all dependent APIs.

Change-Id: Id3f77434179b739d5563b490d25b1c1386e1831f
CRs-Fixed: 2374758
2019-01-03 06:47:35 -08:00
nshrivas
da1b34837b Release 5.2.0.114N
Release 5.2.0.114N

Change-Id: I8ee936f83070b80f9a8a9705bd25ebae221a5c08
CRs-Fixed: 774533
2019-01-03 00:21:25 -08:00
Alok Kumar
d9111bb36b qcacld-3.0: Handle NUD event if subnet gateway is configured
Add protective check in driver to handle NUD events only if
subnet gateway is configured.

Change-Id: I5142e4d50490ea4726f337e19c8282359d23423d
CRs-Fixed: 2373552
2019-01-03 00:21:24 -08:00
nshrivas
bdb53f1b27 Release 5.2.0.114M
Release 5.2.0.114M

Change-Id: Iadb504d6af7341ade149900b1835d61d1d2e2e27
CRs-Fixed: 774533
2019-01-02 18:46:37 -08:00
Harprit Chhabada
dc5bc15a6c qcacld-3.0: Remove unused WNI CFG item of scan component
Remove unused wni CFG item, WNI_CFG_SCAN_IN_POWERSAVE

Change-Id: I13e01172c3a18072c31e9b13a6e2396cfea0f5c6
CRs-Fixed: 2371763
2019-01-02 18:46:37 -08:00
Jeff Johnson
339ede8ffe qcacld-3.0: Use vtable for rx blocksize
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal update the signature of the following function
and add that function to the vtable:
- wlan_hdd_cfg80211_wifi_set_rx_blocksize()

Note that with this change all of the attribute handling in
__wlan_hdd_cfg80211_wifi_configuration_set() has been relocated to the
vtables. The measured cyclematic complexity was reduced from 103 to 6.

Change-Id: If5c3cfea7107f95c07867895a0bc7cc5d13fc7ac
CRs-Fixed: 2371594
2019-01-02 18:46:33 -08:00
nshrivas
a2380537f0 Release 5.2.0.114L
Release 5.2.0.114L

Change-Id: I9b4b8aa82b8b4c5d6bb3cf8b2d298665ffe3fc97
CRs-Fixed: 774533
2019-01-02 16:29:51 -08:00
Jeff Johnson
0dd687eda0 qcacld-3.0: Use vtable for reorder timeout
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal update the signature of the following function
and add that function to the vtable:
- wlan_hdd_cfg80211_wifi_set_reorder_timeout()

Change-Id: Ia9c160eb81358b91feecb35b1cb8c097f90979cc
CRs-Fixed: 2371593
2019-01-02 16:29:50 -08:00
Jeff Johnson
1350e62148 qcacld-3.0: Refactor ANT_DIV_SNR_WEIGHT configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following interdependent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT

Change-Id: I1bd98a7c78b77791eb7737a928f2a22ced1af3c6
CRs-Fixed: 2371592
2019-01-02 16:29:45 -08:00
Jeff Johnson
7bf20cb5eb qcacld-3.0: Refactor ANT_DIV_PERIOD configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following interdependent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD

Change-Id: I13f76951f8f8451d70e1cc64f0116a8b6de163d0
CRs-Fixed: 2371591
2019-01-02 16:29:41 -08:00
Jeff Johnson
0fbb43b96a qcacld-3.0: Refactor MPDU_AGGREGATION configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following interdependent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION
- QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION

Change-Id: Ied99c92d708967713e6807d000485327ddba5fdd
CRs-Fixed: 2371590
2019-01-02 16:29:37 -08:00
nshrivas
655b48bd52 Release 5.2.0.114K
Release 5.2.0.114K

Change-Id: I09dc0811ab45e0aba5e61810f566e109947dd1a0
CRs-Fixed: 774533
2019-01-02 14:15:01 -08:00
Jeff Johnson
affc4da8cd qcacld-3.0: Refactor ACCESS_POLICY configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following interdependent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY
- QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST

Change-Id: Ia10060a8a50b2e12f0eb7dc5ea5810f1751bce60
CRs-Fixed: 2371589
2019-01-02 14:15:01 -08:00
Rajeev Kumar
f10f177186 qcacld-3.0: Avoid psoc remove when previous probe was not successful
Previous psoc probe was not successful and in that case hdd_ctx will
be null so during next psoc remove check for validity of hdd_ctx
before de-referencing it and return safely in case psoc probe was
not successful.

Change-Id: I535965f9d60522245720952d2d7c14e09a91a334
CRs-Fixed: 2373865
2019-01-02 14:14:56 -08:00
nshrivas
a891c69dbc Release 5.2.0.114J
Release 5.2.0.114J

Change-Id: I434bbb72880a7ae22459b97b016a464e94c20447
CRs-Fixed: 774533
2019-01-02 12:04:28 -08:00
Alok Kumar
ac74177daa qcacld-3.0: Avoid access of deleted peer during RX thread close
During SSR case in wlan_hdd_stop_modules(), ol_txrx_pdev_pre_detach()
cleanup the peer forcibly. Later RX Thread is getting closed as part
of cds_sched_close(). So chances of accessing deleted peer is there.

Shutdown RX thread before doing ol_txrx_pdev_pre_detach() to avoid
the chances of accessing deleted peer.

Change-Id: Iae27262396d8245eeb7a9b39cb678fad14815260
CRs-Fixed: 2349994
2019-01-02 12:04:27 -08:00
nshrivas
57ed3b03e3 Release 5.2.0.114I
Release 5.2.0.114I

Change-Id: Ie8e9de37a1d8bb60bc33e9c730dcec796b148f40
CRs-Fixed: 774533
2019-01-02 09:28:00 -08:00
Arif Hussain
49698119d9 qcacld-3.0: Make sure to initialize global target_if before soc create
Make sure to initialize global target_if before soc create
as part of this psoc notifications are registered.

Change-Id: Id5491a2aac49450774532fe69ee24e18c9a7c594
CRs-Fixed: 2351426
2019-01-02 09:28:00 -08:00
nshrivas
f253f834ac Release 5.2.0.114H
Release 5.2.0.114H

Change-Id: Ic70e9280c74bcb6fd758c8eea0533efd08835923
CRs-Fixed: 774533
2019-01-02 03:52:58 -08:00
Yu Ouyang
781f1b56c9 qcacld-3.0: correct return value for pld_pcie_get_user_msi_assignment
Without CNSS module, function pld_pcie_get_user_msi_assignment return zero
even no msi config. For caller function pld_get_user_msi_assignment, zero
means TRUE. It will result to panic when deinit sequence called in
function hif_ce_srng_msi_free_irq. Return correcly value to avoid panic.

Change-Id: Id4480ef1db5357943162472963c4e78d7bfe64b8
CRs-Fixed: 2373130
2019-01-02 03:52:58 -08:00
nshrivas
246f7db4b3 Release 5.2.0.114G
Release 5.2.0.114G

Change-Id: I806462b82620db468260b718bdbd45c23d7ac2f8
CRs-Fixed: 774533
2019-01-01 23:28:24 -08:00
hangtian
29be28705c qcacld-3.0: Add rrm IE for sap mode
Add rrm IE for sap mode.

Change-Id: Ic598da89627254a5d14b61c546e3fdb29d5836cc
CRs-Fixed: 2371360
2019-01-01 23:28:24 -08:00
hangtian
06a41355e6 qcacld-3.0: Discard msdu and do not try to access vdev and vdev->pdev
Discard msdu and do not try to access vdev and vdev->pdev, because in
some cases, vdev or vdev->pdev is already freed, but some packet just
received right after wmi vdev delete command is sent.

Change-Id: Ia38768d800da97e361ffa1688ce53c25be6cd597
CRs-Fixed: 2372557
2019-01-01 23:28:20 -08:00
nshrivas
1651b9612e Release 5.2.0.114F
Release 5.2.0.114F

Change-Id: I3bc77688a052f75be9c5dc76ace6cac5ab913088
CRs-Fixed: 774533
2019-01-01 17:06:03 -08:00
Arif Hussain
0b634b48ed qcacld-3.0: Restore gDisableDfsJapanW53 ini support
Restore gDisableDfsJapanW53 ini support.

Change-Id: I085e62e7cd8b1fdfe931997d35915f55d079f11d
CRs-Fixed: 2371006
2019-01-01 17:06:03 -08:00
nshrivas
1bd0968261 Release 5.2.0.114E
Release 5.2.0.114E

Change-Id: I17a3e520e05e13e4d4a8226315ba5588bc04d08b
CRs-Fixed: 774533
2018-12-31 21:29:28 -08:00
Srinivas Dasari
b328f1a4f9 qcacld-3.0: Add changes to support OSEN AKM for HS-2.0
OSEN is a new AKM to support HS-2.0. This change is to support
the same.

Change-Id: I6d6c3c2bca76a346d83c6f1303ae86177f2fde67
CRs-Fixed: 2361385
2018-12-31 21:29:28 -08:00
nshrivas
71118e7ad7 Release 5.2.0.114D
Release 5.2.0.114D

Change-Id: I7672350c7684a834a1a7a00edcf016cadc018873
CRs-Fixed: 774533
2018-12-31 01:13:12 -08:00
Sourav Mohapatra
9e014cf171 qcacld-3.0: Add support to enable/disable RTT feature
Define a new ini param to provide control over enabling and disabling
support for RTT.

Change-Id: I4fcc2370f758f80f00aaf04a4f23e24934d92f52
CRs-Fixed: 2364495
2018-12-31 01:13:11 -08:00
Sourav Mohapatra
fec6d6c8c4 qcacld-3.0: Disable indoor channels only for SAP and not GO
In the present scenario, the indoor channels are disabled
in both SAP and GO.
Disable the indoor channels only in case of SAP.

Change-Id: Ic66c3af211bd65846ec0ecaac8375d037f15af9a
CRs-Fixed: 2203719
2018-12-31 01:13:07 -08:00
nshrivas
9991acf33b Release 5.2.0.114C
Release 5.2.0.114C

Change-Id: I6d1fb7a153e47a6780b48f6c4c395c628ed23c6d
CRs-Fixed: 774533
2018-12-30 03:59:10 -08:00
Abhishek Singh
caebb463d7 qcacld-3.0: Fix infinite for loop in wlansap_update_csa_channel_params
In wlansap_update_csa_channel_params if channel is not present in
op class table the for loop become infinite.

Add check to break the loop if BW is 20 and still entry is not found
in op class table.

Change-Id: I6ef6bc138a8df0e18b54bd16a47eba23b437616d
CRs-Fixed: 2373915
2018-12-30 03:59:09 -08:00
nshrivas
372d92da33 Release 5.2.0.114B
Release 5.2.0.114B

Change-Id: I78ebf228cd2496be4b01b1c670ddf9a6d1e075de
CRs-Fixed: 774533
2018-12-28 22:56:27 -08:00
Abhishek Singh
59e6aa940e qcacld-3.0: Remove wlan_serialization_legacy_init_callback
Each cmd in serialization list holds a vdev ref by
I8d573ff5a25e6dff928b2708e51ad7b97e292277. When vdev is
destroyed physically, it means vdev ref count is 0, all
serialization cmds of this vdev are released, so no need
to registed purge calback.

Change-Id: Iea75707c88154e1e3e87369285b82d1288523e22
CRs-Fixed: 2373677
2018-12-28 22:56:26 -08:00
nshrivas
00a705fc60 Release 5.2.0.114A
Release 5.2.0.114A

Change-Id: I4cf62a6adf8ffe669d871d1fca9ff9a36f73f6e3
CRs-Fixed: 774533
2018-12-28 19:20:31 -08:00
Srinivas Dasari
e3ef7c646d qcacld-3.0: Free memory allocated to FILS info in roam profile
Memory allocated to FILS info is not getting freed in some
cases such as back to back connection and disconnect handler.

Add changes to free memory in these cases.

CRs-Fixed: 2047172
Change-Id: I5baf4555d956045cb65eedbc87daef3045732286
2018-12-28 19:20:31 -08:00
nshrivas
e23f3f8097 Release 5.2.0.114
Release 5.2.0.114

Change-Id: I18235a2e2cec1c3c02f7ba9627f08f4acc1231f2
CRs-Fixed: 774533
2018-12-28 16:12:10 -08:00
Jianmin Zhu
5252e04745 qcacld-3.0: Avoid keeping in DBS mode when STA connect 5G AP
If Connect candidate has two or more APs in different band,
switch to DBS firstly. After associated 5G AP, will check and
try to switch to single MAC mode.  But during DUT STA-AP key
negotiation, set hw mode cmd is refused to avoid EAPOL fail.

Fix: Delay N sec to check and set hw mode after associated, let
EAPOL handshake finish first.

Change-Id: I7d975fb56fedc30d66c21782607d148137e53e82
CRs-Fixed: 2372485
2018-12-28 16:12:09 -08:00
nshrivas
5b39c24385 Release 5.2.0.113Z
Release 5.2.0.113Z

Change-Id: Ie3388755b8eff10599f50ca4547486d6734eae55
CRs-Fixed: 774533
2018-12-28 12:26:44 -08:00
Abhinav Kumar
c1059384a6 qcacld-3.0: Address checkpatch errors added as part of VHT & WMM CFG items
Address checkpatch errors added as part of VHT & WMM CFG items.

Change-Id: I2c3d5466264781cee8197778806a349cfbf06957
CRs-Fixed: 2359406
2018-12-28 12:26:44 -08:00
Ashish Kumar Dhanotiya
efae55b005 qcacld-3.0: 11d and 11h inis are not getting updated
As part of ini convergence, enabled_11d and enabled_11h inis are
moved to converged framework but these inis are not removed from
legacy initialization path which is overwritting these values
to constant values and thus these inis are not taking effect.
Morever in the converged code also these inis are getting
initialized with default values instead of the values given
from ini file.

To address this issue, remove the legacy initialization of these
inis and in the converged ini path initialize these values with
the values configured in the ini files.

Change-id: I3d02c0d543fd561f1fd948b5c2850a509b1104e7
CRs-fixed: 2371528
2018-12-28 12:26:39 -08:00
nshrivas
af44e4f081 Release 5.2.0.113Y
Release 5.2.0.113Y

Change-Id: Ia5f2761f0ef77488b447150ce07d73fcf60f7cd1
CRs-Fixed: 774533
2018-12-28 07:13:18 -08:00
Wu Gao
a67c3801b7 qcacld-3.0: Active tdls psoc enable and disable
Call tdls psoc enable/disable in HDD component enable/disable.

Change-Id: Ibdeb977ea474c57085d18d87bb589f0aa8063db8
CRs-Fixed: 2373030
2018-12-28 07:13:18 -08:00
nshrivas
3ca3db6088 Release 5.2.0.113X
Release 5.2.0.113X

Change-Id: Idd876038ae9aec285772c3c1fbbea7e6f435f4c6
CRs-Fixed: 774533
2018-12-28 04:38:10 -08:00
Wu Gao
c3e1ba9174 qcacld-3.0: Remove unused tdls api in hdd
Remove below unused tdls api in hdd:
- wlan_hdd_tdls_extctrl_config_peer
- wlan_hdd_tdls_extctrl_deconfig_peer
- wlan_hdd_cfg80211_tdls_scan
- wlan_hdd_cfg80211_send_tdls_discover_req

Change-Id: Ib6407bb18bc77e92e1cdd3b38d6ff3051f03b74c
CRs-Fixed: 2373063
2018-12-28 04:38:09 -08:00
nshrivas
835219f5a4 Release 5.2.0.113W
Release 5.2.0.113W

Change-Id: I1b2b926f47514b1cc69dd05bfd43933fe1311d26
CRs-Fixed: 774533
2018-12-28 02:23:01 -08:00
Manikandan Mohan
2bd0977920 qcacld-3.0: Move IBSS INI params to converged CFG component
Update qcacld driver to move IBSS INI params to converged CFG
component and cleanup HDD ini entriesi

Change-Id: Id8e4c0505113e556a8d64915a648f17fc5c0daf5
CRs-fixed: 2358493
2018-12-28 02:23:00 -08:00
Manikandan Mohan
d350c194b4 qcacld-3.0: Move offload ini params to converged CFG
Move misc offload ini params to converged CFG component and
cleanup HDD ini config.

Change-Id: I14b3d95dc1577d02230168d305d1d1c4c7fef2fd
CRs-fixed: 2358489
2018-12-28 02:22:55 -08:00
nshrivas
aed4e3d88d Release 5.2.0.113V
Release 5.2.0.113V

Change-Id: I364d1f35ebf9e421f3c19fcf887b9a47883adf8d
CRs-Fixed: 774533
2018-12-27 22:10:30 -08:00
Jianmin Zhu
d443946b3d qcacld-3.0: Fix scan info memory leak in csr scan callback
In specific scan result callback, before issue connect, check
whether need HW mode change. If HW mode change is unneeded or
return FAILED, need free roam profile in scan info after issue
connect.

Change-Id: I81b37babcbdf474a3cfa58edb8c21dbcbd467d6f
CRs-Fixed: 2373157
2018-12-27 22:10:29 -08:00
nshrivas
2aa3c8a096 Release 5.2.0.113U
Release 5.2.0.113U

Change-Id: I13ffa46d2a7ea2bcc6aa6342c56bb7c86ff9f77a
CRs-Fixed: 774533
2018-12-27 15:35:54 -08:00
Abhishek Singh
98278ceed1 qcacld-3.0: Initialize component configs with zero
Initialize all component configs structure sent to component
with zero to avoid any uninitialized values.

Change-Id: I4c1681e622d64641708e51590d283b82c8b0c82c
CRs-Fixed: 2373161
2018-12-27 15:35:54 -08:00
nshrivas
4cf4b94002 Release 5.2.0.113T
Release 5.2.0.113T

Change-Id: I7e51e02e75eba92503cbc144b7faab90a1a53f46
CRs-Fixed: 774533
2018-12-27 03:21:07 -08:00
nshrivas
8343a9b621 Release 5.2.0.113S
Release 5.2.0.113S

Change-Id: Ibb71b76d60d65dc8d7f574141d41a7b4caf7600c
CRs-Fixed: 774533
2018-12-27 01:05:11 -08:00
Manikandan Mohan
06d38d8c48 qcacld-3.0: Add 11K offload param to converged CFG component
Update driver to move 11K offload params to converged CFG component
and remove redundant entries from HDD config.

Change-Id: I7703ca5b23d5fa95a3b5dc5ccd9690771a4bf43d
CRs-fixed: 2357708
2018-12-27 01:05:06 -08:00
nshrivas
7165bc3ab0 Release 5.2.0.113R
Release 5.2.0.113R

Change-Id: I709362626614f5eb2cc11f49c18ffb004eebe8d7
CRs-Fixed: 774533
2018-12-26 22:45:53 -08:00
Jeff Johnson
6dcb44ac13 qcacld-3.0: Rename pAddPeriodicTxPtrnParams
Per the Linux coding style both mixed-case names and so-called
Hungarian notation are frowned upon, therefore replace the identifier
pAddPeriodicTxPtrnParams everywhere it occurs.

Change-Id: Id15f65781eb6ead662add691aa299df0ca60bc3f
CRs-Fixed: 2371907
2018-12-26 22:45:52 -08:00
Jeff Johnson
0536c17571 qcacld-3.0: Avoid memory leak when adding a TX pattern
In wma_process_add_periodic_tx_ptrn_ind() the buffer allocated for the
WMI parameter will be leaked if wma_find_vdev_by_addr() fails. To
avoid this, reorder the operations so that the buffer is not allocated
unless wma_find_vdev_by_addr() is successful.

Change-Id: Idbd180dcc1bcae5b71f6a56adcfa3b4a7e2595da
CRs-Fixed: 2371905
2018-12-26 22:45:48 -08:00
nshrivas
72f4849b0e Release 5.2.0.113Q
Release 5.2.0.113Q

Change-Id: I194da59a169de0da307ab370c706c7ce6c95c6e7
CRs-Fixed: 774533
2018-12-26 20:27:24 -08:00
Harprit Chhabada
253e36ad50 qcacld-3.0: Modify Kbuild to add new beacon header file
In wmi new file, wmi_unified_bcn_api.c is added.
Add this file in Kbuild.

Change-Id: I4fdbf041b53b5f1606d324714f01088742a9307f
CRs-Fixed: 2366772
2018-12-26 20:27:24 -08:00
nshrivas
080e92385c Release 5.2.0.113P
Release 5.2.0.113P

Change-Id: I47f9fc93f4324330847808caa692eebd1aae0f9e
CRs-Fixed: 774533
2018-12-26 18:01:08 -08:00
Rajeev Kumar
7b7bb3f440 qcacld-3.0: Add option to disable psoc idle timer
Add option to disable idle psoc timer by changing min
value to 0 and when 0 value is set in INI file then do
not start the psoc idle timer.

Change-Id: I6593f8ef9a15e1817215021c694c20ddf1aaa252
CRs-Fixed: 2370954
2018-12-26 18:01:08 -08:00
nshrivas
7646224d90 Release 5.2.0.113O
Release 5.2.0.113O

Change-Id: I6e2c42c7676182f55ef0f03112a18f14f6aee9dc
CRs-Fixed: 774533
2018-12-26 12:33:25 -08:00
Abhinav Kumar
3b724f5fa9 qcacld-3.0: Fix memleak in scan for ssid if scan req allocation fails
In scan for ssid if scan req allocation fails in csr_scan_for_ssid,
status is success and thus the memories are not freed for
scan_info.profile results in memleak.

Fix is to free mem for scan_info.profile in case if scan req allocation
fails in csr_scan_for_ssid.

Change-Id: I45ac2093bdd6d2d17b353f805a157dcea80a2623
CRs-Fixed: 2372803
2018-12-26 12:33:25 -08:00
nshrivas
f6ff31b081 Release 5.2.0.113N
Release 5.2.0.113N

Change-Id: I24442184bf3b3dc9ac4174e6e21ef917ebed7ad5
CRs-Fixed: 774533
2018-12-26 10:12:18 -08:00
Pragaspathi Thilagaraj
df0f544dab qcacld-3.0: Add new "roam_score_delta" and "roam_score_delta_bitmap" ini
Add two new WCNSS_qcom.ini values:
"roam_score_delta" - Factor by which the new roaming candidate
ap score should be greater than the score of the current
connected AP.
"roam_score_deltabitmap" - Roam triggers for which
roam_score_delta needs to be applied on the roam score of the
candidate AP.

Populate these two values to wlan_mlme_scoring_cfg from cfg
component in mlme_init_scoring_cfg. The values are sent to
firmware over the WMI TLV WMI_ROAM_AP_PROFILE in the below code
flow:
csr_update_score_params()->__lim_process_roam_scan_offload_req()
->wma_process_roaming_config()->wma_roam_scan_offload_ap_profile

Change-Id: I64f2a2328e485418547dae937c657f85225f1457
CRs-Fixed: 2367910
2018-12-26 10:12:18 -08:00
Pragaspathi Thilagaraj
ae7dc766b3 qcacld-3.0: BTM changes to add new WCNSS_qcom.ini to configure btm params
Add the following new WCNSS_qcom.ini value:
"prefer_roam_score_for_candidate_selection" - choose to sort the
candidates on roam score or preferred AP list send in the BTM
request frame by AP.
When this ini is set, host driver will
modify btm_offload_config bit 7 which will be read by firmware
to get this ini value.

“roam_candidate_validity_timer” - roam cache entries validity
timer. The candidates in the roam cache are valid only for this
time value. This value is sent to firmware over the wmi command
on the structure wmi_roam_offload_tlv_param

"btm_disassoc_timer_threshold" - Disassociation timer threshold
to wait after which the full scan for roaming can be started
after the AP has sent the disassoc imminent

Change-Id: I3ba5ba2182b1b6d722d9c315757332a1b3e62521
CRs-Fixed: 2369018
2018-12-26 10:12:14 -08:00
Pragaspathi Thilagaraj
39d616074e qcacld-3.0: Add new WCNSS_qcom.ini "bss_load_bss_sample_time"
Add new ini item "bss_load_sample_time" to send the monitor
time window for which the beacons are to be sampled to collect
the bss load information.
Also add changes to send bss load trigger parameters only during
RSO start during initial connection

Change-Id: I61d1f3745b56199838fc886f1ed3a05786653501
CRs-Fixed: 2372147
2018-12-26 10:12:06 -08:00
Jianmin Zhu
f2de84f371 qcacld-3.0: Involve VDEV SM when STA switch channel width
When found AP channel width change from beacon:
    1. Set channel switch in progress with reason
	LIM_SWITCH_CHANNEL_HT_WIDTH, Send
	WLAN_VDEV_SM_EV_FW_VDEV_RESTART.
    2. Call lim_ht_switch_chnl_params in
        mlme_vdev_restart_send if reason is
	LIM_SWITCH_CHANNEL_HT_WIDTH, set ht width switch
	callback.
    3. Send WLAN_VDEV_SM_EV_RESTART_RESP in
        wma_vdev_start_resp_handler and clear channel switch in
	progress.
    4. Send WMA_SWITCH_CHANNEL_RSP in mlme_vdev_start_continue.
    5. Send WLAN_VDEV_SM_EV_START_SUCCESS in ht width switch
	callback to up vdev.

Change-Id: I46651e9aa17ebe049e44179d3a8fcc5a214762be
CRs-Fixed: 2372486
2018-12-26 10:12:01 -08:00
nshrivas
4177948219 Release 5.2.0.113M
Release 5.2.0.113M

Change-Id: Ie3236c1eed226669deb3bdfa6bf56df1af1e061c
CRs-Fixed: 774533
2018-12-26 07:47:35 -08:00
Pragaspathi Thilagaraj
30251ecf5a qcacld-3.0: Handle the wmi event from WMI_ROAM_BLACKLIST_EVENTID
When firmware receives BTM request with disassoc imminent set,
the firmware should blacklist the AP and should not roam to it
for disassoc timer duration sent in the btm frame. The new wmi
event WMI_ROAM_BLACKLIST_EVENTID received from the firmware
carries the bssid to be blacklisted.

Handle this wmi event WMI_ROAM_BLACKLIST_EVENTID and update the
mac_ctx->roam.rssi_disallow_bssid with the bssid entries
received from firmware.

Change-Id: Ib41bcb91f123ce24b7d28407468e4597af7b5e1a
CRs-Fixed: 2369078
2018-12-26 07:47:34 -08:00
Rachit Kankane
2a3fd3981a qcacld-3.0: Enable FT_IEEE8021X and FT_PSK for Genoa
Enable FEATURE_WLAN_FT_IEEE8021X and FEATURE_WLAN_FT_PSK for Genoa as
targeted kernel version is 4.4.

Change-Id: I599be887b0021e7f53622c840dc76d5e3b47376a
CRs-Fixed: 2359886
2018-12-26 07:47:30 -08:00
Pragaspathi Thilagaraj
69f0b69ca9 qcacld-3.0: Send bss load trigger values to firmware
Introduce the following new WCNSS_qcom.ini values:
"enable_bss_load_roam_trigger"
"bss_load_threshold"
Send these values over the new wmi command,
WMI_ROAM_BSS_LOAD_CONFIG_CMDID if "enable_bss_load_roam_trigger"
is set to true.

This wmi command will be sent to firmware as part of the RSO
start or update config.

Change-Id: Ib2e21904bc7b8d87e5f51824d2694b90a3ac53f2
CRs-Fixed: 2367770
2018-12-26 07:47:25 -08:00
nshrivas
18ed10f6b9 Release 5.2.0.113L
Release 5.2.0.113L

Change-Id: Ie02ba50474ce7df3ac420a2b9b2e3aa8feb5761d
CRs-Fixed: 774533
2018-12-26 01:21:14 -08:00
Nachiket Kukade
c1bba2f146 qcacld-3.0: Set 5GHz channel for NDI start and remove the INI
NDI Create from upper layers also does a start bss with the
channel specified with INI "gnan_datapath_ndi_channel". It
defaults to channel 6 if no value is specified. For targets
with 2x2 DBS MAC Configuration this cannot happen without
a DBS mode change. Since this channel is not indicative of
the actual NDI channel, send a 5GHz NAN Social channel for
the BSS start to avoid the DBS mode change.

Send 5GHz NAN Social channel for NDI bss start and remove
the corresponding INI.

Change-Id: I40428f5eb4071f7c1d3934c6279316aad8082c03
CRs-Fixed: 2364619
2018-12-26 01:21:13 -08:00
nshrivas
52ffdd48b1 Release 5.2.0.113K
Release 5.2.0.113K

Change-Id: Ie38438d2dc1589cfe9ab1d9b0971a5c668b05d34
CRs-Fixed: 774533
2018-12-25 19:53:29 -08:00
Jeff Johnson
7acca0dd65 qcacld-3.0: Refactor GTX configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_GTX

Change-Id: Ie64612653b55a3c75d035612d7a4a06cf5a1e772
CRs-Fixed: 2371588
2018-12-25 11:36:52 -08:00
Jeff Johnson
0bdbb96857 qcacld-3.0: Refactor RSN_IE configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE

Change-Id: Ib513fce2a797a31fe9c81bcc3e142b61db972d30
CRs-Fixed: 2371587
2018-12-25 11:36:52 -08:00
Jeff Johnson
0a315915de qcacld-3.0: Refactor DISABLE_FILS configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS

Change-Id: I297dafc0282168fe71824fe1dd40635738d90bc8
CRs-Fixed: 2371586
2018-12-25 11:36:52 -08:00
Jeff Johnson
2502ddd2a3 qcacld-3.0: Refactor LATENCY_LEVEL configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL

Change-Id: I84ea1d02a91a08ac3c2bd8d020ecdc05176d1668
CRs-Fixed: 2371584
2018-12-25 11:36:52 -08:00
Jeff Johnson
320feebf04 qcacld-3.0: Refactor TOTAL_BEACON_MISS_COUNT configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT

Change-Id: I6d88ed8e258d9abba74b56907f9fe3a6fef8b473
CRs-Fixed: 2371583
2018-12-25 11:36:52 -08:00
Jeff Johnson
ae21be86d5 qcacld-3.0: Refactor ANT_DIV_SELFTEST_INTVL configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL

Change-Id: Idbc5c370913e80a9ad17c9eee3fc08bac7f3f31e
CRs-Fixed: 2371585
2018-12-25 11:36:51 -08:00
Jeff Johnson
ef427ad901 qcacld-3.0: Refactor ANT_DIV_SELFTEST configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST

Change-Id: Ic6aa338894c39f9d047d064c7752b8d3d4c9b042
CRs-Fixed: 2371582
2018-12-25 11:36:51 -08:00
Jeff Johnson
aa172229cf qcacld-3.0: Refactor ANT_DIV_CHAIN configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN

Change-Id: I0c63c70de5a7c607f55313acebb7c9fbf8e8ac9d
CRs-Fixed: 2371581
2018-12-25 11:36:51 -08:00
Jeff Johnson
72dc91e518 qcacld-3.0: Refactor RESTRICT_OFFCHANNEL configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL

Change-Id: I34d7a8a3526a80f5cdbe2bab4a663a0f41b6a4d7
CRs-Fixed: 2371580
2018-12-25 11:36:51 -08:00
Jeff Johnson
77177bc73b qcacld-3.0: Refactor ANT_DIV_PROBE_DWELL_TIME configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME

Change-Id: I43e07645a7d5ce242fd97d477764fdfb3cd6d1a5
CRs-Fixed: 2371579
2018-12-25 11:36:51 -08:00
Jeff Johnson
91f90ffa51 qcacld-3.0: Refactor ANT_DIV_SNR_DIFF configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF

Change-Id: I1fa384b98c276ab5cf09c96d8d47be9fc0a93acd
CRs-Fixed: 2371578
2018-12-25 11:36:51 -08:00
Jeff Johnson
3a25de856b qcacld-3.0: Refactor IGNORE_ASSOC_DISALLOWED configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED

Change-Id: I3f91195a7b26ea248d57f608936e79761890dc1b
CRs-Fixed: 2371577
2018-12-25 11:36:51 -08:00
Jeff Johnson
f9871e4c06 qcacld-3.0: Refactor ANT_DIV_ENA configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA

Change-Id: I7bd2652db54c71645a8292ab36775682e5a32250
CRs-Fixed: 2371575
2018-12-25 11:36:51 -08:00
Jeff Johnson
7766fd2d80 qcacld-3.0: Refactor CHANNEL_AVOIDANCE_IND configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND

Change-Id: Ie5252620221a77c82a03f74eaa14dfaa22b5476a
CRs-Fixed: 2371576
2018-12-25 11:36:51 -08:00
Jeff Johnson
7c5e6dc43e qcacld-3.0: Refactor TX_FAIL_COUNT configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT

Change-Id: I138b6cee0df42a8ca375092eccc103412544ba2a
CRs-Fixed: 2371574
2018-12-25 11:36:51 -08:00
Jeff Johnson
8fb9dedf60 qcacld-3.0: Refactor PROPAGATION_ABS_DELAY configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY

Change-Id: I789a46ab7baf2719de25c7e3c1531192c3e663a7
CRs-Fixed: 2371573
2018-12-25 11:36:50 -08:00
Jeff Johnson
982147462f qcacld-3.0: Refactor PROPAGATION_DELAY configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY

Change-Id: I3457a98592164d83db09f20b9e63d28bc8429055
CRs-Fixed: 2371572
2018-12-25 11:36:50 -08:00
Jeff Johnson
6b48a2f04a qcacld-3.0: Refactor CTRL_RETRY configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY

Change-Id: Id54483ced3505e28a5db3d05fb3afc4c0c7a1ff9
CRs-Fixed: 2371571
2018-12-25 11:36:50 -08:00
Jeff Johnson
0e8259ca6d qcacld-3.0: Refactor MGMT_RETRY configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY

Change-Id: I19af4fa260bd837b55dc0ac38ef7556e5f181c13
CRs-Fixed: 2371570
2018-12-25 11:36:50 -08:00
Jeff Johnson
b902100ff3 qcacld-3.0: Refactor AGG_RETRY configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY

Change-Id: Ibda27586afb6daf7745c2a98cb947a22975e0453
CRs-Fixed: 2371569
2018-12-25 11:36:50 -08:00
nshrivas
36d70db071 Release 5.2.0.113J
Release 5.2.0.113J

Change-Id: I2ade79f1e8c82166d00d37c4733991d0727bf9df
CRs-Fixed: 774533
2018-12-25 10:29:56 -08:00
Ashish Kumar Dhanotiya
5d781567c8 qcacld-3.0: Update center_freq_2 only for chwidth 80+80
Driver is updating center_frequency_2 in case of channel width
80MHz, 80+80MHz and 160MHz in channel change notification to
hostapd.
Since center_frequency_2 gets used only in case of 80+80 MHz,
update center_freq_2 only for 80+80 MHz.

Change-Id: If66f205eac0c81bbb7a2954c05b2e3d5618ff8f8
CRs-Fixed: 2372039
2018-12-25 10:29:55 -08:00
nshrivas
24d5b76649 Release 5.2.0.113I
Release 5.2.0.113I

Change-Id: Icab66aac5b23ffd10f9bcdeac11de088cb348ec1
CRs-Fixed: 774533
2018-12-25 05:20:57 -08:00
Ashish Kumar Dhanotiya
ff833227e5 qcacld-3.0: Reset recovery in progress flag during probe
Currently in driver at load time if probe fails because
of any reason, as part of FW down, recovery in progress
flag is getting set which is getting reset only in re-init
path. Now when probe starts again as this was load time
failure, this flag is set and there are checks at many
places for this flag in driver where we just don't proceed
further if this flag is set.
One such example of such incident is reg_process_master_chan_list
api where regulatory event is not getting processed because this
flag is set.

To resolve this issue reset recovery in progress flag during probe.
There is no harm in resetting the flag during probe as probe start
indicates that FW is ready.

Change-Id: Ib681870f869060f4511563aa3255aeb0eb8f9f12
CRs-Fixed: 2365416
2018-12-25 05:20:56 -08:00
Abhishek Singh
eb7751ad7b qcacld-3.0: Fix invalid session used in ap ecsa timeout api
If ecsa timeout is active and stop bss is received. During
pe delete session the timer is stopped and destroyed. But if
if timer has already expired and has posted the message to MC
thread the timer callback will be called with pe session which
is already deleted.

Fix this by checking if of pe session is valid in timeout API.
Also reset dfsIncludeChanSwIe during pe delete session.

Change-Id: I67d7e65c8136daaa04afa8b01b7019b0b8b36dae
CRs-Fixed: 2372278
2018-12-25 05:20:52 -08:00
Jeff Johnson
256002f959 qcacld-3.0: Converge on struct del_ts_param
The driver currently defines two different data structures to hold
Delete Tspec parameters:
- tDelTsParams
- struct del_ts_param

In this case having two different structures to provide the same
functionality is pointless. Furthermore, due to the way in which these
structures are used, there is an implicit requirement that they be
exactly identical. This approach is very fragile. To align with the
converged software architecture and to improve code maintainability
remove the legacy typedef and exclusively use the unified WMI
structure.

Change-Id: Ia70b1e17e4446259ff32107ffbc11646d078e1c0
CRs-Fixed: 2371915
2018-12-25 05:20:48 -08:00
nshrivas
03ff21d983 Release 5.2.0.113H
Release 5.2.0.113H

Change-Id: I021f70e54d3c358722e8b513655b522892a48167
CRs-Fixed: 774533
2018-12-25 02:59:11 -08:00
Jeff Johnson
9851fcc55b qcacld-3.0: Converge on struct add_ts_param
The driver currently defines two different data structures to hold
Add Tspec parameters:
- tAddTsParams
- struct add_ts_param

In this case having two different structures to provide the same
functionality is pointless. Furthermore, due to the way in which these
structures are used, there is an implicit requirement that they be
exactly identical. This approach is very fragile. To align with the
converged software architecture and to improve code maintainability
remove the legacy typedef and exclusively use the unified WMI
structure.

Change-Id: I298202748b8a0f6c2a9f8a36ca7cdee071d000bf
CRs-Fixed: 2371914
2018-12-25 02:59:10 -08:00
Jeff Johnson
cf2ec16b6a qcacld-3.0: Converge on struct delts_req_info
The driver currently defines two different data structures to hold
Delete Tspec Request parameters:
- tSirDeltsReqInfo
- struct delts_req_info

In this case having two different structures to provide the same
functionality is pointless. Furthermore, due to the way in which these
structures are used, there is an implicit requirement that they be
exactly identical. This approach is very fragile. To align with the
converged software architecture and to improve code maintainability
remove the legacy typedef and exclusively use the unified WMI
structure.

Change-Id: I0951c8da636bcbf81a335c0ea1250d721ca5c573
CRs-Fixed: 2371913
2018-12-25 02:59:06 -08:00
Jeff Johnson
5402441a01 qcacld-3.0: Converge on struct aggr_add_ts_param
The driver currently defines two different data structures to hold
aggregate AddTspec parameters:
- tAggrAddTsParams
- struct aggr_add_ts_param

In this case having two different structures to provide the same
functionality is pointless. Furthermore, due to the way in which these
structures are used, there is an implicit requirement that they be
exactly identical. This approach is very fragile. To align with the
converged software architecture and to improve code maintainability
remove the legacy typedef and exclusively use the unified WMI
structure.

Change-Id: I960bd79b04838ac675ad49e332a47671faccaaa7
CRs-Fixed: 2371912
2018-12-25 02:59:02 -08:00
nshrivas
706e9072d0 Release 5.2.0.113G
Release 5.2.0.113G

Change-Id: I2a78b41e77c0171d33499429a6f3fd5c83e09cbe
CRs-Fixed: 774533
2018-12-25 00:40:35 -08:00
Jeff Johnson
56471b94c5 qcacld-3.0: Converge on struct mac_tspec_ie
The driver currently defines two different data structures to hold
a TSpec IE field:
- tSirMacTspecIE
- struct mac_tspec_ie

In this case having two different structures to provide the same
functionality is pointless. Furthermore, due to the way in which these
structures are used, there is an implicit requirement that they be
exactly identical. This approach is very fragile. To align with the
converged software architecture and to improve code maintainability
remove the legacy typedef and exclusively use the unified WMI
structure.

Change-Id: I2e9da1d72dae3c4b0baa13306ee7ec127895a4f2
CRs-Fixed: 2371911
2018-12-25 00:40:34 -08:00
Jeff Johnson
312348f6ff qcacld-3.0: Converge on struct mac_ts_info
The driver currently defines two different data structures to hold
a TS Info field:
- tSirMacTSInfo
- struct mac_ts_info

In this case having two different structures to provide the same
functionality is pointless. Furthermore, due to the way in which these
structures are used, there is an implicit requirement that they be
exactly identical. This approach is very fragile. To align with the
converged software architecture and to improve code maintainability
remove the legacy typedef and exclusively use the unified WMI
structure.

Change-Id: I95bcb4364ee7e3108137c8ceeedf05c7a53bc393
CRs-Fixed: 2371910
2018-12-25 00:40:29 -08:00
Jeff Johnson
92bf60e67a qcacld-3.0: Rename lim_process_ft_aggr_qo_s_rsp()
The function name lim_process_ft_aggr_qo_s_rsp() is mangled,
originally produced by automated camelCase conversion. Rename to
lim_process_ft_aggr_qos_rsp() to make more sense.

Change-Id: I8ca5888594d4384020d14804524f9a669ae8de08
CRs-Fixed: 2371909
2018-12-25 00:40:25 -08:00
nshrivas
655fbbff9d Release 5.2.0.113F
Release 5.2.0.113F

Change-Id: Ib30ce4977f59a085b50168a481b7c2171ff92dee
CRs-Fixed: 774533
2018-12-24 22:29:37 -08:00
Zhang Qian
e33b4b94f8 qcacld-3.0: Clean up OCB legacy code
Clean up OCB legacy code after feature componentization.

CRs-Fixed: 2177619
Change-Id: Ib8a26c9e67e78e53f8b2b4929276060687254ea1
2018-12-24 22:29:37 -08:00
gaurank kathpalia
ece50259ec qcacld-3.0: Set passive scan as false in ACS scan req
Currently the driver doesn't set the passive scan req flag
as false which results in passive scan, and thus introduces
latency.

Fix is to set passive scan as false in ACS scan req.

Change-Id: I1274a4ccb9d99d568c32aeea1a65e4637a82b9c8
CRs-Fixed: 2372103
2018-12-24 22:29:32 -08:00
nshrivas
ab50883975 Release 5.2.0.113E
Release 5.2.0.113E

Change-Id: I561d723e67d5d394d0a4d75c0c68509c90b5157e
CRs-Fixed: 774533
2018-12-24 12:15:45 -08:00
Ashish Kumar Dhanotiya
bf00f82427 qcacld-3.0: Validate all channels for avoid_freq channel list
In avoid frequency vendor command, only data validation is
being done but each individual channel is not getting validated
which may lead to an array out of bound access as the array
which is used to cache the channels has the size of valid number
of channels.

To avoid this, add a check to validate each channel before
updating the unsafe channel list array.

Change-ID: I433e9297207869e43d1a6ee2d621bded2f562656
CRs-Fixed: 2341890
2018-12-24 12:15:44 -08:00
nshrivas
488ac6dba7 Release 5.2.0.113D
Release 5.2.0.113D

Change-Id: Ibbcdc79de4664b4637f2db6362774874337e74a1
CRs-Fixed: 774533
2018-12-24 10:06:35 -08:00
nshrivas
b5e5d84ee2 Release 5.2.0.113C
Release 5.2.0.113C

Change-Id: Id90399d390f4287f81cbf1de3dc2bb6dc6f73fce
CRs-Fixed: 774533
2018-12-24 03:32:38 -08:00
Yeshwanth Sriram Guntuka
14ab04c72f qcacld-3.0: Add host support for db2dbm RSSI changes
Add host support for db2dbm RSSI changes. Firmware
indicates this capability when underlying hardware
has RSSI reporting feature. Based on this capability
host will know if firmware sends SNR or RSSI. If no
capablity is present then host will convert SNR to
rssi using a fixed offset of -96. If capability is
present host will directly use the rssi as it is.

Change-Id: I9058f16c6280d466feb96cf88a8a0d8cd7b02032
CRs-Fixed: 2364023
2018-12-24 03:32:38 -08:00
nshrivas
2cd4c0a291 Release 5.2.0.113B
Release 5.2.0.113B

Change-Id: Ie6ff89c599989b8b45d7b3ebc40a5c506dc15b51
CRs-Fixed: 774533
2018-12-24 00:10:52 -08:00
Arif Hussain
b6ec264531 qcacld-3.0: Add null pointer validation in wma_ll_stats_evt_handler()
Add validation code in wma_ll_stats_evt_handler().

Change-Id: I7d0331ce18b16650540724917194defaf65aed10
CRs-Fixed: 2348596
2018-12-24 00:10:51 -08:00
nshrivas
9f4da456d1 Release 5.2.0.113A
Release 5.2.0.113A

Change-Id: If8bfe386ca215027b81e856f131ffc15be77eb75
CRs-Fixed: 774533
2018-12-23 21:58:40 -08:00
hqu
34a79332a2 qcacld-3.0: Fix seven memory leak in function wma_hold_req_timer
In wma_hold_req_timer(), if wma_crash_on_fw_timeout()
is true, SSR will be triggered, but allocated memory
such as user_data, params and resp are not freed,
result in memory leak.

Fix is to still do wma_send_msg_high_priority() when
wma_crash_on_fw_timeout()is true, so allocated memory
can be freed.

Change-Id: I798bb864e8ad6dc7eb67401a820dc0896892e65e
CRs-Fixed: 2370594
2018-12-23 21:58:40 -08:00
Rakshith Suresh Patkar
c107967468 qcacld-3.0: Use new accessor macro for map_index in qdf_nbuf_cb
The existing accessor macro NBUF_MAP_ID is obsoleted due to
restructuring of qdf_nbuf_cb.

Use new macro QDF_NBUF_CB_RX_MAP_IDX to access map_index.

Change-Id: I23650781cdd770f25b72a0a5fe55acc12d71cb64
CRs-Fixed: 2370724
2018-12-23 21:58:36 -08:00
nshrivas
d8f7c75e12 Release 5.2.0.113
Release 5.2.0.113

Change-Id: If8f2eb1e4764016049712c40ea528b5efb35731b
CRs-Fixed: 774533
2018-12-23 13:59:28 -08:00
Jeff Johnson
f3827507dd qcacld-3.0: Refactor NON_AGG_RETRY configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY

Change-Id: I607335f5975d45f2a38503cbaaa557e02818cbdb
CRs-Fixed: 2371568
2018-12-23 13:59:28 -08:00
nshrivas
218a444821 Release 5.2.0.112Z
Release 5.2.0.112Z

Change-Id: Icd7dc733ce712d3db5ebb0a70576d6c4abe4ef55
CRs-Fixed: 774533
2018-12-23 11:37:50 -08:00
Jeff Johnson
47e2e8401b qcacld-3.0: Refactor GUARD_TIME configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME

Change-Id: I3395b39fd150daba2383998d9bef1a58ac61fd4d
CRs-Fixed: 2371567
2018-12-23 11:37:50 -08:00
Jeff Johnson
f15ede01fa qcacld-3.0: Refactor STATS_AVG_FACTOR configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR

Change-Id: Ife9ca5b48a3b64b3de674873a2faf2926df4e60a
CRs-Fixed: 2371566
2018-12-23 11:37:44 -08:00
Jeff Johnson
1feb8a62af qcacld-3.0: Refactor QPOWER configuration
One of the HDD functions with the highest cyclomatic complexity is
__wlan_hdd_cfg80211_wifi_configuration_set(). In order to reduce the
complexity there is a plan to replace the inline attribute handling
with a vtable-based approach.

As part of that goal refactor the following independent attribute
handling into a separate function and add that function to the vtable:
- QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER

Change-Id: Ic10dd8ef706cb73028fe8523dbb6e0cc0a15ac4a
CRs-Fixed: 2371565
2018-12-23 11:37:39 -08:00