Commit Graph

4446 Commits

Author SHA1 Message Date
Kiran Kumar Lokere
7d6e4c9dc1 qcacld-3.0: crypto convergence support for SET KEY
Make changes to the legacy code to support the
new SET KEY converged infrastructure.

Change-Id: Ic5359e3a9035ac5f2a937a9a1013fa92764cda9d
CRs-Fixed: 2358795
2019-01-08 20:24:43 -08:00
Harprit Chhabada
efea6f517c qcacld-3.0: Clean up a policy manager CFG item
Clean WNI_CFG_ENABLE_MCC_ADAPTIVE_SCHED CFG item of policy
manager.

Change-Id: Ib73ea3385bedf3a8d35e60f3672950e27b8ed93d
CRs-Fixed: 2373863
2019-01-08 11:42:54 -08:00
hangtian
a7938f8849 qcacld-3.0: Fix implicit tdls connection issue
Fix implicit tdls connection issue. Correct usage of qdf_mem_set.
DUT could receive multicast frames after tdls connection tear down,
add check condition of frames with multicast dest address in
tdls_update_rx_pkt_cnt.

Change-Id: Ia1d7bbf2c129e9aebc98f7fcdea263b745c221ec
CRs-Fixed: 2375043
2019-01-08 07:28:10 -08:00
Manikandan Mohan
5dba1c70c3 qcacld-3.0: Use default value of ini items if not initialized
If FW offload cfg object is not initialized before invoking
the ucfg APIs use the cfg defaults for the values.

Change-Id: Ibbfe22a833ab217f670058e504ec80971c98e049
CRs-fixed: 2376983
2019-01-08 05:17:08 -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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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