Commit Graph

12105 Commits

Author SHA1 Message Date
Jeff Johnson
eb4368a044 qcacld-3.0: Refactor WE_SET_MAX_ASSOC processing
Currently the HDD function with the highest cyclomatic complexity is
__iw_setint_getnone(). The handing of WE_SET_MAX_ASSOC has a
complexity greater than 1, so refactor that logic into a separate
function to help reduce the complexity of __iw_setint_getnone().

Change-Id: Ie24b589f2b32ea495cfaba7a600ef77e10d20f9e
CRs-Fixed: 2336978
2018-10-22 19:47:12 -07:00
Jeff Johnson
daf2e6a888 qcacld-3.0: Refactor WE_SET_POWER processing
Currently the HDD function with the highest cyclomatic complexity is
__iw_setint_getnone(). The handing of WE_SET_POWER has a complexity
greater than 1, so refactor that logic into a separate function to
help reduce the complexity of __iw_setint_getnone().

Change-Id: I4a2c08faf7ec88ca35a353c778fa0269f35eb76d
CRs-Fixed: 2336977
2018-10-22 19:47:08 -07:00
nshrivas
a2949089e8 Release 5.2.0.102T
Release 5.2.0.102T

Change-Id: I1b48421c8b5926ca5832e49392bf5f1c95d55d65
CRs-Fixed: 774533
2018-10-22 18:23:45 -07:00
Jeff Johnson
297a398c27 qcacld-3.0: Refine the SME NAN public interface
Update the SME NAN public interface as follows:
1) Move the sme_nan_event() prototype to nan_api.h
2) Fully document the interfaces (not the implementations)
3) Utilize the new mac_handle_t abstraction
4) Clean up local coding style violations

Change-Id: I7ae6fff6e4a44570463383e9f6f50731fa594192
CRs-Fixed: 2335643
2018-10-22 18:23:44 -07:00
nshrivas
1a662f9e97 Release 5.2.0.102S
Release 5.2.0.102S

Change-Id: I9bd8544606acdd4cbd1c9332e20266405a860344
CRs-Fixed: 774533
2018-10-22 15:06:38 -07:00
Venkata Sharath Chandra Manchala
1619b73955 qcacld-3.0: Add config parameter to compile HALhwio.h file
Add SCALE_INCLUDES CONFIG parameter to compile HALhwio.h for QCA6390
as msmhwio.h file is now deprecated.

Change-Id: I4a883101a0ba15d2ab1efcd7bde312e22099a693
CRs-Fixed: 2332023
2018-10-22 15:06:37 -07:00
nshrivas
1e4e68ef8b Release 5.2.0.102R
Release 5.2.0.102R

Change-Id: I378ce96f8722a3341ed11f348c46a6eb5c64e72e
CRs-Fixed: 774533
2018-10-22 13:20:17 -07:00
Sandeep Puligilla
ec0dd9a38c qcacld-3.0: Remove cfg.txt file
cfg.txt content was moved to cfg_proc_msg.c file due
to change in process to populate the CFG items.
Remove unused cfg.txt file.

Change-Id: I2f942b1dcb11a98a75a4c968d79f9ceef44172fa
CRs-Fixed: 2336129
2018-10-22 13:20:16 -07:00
nshrivas
580fd886ab Release 5.2.0.102Q
Release 5.2.0.102Q

Change-Id: Ib15c32824d2a332cd38f40102624450f9872776e
CRs-Fixed: 774533
2018-10-22 07:00:02 -07:00
Bala Venkatesh
ca29fbceaa qcacld-3.0: Delete all peers in TDLS component
In case of heartbeat failure or deauth from AP,
From lim Del sta requests are sent to FW and with response
required false, Since del sta response is not received
TDLS component is not notified to reset the local
tdls component structures and also upper layers are
notified of this peer deletion.

Change-Id: Ica0b150df7646af60868b2806432795896c75bcd
CRs-Fixed: 2334711
2018-10-22 07:00:01 -07:00
nshrivas
5fbf54f574 Release 5.2.0.102P
Release 5.2.0.102P

Change-Id: I9a5ddf8219f141ce315bc7054071f666d3b5f3e2
CRs-Fixed: 774533
2018-10-22 05:25:50 -07:00
gaurank kathpalia
837f620084 qcacld-3.0: Add wps params to mlme component
Add wps params in respect to CFG
convergence

Change-Id: I462e3e1b3f60c7ec65a7cdf5e3bc7b69c28a5d79
CRs-Fixed: 2326841
2018-10-22 05:25:49 -07:00
nshrivas
8e058a7061 Release 5.2.0.102O
Release 5.2.0.102O

Change-Id: I42e142d90ea3ef7995094314abce34f21c4392b1
CRs-Fixed: 774533
2018-10-22 03:52:12 -07:00
Wu Gao
d7dd6e4157 qcacld-3.0: Rename some ucfg APIs of PMO
To keep names of PMO ucfg APIs consistent, change some of them from
"pmo_ucfg_xxx" to "ucfg_pmo_xxx".

Change-Id: I77165be8c5c408c3f91f84a477c15be1c6ea15e8
CRs-Fixed: 2334109
2018-10-22 03:52:11 -07:00
Dustin Brown
53f51e7c9b qcacld-3.0: Remove wlan_hdd_get_session_type()
wlan_hdd_get_session_type() implements a subset of
hdd_nl_to_qdf_iface_type(). Remove wlan_hdd_get_session_type() and use
hdd_nl_to_qdf_iface_type() instead to reduce duplicate code.

Change-Id: I9186ff28def73edffa027d454540543c8619144d
CRs-Fixed: 2336080
2018-10-22 03:52:07 -07:00
nshrivas
83b8a3540f Release 5.2.0.102N
Release 5.2.0.102N

Change-Id: I4195d128ede013b2b6a744b196b76f6d996f972a
CRs-Fixed: 774533
2018-10-22 01:02:51 -07:00
Min Liu
74a1a5032f qcacld-3.0: HDD: Remove excessive logs - Part 1
Remove log in callers of the following function:

qdf_mem_malloc()

Change-Id: I33019772f0c9289eb7e770cfa98739e0260cca81
CRs-Fixed: 2331653
2018-10-22 01:02:51 -07:00
nshrivas
f13a016797 Release 5.2.0.102M
Release 5.2.0.102M

Change-Id: I4cd84034bb120524a38ad910df61e74fe59ca18b
CRs-Fixed: 774533
2018-10-21 23:14:17 -07:00
Dustin Brown
458027cef4 qcacld-3.0: Remove hdd_device_mode_to_string()
qdf_opmode_str() has recently been added for converting a vdev operating
mode into a human readable string. Historically, HDD has used
hdd_device_mode_to_string() for this purpose. Replace
hdd_device_mode_to_string() with qdf_opmode_str() such that there is one
function for mapping vdev operating mode to human readable string.

Change-Id: I38880f915b617b5c02b2029762eacdf6ef8bac15
CRs-Fixed: 2336065
2018-10-21 23:14:16 -07:00
nshrivas
ce5df07519 Release 5.2.0.102L
Release 5.2.0.102L

Change-Id: I42f8b5a10cfdeaeddfc9d1f8b88f6efa06a59945
CRs-Fixed: 774533
2018-10-19 16:53:15 -07:00
Dustin Brown
61cc393b74 qcacld-3.0: Convert open adapters to vtable map
Using a switch case as a method for mapping an enumerated value to a
handler function has the down side of allowing future changes to pollute
the switch case with additional logic. It also tends to lead to high
cyclomatic complexity. Avoid these issues in hdd_open_adapters_for_mode
by converting the switch case to a vtable.

Change-Id: If91cbaf1e0ed561122b599550f3c450ec47eda31
CRs-Fixed: 2335970
2018-10-19 16:53:14 -07:00
Dustin Brown
a2deeb7047 qcacld-3.0: Unify open_interfaces and register_req_mode
The logic for creating the initial vdevs for a given driver mode is
implemented in two different functions: hdd_open_interfaces() and
hdd_register_req_mode(). This had lead to some duplication between the
two implementations. Instead, unify both functions so the duplicate code
can be removed.

Change-Id: I9a1f74ca14d3d4cda8d05bf6b000038770a1ea05
CRs-Fixed: 2335969
2018-10-19 16:53:10 -07:00
nshrivas
8a437f1a68 Release 5.2.0.102K
Release 5.2.0.102K

Change-Id: Ice371f334d7b7fb1520edfc8be331db200c83b01
CRs-Fixed: 774533
2018-10-19 13:09:51 -07:00
Jeff Johnson
7272ea7cc0 qcacld-3.0: Refine the extscan stop scan logic
Make the following updates to the extscan stop scan logic:
1) Exclusively use the Unified WMI data structures.
2) Update the HDD<=>SME interface to enforce the contract that SME
   must not make any assumptions about the buffers provided by HDD.

Change-Id: Ie4a693b4a91d728a075cffad3ee368b22d9c5b2a
CRs-Fixed: 2335647
2018-10-19 13:09:50 -07:00
nshrivas
a8d1740222 Release 5.2.0.102J
Release 5.2.0.102J

Change-Id: Ia5f17c8d6ea9cdf6d8ec3c2a990a898fc578c263
CRs-Fixed: 774533
2018-10-18 18:41:44 -07:00
Dustin Brown
686d3030e2 qcacld-3.0: Change dot11p_mode to enumerated type
dot11p_mode is currently represented with a uint8_t type, despite an
appropriate enumerated type being available. Change the field's type to
the more restrictive 'enum dot11p_mode' instead of uint8_t.

Change-Id: I847ce0901297b0a3e4312e8ce4124a886320f174
CRs-Fixed: 2335575
2018-10-18 18:41:44 -07:00
nshrivas
37ec52267e Release 5.2.0.102I
Release 5.2.0.102I

Change-Id: Iaf5f1628e200b1a7ce1fa1521913040bb863b80f
CRs-Fixed: 774533
2018-10-18 14:22:19 -07:00
Jeff Johnson
dab5860bf9 qcacld-3.0: Refine the extscan start scan logic
Make the following updates to the extscan start scan logic:
1) Exclusively use the Unified WMI data structures.
2) Update the HDD<=>SME interface to enforce the contract that SME
   must not make any assumptions about the buffers provided by HDD.
3) Address a multitude of checkpatch issues

Change-Id: I68dc988fafb7e14b2b80d1007adf614ddff284e2
CRs-Fixed: 2335045
2018-10-18 14:22:18 -07:00
nshrivas
54ecf6c7d5 Release 5.2.0.102H
Release 5.2.0.102H

Change-Id: I00582cda13e6de5ff77a630861e11e1cd2c63da3
CRs-Fixed: 774533
2018-10-18 08:13:26 -07:00
Jianmin Zhu
0923660ec1 qcacld-3.0: Implement LFR2 and reassoc for new vdev SM
LFR2 uses ft reassoc, whose process is different from general
connect.

1.ft reassoc, normal reassoc and assoc, all of 3 need deliver
event WLAN_VDEV_SM_EV_START to SM,  but need different handler.

2.ft reassoc send vdev start when add bss, not switch channel.

Change-Id: Ieefbcf0a28867be3c8a86d9a912143857c54fe06
CRs-Fixed: 2334194
2018-10-18 08:13:25 -07:00
nshrivas
80a7a3f7c0 Release 5.2.0.102G
Release 5.2.0.102G

Change-Id: I0ee6f5d8e0cc2c5eee2937d519eb1393093f594f
CRs-Fixed: 774533
2018-10-18 02:16:55 -07:00
Jeff Johnson
43837af883 qcacld-3.0: Replace new instance of tHalHandle in wlan_hdd_main
Previously "qcacld-3.0: Use mac_handle_t in wlan_hdd_main" (Change
If9ddbe0935d859d4c71dc11576cd7062a715b3e9) replaced all instances of
tHalHandle with mac_handle_t in wlan_hdd_main. But subsequently change
"qcacld-3.0: Allow Setting Channel&Bandwidth in STA mode" (Change
Ie9ffc701d93ed1c050375dd56151b7a0da69cdce) introduced a new instance,
so replace it as well.

Change-Id: I01e67401b0eb99b242a7a0b0d161696cbe2fba79
CRs-Fixed: 2335139
2018-10-18 02:16:54 -07:00
nshrivas
f214373311 Release 5.2.0.102F
Release 5.2.0.102F

Change-Id: I7c40f866274eb77b4e6c3e69bb59f07e5a50902c
CRs-Fixed: 774533
2018-10-18 00:21:04 -07:00
Dustin Brown
194aeca1bf qcacld-3.0: Move p2p work around to change_iface
hdd_change_adapter_mode() contains a work around for an issue with
userspace requesting station mode on a p2p adapter, expecting the wlan
driver to instead change the adapter to p2p-device mode. Hoist this work
around to the caller, __wlan_hdd_cfg80211_change_iface, so the rest of
the code doesn't need to be aware of it.

Change-Id: Ic71d6d99b1df7339dda892adcfb27605fa8dfc59
CRs-Fixed: 2332798
2018-10-18 00:21:03 -07:00
Dustin Brown
63fe49239f qcacld-3.0: Factor out common parts in change_iface
Some common parts of __wlan_hdd_cfg80211_change_iface are repeated in
multiple places. Factor out these common sections to reduce redundant
code and ensure they stay synchronized in the future.

Change-Id: I80d47f1c9a14342f777bfc169d85287a3e709a58
CRs-Fixed: 2332780
2018-10-18 00:20:59 -07:00
Dustin Brown
56377e1ebe qcacld-3.0: Prefer QDF_OPMODE in __wlan_hdd_cfg80211_change_iface
__wlan_hdd_cfg80211_change_iface() currently uses QDF_OPMODE and
nl80211_iftype relatively interchangeably, which forces the reader to
mentally convert between the two as they go and disperses the real
conversion of one into the other throughout the code. Instead, do the
conversion from nl80211_iftype to QDF_OPMODE once up front. This way
usage can be consistent and more easily followed.

Change-Id: Ie578865c3724e4a85bd249352288afac10928bb4
CRs-Fixed: 2331969
2018-10-18 00:20:52 -07:00
nshrivas
e4a74b4bb4 Release 5.2.0.102E
Release 5.2.0.102E

Change-Id: Iba336593b02b3073ca41324e793b1cb08807bd05
CRs-Fixed: 774533
2018-10-17 22:25:56 -07:00
Abhishek Singh
15997c7db6 qcacld-3.0: properly update vht caps in mlme vht caps
In mlme_update_vht_cap, local structure is updated instead of
mlme global structure for vht caps and thus the mlme vht caps
contains only the default values.

Fix this by updating mlme vht caps in mlme_update_vht_cap.

Change-Id: Ifa3d30ae202f1a4b6361db1a504861918f7ebf2c
CRs-Fixed: 2334955
2018-10-17 22:25:56 -07:00
nshrivas
53a21d1088 Release 5.2.0.102D
Release 5.2.0.102D

Change-Id: I44174e915f99c14a15af599f21326ddb72cdb9a7
CRs-Fixed: 774533
2018-10-17 19:37:24 -07:00
Manikandan Mohan
4cc1c5a4d0 qcacld-3.0: Fix VDEV SM for NAN data path interface
NAN data path interface (NDI) VDEV uses AP MLME callbacks for
VDEV state machine but some state actions are no op for NDI mode.
Update lim module to transition from NDI from VDEV START state to
VDEV up state and bypass beacon update and VDEV up WMI for NDI mode.

CRs-fixed: 2330270
Change-Id: I648811b41020a4e09aa6c7c436ec2c9693c51d97
2018-10-17 19:37:23 -07:00
nshrivas
5eef577f04 Release 5.2.0.102C
Release 5.2.0.102C

Change-Id: I26dbf3eb0c5e6a7b639e0f50f11f56e2498339dc
CRs-Fixed: 774533
2018-10-17 17:42:18 -07:00
Mohit Khanna
cabf5e79d8 qcacld-3.0: Fixes for IPA enablement for lithium/Hasting
Following changes were made -

- Replace #ifdef CONFIG_LITHIUM with QCA_WIFI_QCA6290 and QCA_WIFI_QCA6390
  flags. CONFIG_LITHIUM is not defined to be used within the code, the
  individual chip specific flags are defined, hence use those.

- Pass IPA enable/disable ini configuration to DP layer

Change-Id: If0bfdaf408b06a922923e998c0c6ad2157e2c080
CRs-Fixed: 2328711
2018-10-17 17:42:18 -07:00
Vignesh Viswanathan
657615cc53 qcacld-3.0: Free sta_self_wmi_rsp if WMA_DELETE_STA_REQ is not queued
In wma_self_peer_remove, sta_self_wmi_rsp is allocated and sent as
params to wma_fill_hold_req for WMA_DELETE_STA_REQ. However, if
wma_fill_hold_req fails and returns NULL, the memory allocated for
sta_self_wmi_rsp is not freed leading to memory leak.

Free sta_self_wmi_rsp in the error handling case for wma_fill_hold_req
in wma_self_peer_remove.

Change-Id: I8df840b39284e00a8c8be114c0fec13c3c199fc6
CRs-Fixed: 2334580
2018-10-17 17:42:14 -07:00
nshrivas
0c36853b51 Release 5.2.0.102B
Release 5.2.0.102B

Change-Id: I6d60cb9c4a8deaa63701e583163a3817e3ef225b
CRs-Fixed: 774533
2018-10-17 14:28:02 -07:00
Krunal Soni
80d0f27518 qcacld-3.0: Move gEnableStaConnectionIn5Ghz from HDD to Plcy manager
As part of new INI/CFG model, move gEnableStaConnectionIn5Ghz
ownership from HDD to policy manager.

CRs-Fixed: 2324393
Change-Id: I894467bab4b0bddf309463802b98904ef1150536
2018-10-17 14:28:02 -07:00
Krunal Soni
6871374b9d qcacld-3.0: Move gEnableMCCAdaptiveScheduler from HDD to Plcy manager
As part of new INI/CFG model, move gEnableMCCAdaptiveScheduler
ownership from HDD to policy manager.

CRs-Fixed: 2324393
Change-Id: Ib86004c4ee753b37b392de69551c777e3e9011de
2018-10-17 14:27:58 -07:00
Krunal Soni
13b50f8014 qcacld-3.0: Move DBS/vdev/channel selection related INIs to plcy mgr
As part of new INI/CFG model, move dbs_selection_policy,
vdev_priority_list, channel_select_logic_conc INIs'
ownership from HDD to policy manager.

CRs-Fixed: 2324393
Change-Id: I8b38916d92931ef9cd1727481740bc61cad8f808
2018-10-17 14:27:54 -07:00
Krunal Soni
d7ef8637a0 qcacld-3.0: Move gEnableCustomConcRule1 (/2) from HDD to Plcy manager
As part of new INI/CFG model, move gEnableCustomConcRule1 and
gEnableCustomConcRule2 ownership from HDD to policy manager.

CRs-Fixed: 2324393
Change-Id: I11952819a6ba5581de51d9b58969ff02d582f233
2018-10-17 14:27:50 -07:00
Krunal Soni
83d4960206 qcacld-3.0: Move gMaxConcurrentActiveSessions from HDD to Plcy manager
As part of new INI/CFG model, move gMaxConcurrentActiveSessions
ownership from HDD to policy manager.

CRs-Fixed: 2324393
Change-Id: Iac1451fc457d9bceee73596affdae54895917040
2018-10-17 14:27:47 -07:00
Krunal Soni
e71838de7e qcacld-3.0: Move gSystemPref from HDD to Policy manager
As part of new INI/CFG model, move gSystemPref ownership
from HDD to policy manager.

CRs-Fixed: 2324393
Change-Id: Ia586896ea55c6e71d8dcff705bf0e74879931dbb
2018-10-17 14:27:43 -07:00