forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/wl_cfgvendor.h
....@@ -1,15 +1,16 @@
1
-/* SPDX-License-Identifier: GPL-2.0 */
21 /*
32 * Linux cfg80211 Vendor Extension Code
43 *
5
- * Copyright (C) 1999-2019, Broadcom Corporation
6
- *
4
+ * Portions of this code are copyright (c) 2022 Cypress Semiconductor Corporation
5
+ *
6
+ * Copyright (C) 1999-2017, Broadcom Corporation
7
+ *
78 * Unless you and Broadcom execute a separate written software license
89 * agreement governing use of this software, this software is licensed to you
910 * under the terms of the GNU General Public License version 2 (the "GPL"),
1011 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
1112 * following added to such license:
12
- *
13
+ *
1314 * As a special exception, the copyright holders of this software give you
1415 * permission to link this software with independent modules, and to copy and
1516 * distribute the resulting executable under terms of your choice, provided that
....@@ -17,7 +18,7 @@
1718 * the license of that module. An independent module is a module which is not
1819 * derived from this software. The special exception does not apply to any
1920 * modifications of the software.
20
- *
21
+ *
2122 * Notwithstanding the above, under no circumstances may you combine this
2223 * software in any way with any other Broadcom software provided under a license
2324 * other than the GPL, without Broadcom's express prior written consent.
....@@ -25,9 +26,8 @@
2526 *
2627 * <<Broadcom-WL-IPTag/Open:>>
2728 *
28
- * $Id: wl_cfgvendor.h 455257 2014-02-20 08:10:24Z $
29
+ * $Id: wl_cfgvendor.h 814814 2019-04-15 03:31:10Z $
2930 */
30
-
3131
3232 #ifndef _wl_cfgvendor_h_
3333 #define _wl_cfgvendor_h_
....@@ -41,8 +41,15 @@
4141 #define VENDOR_DATA_OVERHEAD (NLA_HDRLEN)
4242
4343 enum brcm_vendor_attr {
44
- BRCM_ATTR_DRIVER_CMD,
45
- BRCM_ATTR_DRIVER_MAX
44
+ BRCM_ATTR_DRIVER_CMD = 0,
45
+ BRCM_ATTR_DRIVER_KEY_PMK = 1,
46
+ BRCM_ATTR_DRIVER_FEATURE_FLAGS = 2,
47
+ BRCM_ATTR_DRIVER_MAX = 3
48
+};
49
+
50
+enum brcm_wlan_vendor_features {
51
+ BRCM_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
52
+ BRCM_WLAN_VENDOR_FEATURES_MAX = 1
4653 };
4754
4855 #define SCAN_RESULTS_COMPLETE_FLAG_LEN ATTRIBUTE_U32_LEN
....@@ -50,10 +57,12 @@
5057 #define SCAN_ID_HDR_LEN ATTRIBUTE_U32_LEN
5158 #define SCAN_FLAGS_HDR_LEN ATTRIBUTE_U32_LEN
5259 #define GSCAN_NUM_RESULTS_HDR_LEN ATTRIBUTE_U32_LEN
60
+#define GSCAN_CH_BUCKET_MASK_HDR_LEN ATTRIBUTE_U32_LEN
5361 #define GSCAN_RESULTS_HDR_LEN (NLA_HDRLEN)
5462 #define GSCAN_BATCH_RESULT_HDR_LEN (SCAN_INDEX_HDR_LEN + SCAN_ID_HDR_LEN + \
5563 SCAN_FLAGS_HDR_LEN + \
5664 GSCAN_NUM_RESULTS_HDR_LEN + \
65
+ GSCAN_CH_BUCKET_MASK_HDR_LEN + \
5766 GSCAN_RESULTS_HDR_LEN)
5867
5968 #define VENDOR_REPLY_OVERHEAD (VENDOR_ID_OVERHEAD + \
....@@ -72,6 +81,16 @@
7281 #define GSCAN_ATTR_SET10 100
7382 #define GSCAN_ATTR_SET11 110
7483 #define GSCAN_ATTR_SET12 120
84
+#define GSCAN_ATTR_SET13 130
85
+#define GSCAN_ATTR_SET14 140
86
+
87
+#define NAN_SVC_INFO_LEN 255
88
+#define NAN_SID_ENABLE_FLAG_INVALID 0xff
89
+#define NAN_SID_BEACON_COUNT_INVALID 0xff
90
+#define WL_NAN_DW_INTERVAL 512
91
+
92
+#define CFG80211_VENDOR_CMD_REPLY_SKB_SZ 100
93
+#define CFG80211_VENDOR_EVT_SKB_SZ 2048
7594
7695 typedef enum {
7796 /* don't use 0 as a valid subcommand */
....@@ -84,7 +103,6 @@
84103 /* define all GScan related commands between 0x1000 and 0x10FF */
85104 ANDROID_NL80211_SUBCMD_GSCAN_RANGE_START = 0x1000,
86105 ANDROID_NL80211_SUBCMD_GSCAN_RANGE_END = 0x10FF,
87
-
88106
89107 /* define all RTT related commands between 0x1100 and 0x11FF */
90108 ANDROID_NL80211_SUBCMD_RTT_RANGE_START = 0x1100,
....@@ -105,8 +123,51 @@
105123
106124 /* define all wifi calling related commands between 0x1600 and 0x16FF */
107125 ANDROID_NL80211_SUBCMD_WIFI_OFFLOAD_RANGE_START = 0x1600,
108
- ANDROID_NL80211_SUBCMD_WIFI_OFFLOAD_RANGE_END = 0x16FF,
126
+ ANDROID_NL80211_SUBCMD_WIFI_OFFLOAD_RANGE_END = 0x16FF,
109127
128
+ /* define all NAN related commands between 0x1700 and 0x17FF */
129
+ ANDROID_NL80211_SUBCMD_NAN_RANGE_START = 0x1700,
130
+ ANDROID_NL80211_SUBCMD_NAN_RANGE_END = 0x17FF,
131
+
132
+ /* define all packet filter related commands between 0x1800 and 0x18FF */
133
+ ANDROID_NL80211_SUBCMD_PKT_FILTER_RANGE_START = 0x1800,
134
+ ANDROID_NL80211_SUBCMD_PKT_FILTER_RANGE_END = 0x18FF,
135
+
136
+ /* define all tx power related commands between 0x1900 and 0x1910 */
137
+ ANDROID_NL80211_SUBCMD_TX_POWER_RANGE_START = 0x1900,
138
+ ANDROID_NL80211_SUBCMD_TX_POWER_RANGE_END = 0x1910,
139
+
140
+ /* define all thermal mode related commands between 0x1920 and 0x192F */
141
+ ANDROID_NL80211_SUBCMD_MITIGATION_RANGE_START = 0x1920,
142
+ ANDROID_NL80211_SUBCMD_MITIGATION_RANGE_END = 0x192F,
143
+
144
+ /* define all DSCP related commands between 0x2000 and 0x20FF */
145
+ ANDROID_NL80211_SUBCMD_DSCP_RANGE_START = 0x2000,
146
+ ANDROID_NL80211_SUBCMD_DSCP_RANGE_END = 0x20FF,
147
+
148
+ /* define all Channel Avoidance related commands between 0x2100 and 0x211F */
149
+ ANDROID_NL80211_SUBCMD_CHAVOID_RANGE_START = 0x2100,
150
+ ANDROID_NL80211_SUBCMD_CHAVOID_RANGE_END = 0x211F,
151
+
152
+ /* define all OTA Download related commands between 0x2120 and 0x212F */
153
+ ANDROID_NL80211_SUBCMD_OTA_DOWNLOAD_START = 0x2120,
154
+ ANDROID_NL80211_SUBCMD_OTA_DOWNLOAD_END = 0x212F,
155
+
156
+ /* define all VOIP mode config related commands between 0x2130 and 0x213F */
157
+ ANDROID_NL80211_SUBCMD_VIOP_MODE_START = 0x2130,
158
+ ANDROID_NL80211_SUBCMD_VIOP_MODE_END = 0x213F,
159
+
160
+ /* define all TWT related commands between 0x2140 and 0x214F */
161
+ ANDROID_NL80211_SUBCMD_TWT_START = 0x2140,
162
+ ANDROID_NL80211_SUBCMD_TWT_END = 0x214F,
163
+
164
+ /* define all Usable Channel related commands between 0x2150 and 0x215F */
165
+ ANDROID_NL80211_SUBCMD_USABLE_CHANNEL_START = 0x2150,
166
+ ANDROID_NL80211_SUBCMD_USABLE_CHANNEL_END = 0x215F,
167
+
168
+ /* define all init/deinit related commands between 0x2160 and 0x216F */
169
+ ANDROID_NL80211_SUBCMD_INIT_DEINIT_RANGE_START = 0x2160,
170
+ ANDROID_NL80211_SUBCMD_INIT_DEINIT_RANGE_END = 0x216F,
110171 /* This is reserved for future usage */
111172
112173 } ANDROID_VENDOR_SUB_COMMAND;
....@@ -125,7 +186,7 @@
125186 /* ANDR_WIFI_XXX although not related to gscan are defined here */
126187 ANDR_WIFI_SUBCMD_GET_FEATURE_SET,
127188 ANDR_WIFI_SUBCMD_GET_FEATURE_SET_MATRIX,
128
- ANDR_WIFI_RANDOM_MAC_OUI,
189
+ ANDR_WIFI_SUBCMD_SET_PNO_RANDOM_MAC_OUI, /*0x100C*/
129190 ANDR_WIFI_NODFS_CHANNELS,
130191 ANDR_WIFI_SET_COUNTRY,
131192 GSCAN_SUBCMD_SET_EPNO_SSID,
....@@ -136,10 +197,22 @@
136197 WIFI_SUBCMD_SET_BSSID_BLACKLIST,
137198 GSCAN_SUBCMD_ANQPO_CONFIG,
138199 WIFI_SUBCMD_SET_RSSI_MONITOR,
200
+ WIFI_SUBCMD_CONFIG_ND_OFFLOAD,
201
+ WIFI_SUBCMD_CONFIG_TCPACK_SUP,
202
+ WIFI_SUBCMD_FW_ROAM_POLICY,
203
+ WIFI_SUBCMD_ROAM_CAPABILITY,
204
+ WIFI_SUBCMD_SET_LATENCY_MODE, /*0x101b*/
205
+ WIFI_SUBCMD_SET_MULTISTA_PRIMARY_CONNECTION,
206
+ WIFI_SUBCMD_SET_MULTISTA_USE_CASE,
207
+ WIFI_SUBCMD_SET_DTIM_CONFIG,
208
+ GSCAN_SUBCMD_MAX,
209
+
139210 RTT_SUBCMD_SET_CONFIG = ANDROID_NL80211_SUBCMD_RTT_RANGE_START,
140211 RTT_SUBCMD_CANCEL_CONFIG,
141212 RTT_SUBCMD_GETCAPABILITY,
142
-
213
+ RTT_SUBCMD_GETAVAILCHANNEL,
214
+ RTT_SUBCMD_SET_RESPONDER,
215
+ RTT_SUBCMD_CANCEL_RESPONDER,
143216 LSTATS_SUBCMD_GET_INFO = ANDROID_NL80211_SUBCMD_LSTATS_RANGE_START,
144217
145218 DEBUG_START_LOGGING = ANDROID_NL80211_SUBCMD_DEBUG_RANGE_START,
....@@ -151,9 +224,63 @@
151224 DEBUG_GET_FEATURE,
152225 DEBUG_RESET_LOGGING,
153226
227
+ DEBUG_TRIGGER_DRIVER_MEM_DUMP,
228
+ DEBUG_GET_DRIVER_MEM_DUMP,
229
+ DEBUG_START_PKT_FATE_MONITORING,
230
+ DEBUG_GET_TX_PKT_FATES,
231
+ DEBUG_GET_RX_PKT_FATES,
232
+ DEBUG_GET_WAKE_REASON_STATS,
233
+ DEBUG_GET_FILE_DUMP_BUF,
234
+ DEBUG_FILE_DUMP_DONE_IND,
235
+ DEBUG_SET_HAL_START,
236
+ DEBUG_SET_HAL_STOP,
237
+ DEBUG_SET_HAL_PID,
238
+
154239 WIFI_OFFLOAD_SUBCMD_START_MKEEP_ALIVE = ANDROID_NL80211_SUBCMD_WIFI_OFFLOAD_RANGE_START,
155240 WIFI_OFFLOAD_SUBCMD_STOP_MKEEP_ALIVE,
156
- /* Add more sub commands here */
241
+
242
+ NAN_WIFI_SUBCMD_ENABLE = ANDROID_NL80211_SUBCMD_NAN_RANGE_START, /* 0x1700 */
243
+ NAN_WIFI_SUBCMD_DISABLE, /* 0x1701 */
244
+ NAN_WIFI_SUBCMD_REQUEST_PUBLISH, /* 0x1702 */
245
+ NAN_WIFI_SUBCMD_REQUEST_SUBSCRIBE, /* 0x1703 */
246
+ NAN_WIFI_SUBCMD_CANCEL_PUBLISH, /* 0x1704 */
247
+ NAN_WIFI_SUBCMD_CANCEL_SUBSCRIBE, /* 0x1705 */
248
+ NAN_WIFI_SUBCMD_TRANSMIT, /* 0x1706 */
249
+ NAN_WIFI_SUBCMD_CONFIG, /* 0x1707 */
250
+ NAN_WIFI_SUBCMD_TCA, /* 0x1708 */
251
+ NAN_WIFI_SUBCMD_STATS, /* 0x1709 */
252
+ NAN_WIFI_SUBCMD_GET_CAPABILITIES, /* 0x170A */
253
+ NAN_WIFI_SUBCMD_DATA_PATH_IFACE_CREATE, /* 0x170B */
254
+ NAN_WIFI_SUBCMD_DATA_PATH_IFACE_DELETE, /* 0x170C */
255
+ NAN_WIFI_SUBCMD_DATA_PATH_REQUEST, /* 0x170D */
256
+ NAN_WIFI_SUBCMD_DATA_PATH_RESPONSE, /* 0x170E */
257
+ NAN_WIFI_SUBCMD_DATA_PATH_END, /* 0x170F */
258
+ NAN_WIFI_SUBCMD_DATA_PATH_SEC_INFO, /* 0x1710 */
259
+ NAN_WIFI_SUBCMD_VERSION_INFO, /* 0x1711 */
260
+ NAN_SUBCMD_ENABLE_MERGE, /* 0x1712 */
261
+ APF_SUBCMD_GET_CAPABILITIES = ANDROID_NL80211_SUBCMD_PKT_FILTER_RANGE_START,
262
+ APF_SUBCMD_SET_FILTER,
263
+ APF_SUBCMD_READ_FILTER,
264
+ WIFI_SUBCMD_TX_POWER_SCENARIO = ANDROID_NL80211_SUBCMD_TX_POWER_RANGE_START, /*0x1900*/
265
+
266
+ WIFI_SUBCMD_THERMAL_MITIGATION = ANDROID_NL80211_SUBCMD_MITIGATION_RANGE_START,
267
+ DSCP_SUBCMD_SET_TABLE = ANDROID_NL80211_SUBCMD_DSCP_RANGE_START,
268
+ DSCP_SUBCMD_RESET_TABLE,
269
+ CHAVOID_SUBCMD_SET_CONFIG = ANDROID_NL80211_SUBCMD_CHAVOID_RANGE_START,
270
+
271
+ WIFI_SUBCMD_GET_OTA_CURRUNT_INFO = ANDROID_NL80211_SUBCMD_OTA_DOWNLOAD_START,
272
+ WIFI_SUBCMD_OTA_UPDATE,
273
+ WIFI_SUBCMD_CONFIG_VOIP_MODE = ANDROID_NL80211_SUBCMD_VIOP_MODE_START,
274
+
275
+ TWT_SUBCMD_GETCAPABILITY = ANDROID_NL80211_SUBCMD_TWT_START,
276
+ TWT_SUBCMD_SETUP_REQUEST,
277
+ TWT_SUBCMD_TEAR_DOWN_REQUEST,
278
+ TWT_SUBCMD_INFO_FRAME_REQUEST,
279
+ TWT_SUBCMD_GETSTATS,
280
+ TWT_SUBCMD_CLR_STATS,
281
+ WIFI_SUBCMD_USABLE_CHANNEL = ANDROID_NL80211_SUBCMD_USABLE_CHANNEL_START,
282
+ WIFI_SUBCMD_TRIGGER_SSR = ANDROID_NL80211_SUBCMD_INIT_DEINIT_RANGE_START,
283
+ /* Add more sub commands here */
157284 VENDOR_SUBCMD_MAX
158285 };
159286
....@@ -184,6 +311,7 @@
184311 GSCAN_ATTRIBUTE_AP_FLAGS, /* flags on significant change event */
185312 GSCAN_ATTRIBUTE_NUM_CHANNELS,
186313 GSCAN_ATTRIBUTE_CHANNEL_LIST,
314
+ GSCAN_ATTRIBUTE_CH_BUCKET_BITMASK,
187315
188316 /* remaining reserved for additional attributes */
189317
....@@ -202,6 +330,7 @@
202330 GSCAN_ATTRIBUTE_RSSI_HIGH,
203331 GSCAN_ATTRIBUTE_HOSTLIST_BSSID_ELEM,
204332 GSCAN_ATTRIBUTE_HOTLIST_FLUSH,
333
+ GSCAN_ATTRIBUTE_HOTLIST_BSSID_COUNT,
205334
206335 /* remaining reserved for additional attributes */
207336 GSCAN_ATTRIBUTE_RSSI_SAMPLE_SIZE = GSCAN_ATTR_SET6,
....@@ -232,7 +361,6 @@
232361 GSCAN_ATTRIBUTE_BSSID_PREF,
233362 GSCAN_ATTRIBUTE_RSSI_MODIFIER,
234363
235
-
236364 /* Roam cfg */
237365 GSCAN_ATTRIBUTE_A_BAND_BOOST_THRESHOLD = GSCAN_ATTR_SET9,
238366 GSCAN_ATTRIBUTE_A_BAND_PENALTY_THRESHOLD,
....@@ -257,6 +385,18 @@
257385 /* Adaptive scan attributes */
258386 GSCAN_ATTRIBUTE_BUCKET_STEP_COUNT = GSCAN_ATTR_SET12,
259387 GSCAN_ATTRIBUTE_BUCKET_MAX_PERIOD,
388
+
389
+ /* ePNO cfg */
390
+ GSCAN_ATTRIBUTE_EPNO_5G_RSSI_THR = GSCAN_ATTR_SET13,
391
+ GSCAN_ATTRIBUTE_EPNO_2G_RSSI_THR,
392
+ GSCAN_ATTRIBUTE_EPNO_INIT_SCORE_MAX,
393
+ GSCAN_ATTRIBUTE_EPNO_CUR_CONN_BONUS,
394
+ GSCAN_ATTRIBUTE_EPNO_SAME_NETWORK_BONUS,
395
+ GSCAN_ATTRIBUTE_EPNO_SECURE_BONUS,
396
+ GSCAN_ATTRIBUTE_EPNO_5G_BONUS,
397
+
398
+ /* Android O Roaming features */
399
+ GSCAN_ATTRIBUTE_ROAM_STATE_SET = GSCAN_ATTR_SET14,
260400
261401 GSCAN_ATTRIBUTE_MAX
262402 };
....@@ -301,16 +441,30 @@
301441 RTT_ATTRIBUTE_RESULTS_COMPLETE = 30,
302442 RTT_ATTRIBUTE_RESULTS_PER_TARGET,
303443 RTT_ATTRIBUTE_RESULT_CNT,
304
- RTT_ATTRIBUTE_RESULT
444
+ RTT_ATTRIBUTE_RESULT,
445
+ RTT_ATTRIBUTE_RESULT_DETAIL
305446 };
306447
307448 enum wifi_rssi_monitor_attr {
449
+#ifdef ANDROID12_SUPPORT
450
+ RSSI_MONITOR_ATTRIBUTE_INVALID,
451
+#endif // endif
308452 RSSI_MONITOR_ATTRIBUTE_MAX_RSSI,
309453 RSSI_MONITOR_ATTRIBUTE_MIN_RSSI,
310
- RSSI_MONITOR_ATTRIBUTE_START
454
+ RSSI_MONITOR_ATTRIBUTE_START,
455
+ RSSI_MONITOR_ATTRIBUTE_MAX
456
+};
457
+
458
+enum wifi_sae_key_attr {
459
+ BRCM_SAE_KEY_ATTR_PEER_MAC,
460
+ BRCM_SAE_KEY_ATTR_PMK,
461
+ BRCM_SAE_KEY_ATTR_PMKID
311462 };
312463
313464 enum debug_attributes {
465
+#ifdef ANDROID12_SUPPORT
466
+ DEBUG_ATTRIBUTE_INVALID,
467
+#endif // endif
314468 DEBUG_ATTRIBUTE_GET_DRIVER,
315469 DEBUG_ATTRIBUTE_GET_FW,
316470 DEBUG_ATTRIBUTE_RING_ID,
....@@ -321,55 +475,174 @@
321475 DEBUG_ATTRIBUTE_LOG_MIN_DATA_SIZE,
322476 DEBUG_ATTRIBUTE_FW_DUMP_LEN,
323477 DEBUG_ATTRIBUTE_FW_DUMP_DATA,
478
+ DEBUG_ATTRIBUTE_FW_ERR_CODE,
324479 DEBUG_ATTRIBUTE_RING_DATA,
325480 DEBUG_ATTRIBUTE_RING_STATUS,
326
- DEBUG_ATTRIBUTE_RING_NUM
481
+ DEBUG_ATTRIBUTE_RING_NUM,
482
+ DEBUG_ATTRIBUTE_DRIVER_DUMP_LEN,
483
+ DEBUG_ATTRIBUTE_DRIVER_DUMP_DATA,
484
+ DEBUG_ATTRIBUTE_PKT_FATE_NUM,
485
+ DEBUG_ATTRIBUTE_PKT_FATE_DATA,
486
+ DEBUG_ATTRIBUTE_HANG_REASON,
487
+ /* Add new attributes just above this */
488
+ DEBUG_ATTRIBUTE_MAX
327489 };
328490
491
+typedef enum {
492
+ DUMP_LEN_ATTR_INVALID,
493
+ DUMP_LEN_ATTR_MEMDUMP,
494
+ DUMP_LEN_ATTR_SSSR_C0_D11_BEFORE,
495
+ DUMP_LEN_ATTR_SSSR_C0_D11_AFTER,
496
+ DUMP_LEN_ATTR_SSSR_C1_D11_BEFORE,
497
+ DUMP_LEN_ATTR_SSSR_C1_D11_AFTER,
498
+ DUMP_LEN_ATTR_SSSR_DIG_BEFORE,
499
+ DUMP_LEN_ATTR_SSSR_DIG_AFTER,
500
+ DUMP_LEN_ATTR_TIMESTAMP,
501
+ DUMP_LEN_ATTR_GENERAL_LOG,
502
+ DUMP_LEN_ATTR_ECNTRS,
503
+ DUMP_LEN_ATTR_SPECIAL_LOG,
504
+ DUMP_LEN_ATTR_DHD_DUMP,
505
+ DUMP_LEN_ATTR_EXT_TRAP,
506
+ DUMP_LEN_ATTR_HEALTH_CHK,
507
+ DUMP_LEN_ATTR_PRESERVE_LOG,
508
+ DUMP_LEN_ATTR_COOKIE,
509
+ DUMP_LEN_ATTR_FLOWRING_DUMP,
510
+ DUMP_LEN_ATTR_PKTLOG,
511
+ DUMP_FILENAME_ATTR_DEBUG_DUMP,
512
+ DUMP_FILENAME_ATTR_MEM_DUMP,
513
+ DUMP_FILENAME_ATTR_SSSR_CORE_0_BEFORE_DUMP,
514
+ DUMP_FILENAME_ATTR_SSSR_CORE_0_AFTER_DUMP,
515
+ DUMP_FILENAME_ATTR_SSSR_CORE_1_BEFORE_DUMP,
516
+ DUMP_FILENAME_ATTR_SSSR_CORE_1_AFTER_DUMP,
517
+ DUMP_FILENAME_ATTR_SSSR_DIG_BEFORE_DUMP,
518
+ DUMP_FILENAME_ATTR_SSSR_DIG_AFTER_DUMP,
519
+ DUMP_FILENAME_ATTR_PKTLOG_DUMP,
520
+ DUMP_LEN_ATTR_STATUS_LOG,
521
+ DUMP_LEN_ATTR_AXI_ERROR,
522
+ DUMP_FILENAME_ATTR_AXI_ERROR_DUMP,
523
+ DUMP_LEN_ATTR_RTT_LOG
524
+} EWP_DUMP_EVENT_ATTRIBUTE;
525
+
526
+/* Attributes associated with DEBUG_GET_DUMP_BUF */
527
+typedef enum {
528
+ DUMP_BUF_ATTR_INVALID,
529
+ DUMP_BUF_ATTR_MEMDUMP,
530
+ DUMP_BUF_ATTR_SSSR_C0_D11_BEFORE,
531
+ DUMP_BUF_ATTR_SSSR_C0_D11_AFTER,
532
+ DUMP_BUF_ATTR_SSSR_C1_D11_BEFORE,
533
+ DUMP_BUF_ATTR_SSSR_C1_D11_AFTER,
534
+ DUMP_BUF_ATTR_SSSR_DIG_BEFORE,
535
+ DUMP_BUF_ATTR_SSSR_DIG_AFTER,
536
+ DUMP_BUF_ATTR_TIMESTAMP,
537
+ DUMP_BUF_ATTR_GENERAL_LOG,
538
+ DUMP_BUF_ATTR_ECNTRS,
539
+ DUMP_BUF_ATTR_SPECIAL_LOG,
540
+ DUMP_BUF_ATTR_DHD_DUMP,
541
+ DUMP_BUF_ATTR_EXT_TRAP,
542
+ DUMP_BUF_ATTR_HEALTH_CHK,
543
+ DUMP_BUF_ATTR_PRESERVE_LOG,
544
+ DUMP_BUF_ATTR_COOKIE,
545
+ DUMP_BUF_ATTR_FLOWRING_DUMP,
546
+ DUMP_BUF_ATTR_PKTLOG,
547
+ DUMP_BUF_ATTR_STATUS_LOG,
548
+ DUMP_BUF_ATTR_AXI_ERROR,
549
+ DUMP_BUF_ATTR_RTT_LOG
550
+} EWP_DUMP_CMD_ATTRIBUTE;
551
+
329552 enum mkeep_alive_attributes {
553
+#ifdef ANDROID12_SUPPORT
554
+ MKEEP_ALIVE_ATTRIBUTE_INVALID,
555
+#endif // endif
330556 MKEEP_ALIVE_ATTRIBUTE_ID,
331557 MKEEP_ALIVE_ATTRIBUTE_IP_PKT,
332558 MKEEP_ALIVE_ATTRIBUTE_IP_PKT_LEN,
333559 MKEEP_ALIVE_ATTRIBUTE_SRC_MAC_ADDR,
334560 MKEEP_ALIVE_ATTRIBUTE_DST_MAC_ADDR,
335
- MKEEP_ALIVE_ATTRIBUTE_PERIOD_MSEC
561
+ MKEEP_ALIVE_ATTRIBUTE_PERIOD_MSEC,
562
+ MKEEP_ALIVE_ATTRIBUTE_ETHER_TYPE,
563
+ MKEEP_ALIVE_ATTRIBUTE_MAX
336564 };
337565
338566 typedef enum wl_vendor_event {
339
- BRCM_VENDOR_EVENT_UNSPEC,
340
- BRCM_VENDOR_EVENT_PRIV_STR,
341
- GOOGLE_GSCAN_SIGNIFICANT_EVENT,
342
- GOOGLE_GSCAN_GEOFENCE_FOUND_EVENT,
343
- GOOGLE_GSCAN_BATCH_SCAN_EVENT,
344
- GOOGLE_SCAN_FULL_RESULTS_EVENT,
345
- GOOGLE_RTT_COMPLETE_EVENT,
346
- GOOGLE_SCAN_COMPLETE_EVENT,
347
- GOOGLE_GSCAN_GEOFENCE_LOST_EVENT,
348
- GOOGLE_SCAN_EPNO_EVENT,
349
- GOOGLE_DEBUG_RING_EVENT,
350
- GOOGLE_FW_DUMP_EVENT,
351
- GOOGLE_PNO_HOTSPOT_FOUND_EVENT,
352
- GOOGLE_RSSI_MONITOR_EVENT,
353
- GOOGLE_MKEEP_ALIVE_EVENT,
354
- NAN_EVENT_ENABLED,
355
- NAN_EVENT_DISABLED,
356
- NAN_EVENT_PUBLISH_REPLIED,
357
- NAN_EVENT_PUBLISH_TERMINATED,
358
- NAN_EVENT_SUBSCRIBE_MATCH,
359
- NAN_EVENT_SUBSCRIBE_UNMATCH,
360
- NAN_EVENT_SUBSCRIBE_TERMINATED,
361
- NAN_EVENT_DE_EVENT,
362
- NAN_EVENT_FOLLOWUP,
363
- NAN_EVENT_TCA,
364
- NAN_EVENT_UNKNOWN
567
+ BRCM_VENDOR_EVENT_UNSPEC = 0,
568
+ BRCM_VENDOR_EVENT_PRIV_STR = 1,
569
+ GOOGLE_GSCAN_SIGNIFICANT_EVENT = 2,
570
+ GOOGLE_GSCAN_GEOFENCE_FOUND_EVENT = 3,
571
+ GOOGLE_GSCAN_BATCH_SCAN_EVENT = 4,
572
+ GOOGLE_SCAN_FULL_RESULTS_EVENT = 5,
573
+ GOOGLE_RTT_COMPLETE_EVENT = 6,
574
+ GOOGLE_SCAN_COMPLETE_EVENT = 7,
575
+ GOOGLE_GSCAN_GEOFENCE_LOST_EVENT = 8,
576
+ GOOGLE_SCAN_EPNO_EVENT = 9,
577
+ GOOGLE_DEBUG_RING_EVENT = 10,
578
+ GOOGLE_FW_DUMP_EVENT = 11,
579
+ GOOGLE_PNO_HOTSPOT_FOUND_EVENT = 12,
580
+ GOOGLE_RSSI_MONITOR_EVENT = 13,
581
+ GOOGLE_MKEEP_ALIVE_EVENT = 14,
582
+
583
+ /*
584
+ * BRCM specific events should be placed after
585
+ * the Generic events so that enums don't mismatch
586
+ * between the DHD and HAL
587
+ */
588
+ GOOGLE_NAN_EVENT_ENABLED = 15,
589
+ GOOGLE_NAN_EVENT_DISABLED = 16,
590
+ GOOGLE_NAN_EVENT_SUBSCRIBE_MATCH = 17,
591
+ GOOGLE_NAN_EVENT_REPLIED = 18,
592
+ GOOGLE_NAN_EVENT_PUBLISH_TERMINATED = 19,
593
+ GOOGLE_NAN_EVENT_SUBSCRIBE_TERMINATED = 20,
594
+ GOOGLE_NAN_EVENT_DE_EVENT = 21,
595
+ GOOGLE_NAN_EVENT_FOLLOWUP = 22,
596
+ GOOGLE_NAN_EVENT_TRANSMIT_FOLLOWUP_IND = 23,
597
+ GOOGLE_NAN_EVENT_DATA_REQUEST = 24,
598
+ GOOGLE_NAN_EVENT_DATA_CONFIRMATION = 25,
599
+ GOOGLE_NAN_EVENT_DATA_END = 26,
600
+ GOOGLE_NAN_EVENT_BEACON = 27,
601
+ GOOGLE_NAN_EVENT_SDF = 28,
602
+ GOOGLE_NAN_EVENT_TCA = 29,
603
+ GOOGLE_NAN_EVENT_SUBSCRIBE_UNMATCH = 30,
604
+ GOOGLE_NAN_EVENT_UNKNOWN = 31,
605
+ GOOGLE_ROAM_EVENT_START = 32,
606
+ BRCM_VENDOR_EVENT_HANGED = 33,
607
+ BRCM_VENDOR_EVENT_SAE_KEY = 34,
608
+ BRCM_VENDOR_EVENT_BEACON_RECV = 35,
609
+ BRCM_VENDOR_EVENT_PORT_AUTHORIZED = 36,
610
+ GOOGLE_FILE_DUMP_EVENT = 37,
611
+ BRCM_VENDOR_EVENT_CU = 38,
612
+ BRCM_VENDOR_EVENT_WIPS = 39,
613
+ NAN_ASYNC_RESPONSE_DISABLED = 40,
614
+ BRCM_VENDOR_EVENT_RCC_INFO = 41,
615
+ BRCM_VENDOR_EVENT_ACS = 42,
616
+ BRCM_VENDOR_EVENT_OVERTEMP = 43,
617
+ BRCM_VENDOR_EVENT_LAST
365618 } wl_vendor_event_t;
366619
367620 enum andr_wifi_attr {
621
+#ifdef ANDROID12_SUPPORT
622
+ ANDR_WIFI_ATTRIBUTE_INVALID,
623
+#endif // endif
368624 ANDR_WIFI_ATTRIBUTE_NUM_FEATURE_SET,
369625 ANDR_WIFI_ATTRIBUTE_FEATURE_SET,
370
- ANDR_WIFI_ATTRIBUTE_RANDOM_MAC_OUI,
626
+ ANDR_WIFI_ATTRIBUTE_PNO_RANDOM_MAC_OUI,
371627 ANDR_WIFI_ATTRIBUTE_NODFS_SET,
372
- ANDR_WIFI_ATTRIBUTE_COUNTRY
628
+ ANDR_WIFI_ATTRIBUTE_COUNTRY,
629
+ ANDR_WIFI_ATTRIBUTE_ND_OFFLOAD_VALUE,
630
+ ANDR_WIFI_ATTRIBUTE_TCPACK_SUP_VALUE,
631
+ ANDR_WIFI_ATTRIBUTE_LATENCY_MODE,
632
+ ANDR_WIFI_ATTRIBUTE_RANDOM_MAC,
633
+ ANDR_WIFI_ATTRIBUTE_TX_POWER_SCENARIO,
634
+ ANDR_WIFI_ATTRIBUTE_THERMAL_MITIGATION,
635
+ ANDR_WIFI_ATTRIBUTE_THERMAL_COMPLETION_WINDOW,
636
+ ANDR_WIFI_ATTRIBUTE_VOIP_MODE,
637
+ ANDR_WIFI_ATTRIBUTE_DTIM_MULTIPLIER,
638
+ //Add more attributes here
639
+ ANDR_WIFI_ATTRIBUTE_MAX
640
+};
641
+enum apf_attributes {
642
+ APF_ATTRIBUTE_VERSION,
643
+ APF_ATTRIBUTE_MAX_LEN,
644
+ APF_ATTRIBUTE_PROGRAM,
645
+ APF_ATTRIBUTE_PROGRAM_LEN
373646 };
374647
375648 typedef enum wl_vendor_gscan_attribute {
....@@ -396,25 +669,232 @@
396669 } gscan_geofence_attribute_t;
397670
398671 typedef enum gscan_complete_event {
399
- WIFI_SCAN_BUFFER_FULL,
400
- WIFI_SCAN_COMPLETE
672
+ WIFI_SCAN_COMPLETE,
673
+ WIFI_SCAN_THRESHOLD_NUM_SCANS,
674
+ WIFI_SCAN_BUFFER_THR_BREACHED
401675 } gscan_complete_event_t;
676
+
677
+#ifdef DHD_WAKE_STATUS
678
+enum wake_stat_attributes {
679
+#ifdef ANDROID12_SUPPORT
680
+ WAKE_STAT_ATTRIBUTE_INVALID,
681
+#endif // endif
682
+ WAKE_STAT_ATTRIBUTE_TOTAL_CMD_EVENT,
683
+ WAKE_STAT_ATTRIBUTE_CMD_EVENT_WAKE,
684
+ WAKE_STAT_ATTRIBUTE_CMD_EVENT_COUNT,
685
+ WAKE_STAT_ATTRIBUTE_CMD_EVENT_COUNT_USED,
686
+ WAKE_STAT_ATTRIBUTE_TOTAL_DRIVER_FW,
687
+ WAKE_STAT_ATTRIBUTE_DRIVER_FW_WAKE,
688
+ WAKE_STAT_ATTRIBUTE_DRIVER_FW_COUNT,
689
+ WAKE_STAT_ATTRIBUTE_DRIVER_FW_COUNT_USED,
690
+ WAKE_STAT_ATTRIBUTE_TOTAL_RX_DATA_WAKE,
691
+ WAKE_STAT_ATTRIBUTE_RX_UNICAST_COUNT,
692
+ WAKE_STAT_ATTRIBUTE_RX_MULTICAST_COUNT,
693
+ WAKE_STAT_ATTRIBUTE_RX_BROADCAST_COUNT,
694
+ WAKE_STAT_ATTRIBUTE_RX_ICMP_PKT,
695
+ WAKE_STAT_ATTRIBUTE_RX_ICMP6_PKT,
696
+ WAKE_STAT_ATTRIBUTE_RX_ICMP6_RA,
697
+ WAKE_STAT_ATTRIBUTE_RX_ICMP6_NA,
698
+ WAKE_STAT_ATTRIBUTE_RX_ICMP6_NS,
699
+ WAKE_STAT_ATTRIBUTE_IPV4_RX_MULTICAST_ADD_CNT,
700
+ WAKE_STAT_ATTRIBUTE_IPV6_RX_MULTICAST_ADD_CNT,
701
+ WAKE_STAT_ATTRIBUTE_OTHER_RX_MULTICAST_ADD_CNT,
702
+ WAKE_STAT_ATTRIBUTE_RX_MULTICAST_PKT_INFO,
703
+ WAKE_STAT_ATTRIBUTE_MAX
704
+};
705
+
706
+typedef struct rx_data_cnt_details_t {
707
+ int rx_unicast_cnt; /* Total rx unicast packet which woke up host */
708
+ int rx_multicast_cnt; /* Total rx multicast packet which woke up host */
709
+ int rx_broadcast_cnt; /* Total rx broadcast packet which woke up host */
710
+} RX_DATA_WAKE_CNT_DETAILS;
711
+
712
+typedef struct rx_wake_pkt_type_classification_t {
713
+ int icmp_pkt; /* wake icmp packet count */
714
+ int icmp6_pkt; /* wake icmp6 packet count */
715
+ int icmp6_ra; /* wake icmp6 RA packet count */
716
+ int icmp6_na; /* wake icmp6 NA packet count */
717
+ int icmp6_ns; /* wake icmp6 NS packet count */
718
+} RX_WAKE_PKT_TYPE_CLASSFICATION;
719
+
720
+typedef struct rx_multicast_cnt_t {
721
+ int ipv4_rx_multicast_addr_cnt; /* Rx wake packet was ipv4 multicast */
722
+ int ipv6_rx_multicast_addr_cnt; /* Rx wake packet was ipv6 multicast */
723
+ int other_rx_multicast_addr_cnt; /* Rx wake packet was non-ipv4 and non-ipv6 */
724
+} RX_MULTICAST_WAKE_DATA_CNT;
725
+
726
+typedef struct wlan_driver_wake_reason_cnt_t {
727
+ int total_cmd_event_wake; /* Total count of cmd event wakes */
728
+ int *cmd_event_wake_cnt; /* Individual wake count array, each index a reason */
729
+ int cmd_event_wake_cnt_sz; /* Max number of cmd event wake reasons */
730
+ int cmd_event_wake_cnt_used; /* Number of cmd event wake reasons specific to the driver */
731
+ int total_driver_fw_local_wake; /* Total count of drive/fw wakes, for local reasons */
732
+ int *driver_fw_local_wake_cnt; /* Individual wake count array, each index a reason */
733
+ int driver_fw_local_wake_cnt_sz; /* Max number of local driver/fw wake reasons */
734
+ /* Number of local driver/fw wake reasons specific to the driver */
735
+ int driver_fw_local_wake_cnt_used;
736
+ int total_rx_data_wake; /* total data rx packets, that woke up host */
737
+ RX_DATA_WAKE_CNT_DETAILS rx_wake_details;
738
+ RX_WAKE_PKT_TYPE_CLASSFICATION rx_wake_pkt_classification_info;
739
+ RX_MULTICAST_WAKE_DATA_CNT rx_multicast_wake_pkt_info;
740
+} WLAN_DRIVER_WAKE_REASON_CNT;
741
+#endif /* DHD_WAKE_STATUS */
742
+
743
+typedef enum {
744
+ SET_HAL_START_ATTRIBUTE_DEINIT = 0x0001,
745
+ SET_HAL_START_ATTRIBUTE_PRE_INIT = 0x0002,
746
+ SET_HAL_START_ATTRIBUTE_EVENT_SOCK_PID = 0x0003,
747
+ SET_HAL_START_ATTRIBUTE_MAX
748
+} SET_HAL_START_ATTRIBUTE;
749
+
750
+typedef enum {
751
+ CHAVOID_ATTRIBUTE_INVALID = 0,
752
+ CHAVOID_ATTRIBUTE_CNT = 1,
753
+ CHAVOID_ATTRIBUTE_CONFIG = 2,
754
+ CHAVOID_ATTRIBUTE_BAND = 3,
755
+ CHAVOID_ATTRIBUTE_CHANNEL = 4,
756
+ CHAVOID_ATTRIBUTE_PWRCAP = 5,
757
+ CHAVOID_ATTRIBUTE_MANDATORY = 6,
758
+ CHAVOID_ATTRIBUTE_MAX
759
+} CHAVOID_ATTRIBUTE;
760
+
761
+typedef enum {
762
+ USABLECHAN_ATTRIBUTE_INVALID = 0,
763
+ USABLECHAN_ATTRIBUTE_BAND = 1,
764
+ USABLECHAN_ATTRIBUTE_IFACE = 2,
765
+ USABLECHAN_ATTRIBUTE_FILTER = 3,
766
+ USABLECHAN_ATTRIBUTE_MAX_SIZE = 4,
767
+ USABLECHAN_ATTRIBUTE_SIZE = 5,
768
+ USABLECHAN_ATTRIBUTE_CHANNELS = 6,
769
+ USABLECHAN_ATTRIBUTE_MAX
770
+} USABLECHAN_ATTRIBUTE;
771
+
772
+typedef enum {
773
+ /**
774
+ * Usage:
775
+ * - This will be sent down for make before break use-case.
776
+ * - Platform is trying to speculatively connect to a second network and evaluate it without
777
+ * disrupting the primary connection.
778
+ *
779
+ * Requirements for Firmware:
780
+ * - Do not reduce the number of tx/rx chains of primary connection.
781
+ * - If using MCC, should set the MCC duty cycle of the primary connection to be higher than
782
+ * the secondary connection (maybe 70/30 split).
783
+ * - Should pick the best BSSID for the secondary STA (disregard the chip mode)
784
+ * independent of the primary STA:
785
+ * - Don't optimize for DBS vs MCC/SCC
786
+ * - Should not impact the primary connections bssid selection:
787
+ * - Don't downgrade chains of the existing primary connection.
788
+ * - Don't optimize for DBS vs MCC/SCC.
789
+ */
790
+ WIFI_DUAL_STA_TRANSIENT_PREFER_PRIMARY = 0,
791
+ /**
792
+ * Usage:
793
+ * - This will be sent down for any app requested peer to peer connections.
794
+ * - In this case, both the connections needs to be allocated equal resources.
795
+ * - For the peer to peer use case, BSSID for the secondary connection will be chosen by the
796
+ * framework.
797
+ *
798
+ * Requirements for Firmware:
799
+ * - Can choose MCC or DBS mode depending on the MCC efficiency and HW capability.
800
+ * - If using MCC, set the MCC duty cycle of the primary connection to be equal to the
801
+ * secondary connection.
802
+ * - Prefer BSSID candidates which will help provide the best "overall" performance for
803
+ * both the connections.
804
+ */
805
+ WIFI_DUAL_STA_NON_TRANSIENT_UNBIASED = 1
806
+} wifi_multi_sta_use_case;
807
+
808
+typedef enum {
809
+ MULTISTA_ATTRIBUTE_PRIM_CONN_IFACE,
810
+ MULTISTA_ATTRIBUTE_USE_CASE,
811
+ MULTISTA_ATTRIBUTE_MAX
812
+} MULTISTA_ATTRIBUTE;
813
+
814
+#ifdef WL_WIPSEVT
815
+#define BRCM_VENDOR_WIPS_EVENT_BUF_LEN 128
816
+typedef enum wl_vendor_wips_attr_type {
817
+ WIPS_ATTR_DEAUTH_CNT = 1,
818
+ WPPS_ATTR_DEAUTH_BSSID
819
+} wl_vendor_wips_attr_type_t;
820
+#endif /* WL_WIPSEVT */
821
+
822
+/* Chipset roaming capabilities */
823
+typedef struct wifi_roaming_capabilities {
824
+ u32 max_blacklist_size;
825
+ u32 max_whitelist_size;
826
+} wifi_roaming_capabilities_t;
827
+
828
+/* sync-up return code with wifi_hal.h in wifi_hal layer. */
829
+typedef enum {
830
+ WIFI_SUCCESS = 0,
831
+ WIFI_ERROR_NONE = 0,
832
+ WIFI_ERROR_UNKNOWN = -1,
833
+ WIFI_ERROR_UNINITIALIZED = -2,
834
+ WIFI_ERROR_NOT_SUPPORTED = -3,
835
+ WIFI_ERROR_NOT_AVAILABLE = -4, /* Not available right now, but try later */
836
+ WIFI_ERROR_INVALID_ARGS = -5,
837
+ WIFI_ERROR_INVALID_REQUEST_ID = -6,
838
+ WIFI_ERROR_TIMED_OUT = -7,
839
+ WIFI_ERROR_TOO_MANY_REQUESTS = -8, /* Too many instances of this request */
840
+ WIFI_ERROR_OUT_OF_MEMORY = -9,
841
+ WIFI_ERROR_BUSY = -10
842
+} wifi_error;
402843
403844 /* Capture the BRCM_VENDOR_SUBCMD_PRIV_STRINGS* here */
404845 #define BRCM_VENDOR_SCMD_CAPA "cap"
846
+#define MEMDUMP_PATH_LEN 128
405847
406
-#if defined(WL_VENDOR_EXT_SUPPORT) || defined(CONFIG_BCMDHD_VENDOR_EXT)
407
-extern int wl_cfgvendor_attach(struct wiphy *wiphy, struct dhd_pub *dhd);
848
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(3, 13, 0)) || defined(WL_VENDOR_EXT_SUPPORT)
849
+extern int wl_cfgvendor_attach(struct wiphy *wiphy, dhd_pub_t *dhd);
408850 extern int wl_cfgvendor_detach(struct wiphy *wiphy);
409851 extern int wl_cfgvendor_send_async_event(struct wiphy *wiphy,
410852 struct net_device *dev, int event_id, const void *data, int len);
411853 extern int wl_cfgvendor_send_hotlist_event(struct wiphy *wiphy,
412854 struct net_device *dev, void *data, int len, wl_vendor_event_t event);
413855 #else
414
-static INLINE int cfgvendor_attach(struct wiphy *wiphy, dhd_pub_t *dhd) { return 0; }
415
-static INLINE int cfgvendor_detach(struct wiphy *wiphy) { return 0; }
856
+static INLINE int wl_cfgvendor_attach(struct wiphy *wiphy,
857
+ dhd_pub_t *dhd) { UNUSED_PARAMETER(wiphy); UNUSED_PARAMETER(dhd); return 0; }
858
+static INLINE int wl_cfgvendor_detach(struct wiphy *wiphy) { UNUSED_PARAMETER(wiphy); return 0; }
416859 static INLINE int wl_cfgvendor_send_async_event(struct wiphy *wiphy,
417
- struct net_device *dev, int event_id, const void *data, int len) { return 0; }
418
-#endif /* defined(WL_VENDOR_EXT_SUPPORT) || defined(CONFIG_BCMDHD_VENDOR_EXT) */
860
+ struct net_device *dev, int event_id, const void *data, int len)
861
+{ return 0; }
862
+static INLINE int wl_cfgvendor_send_hotlist_event(struct wiphy *wiphy,
863
+ struct net_device *dev, void *data, int len, wl_vendor_event_t event)
864
+{ return 0; }
865
+#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(3, 13, 0)) || defined(WL_VENDOR_EXT_SUPPORT) */
419866
867
+#if defined(WL_SUPP_EVENT) && ((LINUX_VERSION_CODE > KERNEL_VERSION(3, 13, 0)) || \
868
+ defined(WL_VENDOR_EXT_SUPPORT))
869
+extern int wl_cfgvendor_send_supp_eventstring(const char *func, const char *fmt, ...);
870
+int wl_cfgvendor_notify_supp_event_str(const char *evt_name, const char *fmt, ...);
871
+#define SUPP_LOG_LEN 256
872
+#define PRINT_SUPP_LOG(fmt, ...) \
873
+ wl_cfgvendor_send_supp_eventstring(__func__, fmt, ##__VA_ARGS__);
874
+#define SUPP_LOG(args) PRINT_SUPP_LOG args;
875
+#define SUPP_EVT_LOG(evt_name, fmt, ...) \
876
+ wl_cfgvendor_notify_supp_event_str(evt_name, fmt, ##__VA_ARGS__);
877
+#define SUPP_EVENT(args) SUPP_EVT_LOG args
878
+#else
879
+#define SUPP_LOG(x)
880
+#define SUPP_EVENT(x)
881
+#endif /* WL_SUPP_EVENT && (kernel > (3, 13, 0)) || WL_VENDOR_EXT_SUPPORT */
882
+
883
+#define COMPAT_ASSIGN_VALUE(normal_structure, member, value) \
884
+ normal_structure.member = value;
885
+
886
+#if (defined(CONFIG_ARCH_MSM) && defined(SUPPORT_WDEV_CFG80211_VENDOR_EVENT_ALLOC)) || \
887
+ LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0)
888
+#define CFG80211_VENDOR_EVENT_ALLOC(wiphy, wdev, len, type, kflags) \
889
+ cfg80211_vendor_event_alloc(wiphy, wdev, len, type, kflags);
890
+#else
891
+#define CFG80211_VENDOR_EVENT_ALLOC(wiphy, wdev, len, type, kflags) \
892
+ cfg80211_vendor_event_alloc(wiphy, len, type, kflags);
893
+#endif /* (defined(CONFIG_ARCH_MSM) && defined(SUPPORT_WDEV_CFG80211_VENDOR_EVENT_ALLOC)) || */
894
+ /* LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0) */
895
+
896
+#ifdef WL_CFGVENDOR_SEND_HANG_EVENT
897
+void wl_cfgvendor_send_hang_event(struct net_device *dev, u16 reason);
898
+void wl_copy_hang_info_if_falure(struct net_device *dev, u16 reason, s32 ret);
899
+#endif /* WL_CFGVENDOR_SEND_HANG_EVENT */
420900 #endif /* _wl_cfgvendor_h_ */