Commit Graph

4374 Commits

Author SHA1 Message Date
Jeff Johnson
3d4f64cc60 qcacld-3.0: Refactor SCAN_ENABLE 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_SCAN_ENABLE

Change-Id: Ia9e97c19c26d7fbdaed0ddaec2def1bdc78ae34c
CRs-Fixed: 2371564
2018-12-23 11:37:34 -08:00
Jeff Johnson
9381d0329f qcacld-3.0: Refactor LRO 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_LRO

Change-Id: I5627292f84cefe79b1a89d1be84cea5d8a7c6cc1
CRs-Fixed: 2371563
2018-12-22 07:45:00 -08:00
Jeff Johnson
6db916208e qcacld-3.0: Refactor LISTEN_INTERVAL 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_LISTEN_INTERVAL

Change-Id: I61b679c4fda4b803a8721054694102c7af46fc88
CRs-Fixed: 2371562
2018-12-22 07:44:54 -08:00
Jeff Johnson
bcaeafb9f6 qcacld-3.0: Refactor MODULATED_DTIM 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_MODULATED_DTIM

Change-Id: Iebadf68ec920ab4198feb5b8ee99ec3d8b961173
CRs-Fixed: 2371561
2018-12-22 07:44:49 -08:00
Jeff Johnson
7f4fd70da6 qcacld-3.0: Refactor FINE_TIME_MEASUREMENT 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_FINE_TIME_MEASUREMENT

Change-Id: I8b9914936ed9077b487bb8092246a64a6c5f914b
CRs-Fixed: 2371560
2018-12-22 07:44:44 -08:00
Jeff Johnson
522464b830 qcacld-3.0: Use vtable for CONFIG_SCAN_DEFAULT_IES
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.

The QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES attribute handling is
already in a separate function, so add that function to the vtable
instead of calling it directly.

Change-Id: Id77d491ce90bbc1d2a0569af37bba55aeeaa0295
CRs-Fixed: 2371559
2018-12-22 07:44:39 -08:00
Jeff Johnson
b48efe27f1 qcacld-3.0: Add wifi config vtable support
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 the first step of this refactoring add the actual vtable
infrastructure.  Later changes will refactor the attribute handling
and populate the vtables.

Change-Id: If79fc61f84bf17a39e300c18681961a4a0e01408
CRs-Fixed: 2371558
2018-12-22 07:44:34 -08:00
Nachiket Kukade
089b98361e qcacld-3.0: Handle concurrencies with NAN Discovery
Use policy manager to set and update the NAN Discovery
related connection info. Disable NAN Discovery
explicitly for unsupported concurrencies.

Handle concurrencies with NAN Discovery interface.

Change-Id: I8c9450b034983ef0402fdc878d8b525bedac9f0b
CRs-Fixed: 2358180
2018-12-22 02:54:03 -08:00
Rajeev Kumar
acb73d0200 qcacld-3.0: Reject con mode handler after driver is unloaded
Reject con mode handler after driver is unloaded. Proper order is
Driver needs to be re-loaded again and then con mode change handler
needs to be invoked.

Change-Id: Ibc3dfbae1ba3953af537f2d5f50748598a4fe3e1
CRs-Fixed: 2369284
2018-12-21 19:23:36 -08:00
Jeff Johnson
3bdd76217b qcacld-3.0: Remove hdd_wmm_get_uapsd_mask()
Change Idf75957707c3799add0c59fdd532fe0c24d27117 ("qcacld-3.0: Remove
obsolete STA support for SIOCSIWESSID") removed the last client of
hdd_wmm_get_uapsd_mask(). Since this function is now unused, remove
it.

Change-Id: I28b1909690e1f1c813f4169b6429a7faecdac7d6
CRs-Fixed: 2371200
2018-12-21 15:15:33 -08:00
Jeff Johnson
40edc6531b qcacld-3.0: Remove hdd_wlan_set_ht2040_mode()
Function hdd_wlan_set_ht2040_mode() is obsolete, so remove it.

Change-Id: Ie5fef47eda8eb92442bb01f87c6e09d7d0c02b72
CRs-Fixed: 2371199
2018-12-21 15:15:29 -08:00
Kiran Kumar Lokere
a67af057c8 qcacld-3.0: Fix the issue with beamformee NSTS setting
The user setting value is checked against the previous setting
hence if the current setting value is greater than previous setting
then driver returns error.
Check the user setting value against the range and update the param
value.

Change-Id: I2c730b71668efa7932600328459da9347d3e1d2f
CRs-Fixed: 2371024
2018-12-21 10:05:13 -08:00
Arif Hussain
cca6043ce0 qcacld-3.0: Refactor stats cfg items
Refactor following stats cfg items
CFG_PERIODIC_STATS_DISPLAY_TIME
CFG_LINK_SPEED_RSSI_MID
CFG_REPORT_MAX_LINK_SPEED
CFG_LINK_SPEED_RSSI_LOW
CFG_LINK_SPEED_RSSI_HIGH

Change-Id: I1b699d5fe5b3182c292cf10c85f842169bf14342
CRs-Fixed: 2362068
2018-12-21 10:05:09 -08:00
Jeff Johnson
ba04f224ad qcacld-3.0: Remove rem_on_chan_ready_event from hdd_adapter
Change Idaaacac4fdaf1b964432c33c10b1c86f8a591c2d ("qcacld-3.0: Remove
legacy P2P codes in HDD") removed the logic which utilized the
rem_on_chan_ready_event field in struct hdd_adapter. Since this field
is no longer used, remove it.

Change-Id: Ic8947dc70d510bd123759e53e58e33c5b64ec130
CRs-Fixed: 2370881
2018-12-21 05:15:05 -08:00
Abhishek Singh
cfc4e23ee9 qcacld-3.0: Fix INI params to get the adaptive dwell time for PNO
PNO adaptive dwell mode is updated from adaptive_dwell_mode_enabled
instead of pnoscan_adaptive_dwell_mode.

Use pnoscan_adaptive_dwell_mode to update the PNO adaptive dwell time
mode.

Change-Id: Ia1f44fa6e3bf65ca41e1a29dcdac345432923e76
CRs-Fixed: 2370377
2018-12-21 02:40:37 -08:00
Abhishek Singh
ea20e64629 qcacld-3.0: Clean up remaining unused scan ini
Clean up remaining unused scan ini as below
bug_report_for_no_scan_results
roam_bg_scan_client_bitmap
first_scan_bucket_threshold
early_stop_scan_enable
early_stop_scan_min_threshold
early_stop_scan_max_threshold

Change-Id: I8299832539b8b5eca1db9ab8b135965fb1118168
CRs-Fixed: 2370385
2018-12-21 02:40:28 -08:00
Jeff Johnson
4ab662b26f qcacld-3.0: Remove hdd_issta_p2p_clientconnected()
Function hdd_issta_p2p_clientconnected() is unused, so remove it.

Change-Id: I8b1ead9902ec93e76f76144118392db38abd38d7
CRs-Fixed: 2370793
2018-12-20 09:13:35 -08:00
Jeff Johnson
a73a93a877 qcacld-3.0: Remove cancel_rem_on_chan_var from struct hdd_adapter
Change Idaaacac4fdaf1b964432c33c10b1c86f8a591c2d ("qcacld-3.0:
Remove legacy P2P codes in HDD") removed the code that utilized
the cancel_rem_on_chan_var completion variable. Since it is no
longer used, remove the remaining references to it.

Change-Id: Icb2701a8335042aade3a2c7eb0af308e8bdfc658
CRs-Fixed: 2370037
2018-12-20 09:13:32 -08:00
Jeff Johnson
1abb0d2236 qcacld-3.0: Remove enum tdls_concerned_external_events
Change Ia860904685fc4783453491effa4518777c7406d0 ("qcacld-3.0:
TDLS: remove legacy interfaces") removed the last reference to
enum tdls_concerned_external_events. Since this enum is now unused,
remove it.

Change-Id: Ie21072a45d7c083d4f0f661906ca9cabb17a6178
CRs-Fixed: 2370025
2018-12-19 20:54:30 -08:00
Jeff Johnson
884d329c33 qcacld-3.0: Remove WLAN_WAIT_TIME_COUNTRY macro
Change I994e53b17788472de979df9dce9e18c6f68de850 ("qcacld-3.0: Add
support for regulatory component ucfg apis") removed the last
reference to macro WLAN_WAIT_TIME_COUNTRY. Since this macro is now
unused, remove it.

Change-Id: Ia0824abe9bb4419966b812f755600853520f8df2
CRs-Fixed: 2370024
2018-12-19 20:54:30 -08:00
Jeff Johnson
0f897a3b6c qcacld-3.0: Remove WLAN_HDD_PUBLIC_ACTION_TDLS_DISC_RESP macro
Change I8ba344ce5593df44bd15527e2ff68e872b6d23b8 ("qcacld-3.0: TDLS:
remove legacy core functions") removed the code that used macro
WLAN_HDD_PUBLIC_ACTION_TDLS_DISC_RESP. Since the macro is now unused,
remove it.

Change-Id: Ie0cd5cea1bc2a16829bbfb9b8339a41b303c6724
CRs-Fixed: 2370023
2018-12-19 20:54:30 -08:00
Jeff Johnson
42583f90e3 qcacld-3.0: Remove "nil scan report" remnant
Change Ia8b85548ff64ad77b5066fe03229e2b0b2f7fae3 ("qcacld-3.0: Remove
legacy scan complete callback") removed the "nil scan report"
feature. However it left behind the last_nil_scan_bug_report_timestamp
field in struct hdd_context. Since this field is now unused, remove
it.

Change-Id: I7a208121c3957a5ab04df455ad8a8b54932dfd1c
CRs-Fixed: 2370022
2018-12-19 20:54:30 -08:00
Abhishek Singh
8ebda9db47 qcacld-3.0: Cleanup unused scan params and ini
Cleanup unused scan params and ini as they are moved to scan
component.

Change-Id: I67a589133e58fd7740d7edc93d32a2d9fcd14c5a
CRs-Fixed: 2369068
2018-12-19 18:52:12 -08:00
Bala Venkatesh
c8bbb0058d qcacld-3.0: Enable TDLS in FW in standalone STA and P2P client
TDLS is not supported in concurrency. As part of second interface
creation, TDLS is disabled in both host and FW. But after the second
interface is deleted, TDLS is not enabled in FW and host even for
Standalone STA and P2P client cases.

Change-Id: I362c22a79e171f9779393b1b893b5bfd14ff562a
CRs-Fixed: 2367083
2018-12-19 16:30:43 -08:00
Krunal Soni
e64b17e7f0 qcacld-3.0: Driver fails to report gDualMacFeatureDisable val to FW
If DBS is disabled from INI then driver just bails out
in wlan_hdd_update_dbs_scan_and_fw_mode_config() API and never report
it to FW. This creates a confusion when DBS is disable INI but our HW
is capable of doing DBS, i.e. driver thinks that DBS disabled
but FW thinks that DBS is enabled.

Provide a fix that driver should report exact INI setting to FW.
This issue got introduced as part of regression caused by:
Iec2ef7e77e91f332028904c319d24e1ed134306d

ROME platform doesn't support any DBS related commands in FW,
so if driver sends wmi command with dual_mac_config with all params
set to 0 then FW wouldn't respond back and driver would timeout on
waiting for response. This was the original issue for which
Iec2ef7e77e91f332028904c319d24e1ed134306d was added.

Make sure current solution doesn't break backward compatibility.
Add a check to make sure FW supports DBS to eliminate
ROME vs NON-ROME platform.

CRs-Fixed: 2361628
Change-Id: I8a3b795b20e82391ae5d5c86d1e7d814d103ce64
2018-12-19 04:56:55 -08:00
lifeng
0b46ae503e qcacld-3.0: Refine mlme reg configurations
Refine mlme reg configurations based on converged cfg component.
Remove related legacy codes.

Change-Id: I524b29d2d03e60111fa1759d11e32236bb3aa3fa
CRs-Fixed: 2357961
2018-12-19 04:56:44 -08:00
Wu Gao
b056db61ad qcacld-3.0: Conditional reading of 5G preferred parameters
Read 5G preferred parameters if only enable_5g_band_pref enabled.
Delete unused variables.

Change-Id: I5e3a8435034dbc7682b9da4327dd6067d2033951
CRs-Fixed: 2367136
2018-12-19 02:04:27 -08:00
Jeff Johnson
debeaa8799 qcacld-3.0: Remove MAX_PENDING_LOG macro
Change I3260369879108f167453d5e0b8435c30ed729c5e ("qcacld-3.0: HDD
changes for common scan module") removed the only reference to macro
MAX_PENDING_LOG. Since it is now unused, remove it.

Change-Id: I4b5bf351a5bc7e2b841810302b75102038ae5a43
CRs-Fixed: 2368721
2018-12-18 16:50:23 -08:00
Jeff Johnson
8de65b5b70 qcacld-3.0: Remove struct hdd_tgt_cfg forward reference
Change I84e9ac5ccfe8faaa00dfc448defb81fb792263d5 ("qcacld-3.0: Add
support for NDP vendor commands and NDI Create") introduced a forward
reference to struct hdd_tgt_cfg. That struct doesn't actually exist,
so remove the forward reference.

Change-Id: Ic3129f6c0c8e55824ba066d5d36a7d10868f9f50
CRs-Fixed: 2368720
2018-12-18 16:50:18 -08:00
Jeff Johnson
e50a437635 qcacld-3.0: Remove RATE_LIMIT_ERROR_LOG macro
Change I64d7a0e3e180a636d710b42837ff3a982853fb12 ("qcacld-3.0: Remove
the excessive logging in hdd_get_adapter_by_vdev") removed the last
reference to macro RATE_LIMIT_ERROR_LOG. Since it is now unused,
remove it.

Change-Id: I531f0496edb064ed0a8208c497a7a5905be21713
CRs-Fixed: 2368719
2018-12-18 16:50:13 -08:00
Jeff Johnson
41f1fd23d1 qcacld-3.0: Remove WE_GET_STA_INFO_SIZE macro
Change I3a506905f40272efe472028391e8080d764cb390 ("qcacld-3.0: Use max
STA count when iterating SAP clients") removed the only reference to
macro WE_GET_STA_INFO_SIZE. Since it is unused, remove it.

Change-Id: I6c8069f0ce420fbe08d4e2527ce94f5c906027c6
CRs-Fixed: 2368718
2018-12-18 16:50:09 -08:00
Jeff Johnson
f907ab4453 qcacld-3.0: Remove HDD_P2P_WILDCARD_SSID macros
The following macros have neer been used by the current version of the
driver, so remove them:
- HDD_P2P_WILDCARD_SSID
- HDD_P2P_WILDCARD_SSID_LEN

Change-Id: Ice446d0e6a9f6a1e95b16267a3cb6aebf85cf5ad
CRs-Fixed: 2368717
2018-12-18 16:50:05 -08:00
Jeff Johnson
f1886e765f qcacld-3.0: Remove HDD_CHANNEL_14 macro
Change I8ba344ce5593df44bd15527e2ff68e872b6d23b8 ("qcacld-3.0: TDLS:
remove legacy core functions") removed the only reference to macro
HDD_CHANNEL_14. Since it is now obsolete, remove it.

Change-Id: I41267b0e5aef8f60c8a48cd9154529b2689bab5f
CRs-Fixed: 2368716
2018-12-18 16:50:00 -08:00
Jeff Johnson
6ca5a2c5b2 qcacld-3.0: Remove hdd_roam_tdls_status_update_handler() stub
Change I2e2380b1789cce7841ff0be4120184d1bce0b7e7 ("qcacld-3.0: TDLS:
remove legacy event process") removed the "real" implementation of
hdd_roam_tdls_status_update_handler() but left behind the stub
implementation, so remove the stub as well.

Change-Id: I4862a4cb2b27323c0bb7fb69e6033eaf2a0375b5
CRs-Fixed: 2368715
2018-12-18 16:49:56 -08:00
Jeff Johnson
2122e0c26a qcacld-3.0: Remove struct hdd_tdls_config_params
Change I0fa178bc92bc2a02e45d1ec577f9a54f40d559fb ("qcacld-3.0: Remove
wlan_hdd_tdls_set_params() prototype") removed the last reference to
struct hdd_tdls_config_params. Since it is obsolete, remove the
struct.

Change-Id: I3b5dfc94e17ba1f5b490d10593ba10fd6e33d3f5
CRs-Fixed: 2368714
2018-12-18 16:49:51 -08:00
Jeff Johnson
cab7a40b49 qcacld-3.0: Remove WLAN_HDD_80211_PEER_ADDR_OFFSET macro
Change Idaaacac4fdaf1b964432c33c10b1c86f8a591c2d ("qcacld-3.0: Remove
legacy P2P codes in HDD") removed the only reference to macro
WLAN_HDD_80211_PEER_ADDR_OFFSET. Since it is obsolete, remove it.

Change-Id: I5a298200fc007472651fdab5ded64fb1ee730636
CRs-Fixed: 2368713
2018-12-18 16:49:47 -08:00
Jeff Johnson
12f41227ab qcacld-3.0: Remove obsolete HDD NAN config stubs
Change I5af85d68ee53ad557e64523f7a1719e328536926 ("qcacld-3.0: Update
for converged NAN config params") relocated the NAN INI parsing.
However the change failed to remove the stub implementations of the
following functions, so remove them now:
- hdd_nan_populate_cds_config()
- hdd_nan_populate_pmo_config()

Change-Id: Ic2e7ed3e9a30fb20541734c0a72b55e6478877cf
CRs-Fixed: 2368712
2018-12-18 16:49:37 -08:00
Jeff Johnson
6ba16fda74 qcacld-3.0: Remove WLAN_WAIT_TIME_ABORTSCAN macro
Change I45181908a6a81de21e4ba906f54ae3190aa212d0 ("qcacld-3.0: Use
common scan api to wait on scan to get completed") removed the logic
that used macro WLAN_WAIT_TIME_ABORTSCAN. Since the macro is obsolete,
remove it.

Change-Id: Ie367743e2ba98bac9f554732682d8430c4016c42
CRs-Fixed: 2368711
2018-12-18 16:49:34 -08:00
Jeff Johnson
2044336c28 qcacld-3.0: Remove WLAN_HDD_CHANNEL_IN_UNII_1_BAND macro
Macro WLAN_HDD_CHANNEL_IN_UNII_1_BAND is no longer used, so remove it.

Change-Id: I6003c7d0963acb9c4b1d4314db8814a77daa87e7
CRs-Fixed: 2368710
2018-12-18 16:49:31 -08:00
Jeff Johnson
941694e3c9 qcacld-3.0: Remove WLAN_CHIP_VERSION macro
The WLAN_CHIP_VERSION macro is unused, so remove it.

Change-Id: I2ebd55971712716cebbfa9c20daa267272507708
CRs-Fixed: 2368709
2018-12-18 16:49:28 -08:00
Jeff Johnson
f04367347b qcacld-3.0: Remove legacy WAIT_TIME_TDLS macros
The TDLS functionality has moved to its own component. Left behind in
HDD were the following macros which are now obsolete, so remove them:
- WAIT_TIME_TDLS_LINK_ESTABLISH_REQ
- WAIT_TIME_TDLS_MGMT

Change-Id: Ie9667cafc66975e2cd92265353a8299cb5dff441
CRs-Fixed: 2368708
2018-12-18 16:49:25 -08:00
Jeff Johnson
2e16de98c7 qcacld-3.0: Remove survey_idx field from struct hdd_adapter
Change I2fa509f53b47d65ba0f4abbc438834b85b9c21f6 ("qcacld-3.0: Report
more information in survey dump") removed the legacy survey code that
utilized the survey_idx field in struct hdd_adapter. Since the field
is now obsolete, remove it.

Change-Id: I59653739949692eee4c15d5db1db386deb2d4182
CRs-Fixed: 2368707
2018-12-18 16:49:21 -08:00
Jeff Johnson
e212d0404e qcacld-3.0: Remove IPA contexts from HDD
Since they are now unused remove the hdd_ipa field from struct
hdd_context and the ipa_context field from struct hdd_adapter.

Change-Id: Iec841efdd3aa0f16298c0c58ce5756b325563b34
CRs-Fixed: 2368706
2018-12-18 16:49:17 -08:00
Jeff Johnson
cffe7dfdb3 qcacld-3.0: Remove struct hdd_connect_pm_context
Change Iaa1934594d5ffcf3b90dd2ad41bba4eb62f71119 ("qcacld-3.0: Fix
memleak for pm runtime suspend lock") removed the only usage of struct
hdd_connect_pm_context. Since the struct is obsolete, remove it.

Change-Id: If6e043e3aa2c76bcef6ae63858c5bf51fdfa8d09
CRs-Fixed: 2368705
2018-12-18 16:49:12 -08:00
Jeff Johnson
df4f610d14 qcacld-3.0: Remove TX_SCHED_WRR_PARAM_STRING_LENGTH
Change Iebded11869c55c1797f0521af05585284f46f544 ("qcacld-3.0:
Relocate legacy DP INI items") removed the only references to
TX_SCHED_WRR_PARAM_STRING_LENGTH. Since it is now unused, remove it.

Change-Id: I0d6729af053a543f23b45ef84371886812414870
CRs-Fixed: 2368704
2018-12-18 16:49:08 -08:00
Jeff Johnson
bce28eb11e qcacld-3.0: Remove SapSccChanAvoidance from struct hdd_config
As part of change I374e870610d79cc0d172ae126bfa70dc6d2db9a9
("qcacld-3.0: Remove not used INI CFG") support for the INI item
"gSapSccChanAvoidance" was removed. However that change left behind
the SapSccChanAvoidance field in struct hdd_config. This is now
obsolete, so remove it.

Change-Id: I4950066f492417922ec4054938da1e9acfaf9668
CRs-Fixed: 2368703
2018-12-18 16:49:05 -08:00
Nachiket Kukade
6003bd2adf qcacld-3.0: Route the legacy NAN commands through NAN component
NAN component has been moved to CLD. It includes implementation
of the new NAN command QCA_NL80211_VENDOR_SUBCMD_NAN_EXT.
Change the legacy NAN implementation of vendor cmd
QCA_NL80211_VENDOR_SUBCMD_NAN so that the requests go
through the NAN component. Clean up the legacy path.
Functionality remains unchanged for legacy command.

Route the legacy NAN commands through the NAN component.

Change-Id: I542e5afe832619f8c088220cc4456aa7fe4416fd
CRs-Fixed: 2356772
2018-12-18 14:29:19 -08:00
Nachiket Kukade
4f89e9e161 qcacld-3.0: Add support for handling the NAN events
As part of supporting NAN DBS, new WMI TLVs are defined so
that Host can maintain the status of NAN Discovery in sync
with the Firmware. Add modules that process these events and
updates the NAN states.

Add support for handling the NAN events.

Change-Id: Icfcd9c33cc410d9a65140f63cac69ddd69742306
CRs-Fixed: 2355383
2018-12-18 14:29:15 -08:00
Nachiket Kukade
85aa3788b6 qcacld-3.0: Store the NAN target caps inside its private obj
Host will receive the NAN related service capabilities from
the SERVICE_AVAILABLE event. In the HDD callback that gets
called afterwards, set the NAN related capabilities into
the NAN's private PSOC object.

Store the NAN target capabilities inside its private object.

Change-Id: If398b6f253613fc424b7821cfc62b0984ad34b6c
CRs-Fixed: 2356709
2018-12-18 14:29:06 -08:00
Nachiket Kukade
a6a70a98f1 qcacld-3.0: Add support for the new NAN EXT vendor command
As part of the NAN Discovery DBS support, a new vendor command
- QCA_NL80211_VENDOR_SUBCMD_NAN_EXT - has been defined that can
carry the binary blob encapsulated within an attribute and can
carry additional attributes to enhance the NAN command interface.
Add related data structures in NAN component and add modules in
OSIF to parse and sanitize this new command data and forward
the NAN message to the NAN component.

Add support for the new NAN EXT vendor command.

Change-Id: I0e6bb833b01a8cbd65e4d42700b5b70599f3ef99
CRs-Fixed: 2339029
2018-12-18 14:29:02 -08:00