hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/include/bcmevent.h
old mode 100644new mode 100755
....@@ -313,10 +313,11 @@
313313 #define WLC_E_AP_BCN_DRIFT 192 /* Beacon Drift event */
314314 #define WLC_E_PFN_SCAN_ALLGONE_EXT 193 /* last found PFN network gets lost. */
315315 #define WLC_E_AUTH_START 194 /* notify upper layer to start auth */
316
-#define WLC_E_TWT 195 /* TWT event */
317
-#define WLC_E_LAST 196 /* highest val + 1 for range checking */
318
-#if (WLC_E_LAST > 196)
319
-#error "WLC_E_LAST: Invalid value for last event; must be <= 196."
316
+#define WLC_E_TWT_TEARDOWN 195 /* TWT Teardown Complete Event */
317
+#define WLC_E_TWT_INFO_FRM 196 /* TWT Info Event Notification */
318
+#define WLC_E_LAST 197 /* highest val + 1 for range checking */
319
+#if (WLC_E_LAST > 197)
320
+#error "WLC_E_LAST: Invalid value for last event; must be <= 197."
320321 #endif /* WLC_E_LAST */
321322
322323 /* define an API for getting the string name of an event */
....@@ -1237,46 +1238,16 @@
12371238 * own TWT parameter.
12381239 */
12391240
1240
-#define WL_TWT_EVENT_HDR_LEN (SIZE_OF(wl_twt_event_t, version) + SIZE_OF(wl_twt_event_t, length))
1241
-#define WL_TWT_EVENT_BASE_LEN sizeof(wl_twt_event_t)
1242
-typedef enum wl_twt_event_type {
1243
- WL_TWT_EVENT_SETUP = 1,
1244
- WL_TWT_EVENT_TEARDOWN = 2,
1245
- WL_TWT_EVENT_INFOFRM = 3,
1246
- WL_TWT_EVENT_NOTIFY = 4
1247
-} wl_twt_event_type_t;
1248
-
1249
-#define WL_TWT_EVENT_VER 0u
1250
-
1251
-/* WLC_E_TWT event Main-event */
1252
-typedef struct wl_twt_event {
1253
- uint16 version;
1254
- uint16 length; /* the byte count of fields from 'event_type' onwards */
1255
- uint8 event_type; /* See sub event types in wl_twt_event_type_t */
1256
- uint8 PAD[3];
1257
- uint8 event_info[];
1258
-} wl_twt_event_t;
1259
-
1260
-/* TWT Setup Completion is designed to notify the user of TWT Setup process
1261
- * status. When 'status' field is value of BCME_OK, the user must check the
1262
- * 'setup_cmd' field value in 'wl_twt_sdesc_t' structure that at the end of
1263
- * the event data to see the response from the TWT Responding STA; when
1264
- * 'status' field is value of BCME_ERROR or non BCME_OK, user must not use
1265
- * anything from 'wl_twt_sdesc_t' structure as it is the TWT Requesting STA's
1266
- * own TWT parameter.
1267
- */
1268
-
12691241 #define WL_TWT_SETUP_CPLT_VER 0u
12701242
12711243 /* TWT Setup Reason code */
12721244 typedef enum wl_twt_setup_rc {
1273
- WL_TWT_SETUP_RC_ACCEPT = 0u, /* TWT Setup Accepted */
1274
- WL_TWT_SETUP_RC_REJECT = 1u, /* TWT Setup Rejected */
1275
- WL_TWT_SETUP_RC_TIMEOUT = 2u, /* TWT Setup Time-out */
1276
- WL_TWT_SETUP_RC_IE = 3u, /* TWT Setup IE Validation failed */
1277
- WL_TWT_SETUP_RC_PARAMS = 4u, /* TWT Setup IE Params invalid */
1278
- /* Any new reason code add before this */
1279
- WL_TWT_SETUP_RC_ERROR = 255u, /* Generic Error cases */
1245
+ WL_TWT_SETUP_RC_ACCEPT = 0, /* TWT Setup Accepted */
1246
+ WL_TWT_SETUP_RC_REJECT = 1, /* TWT Setup Rejected */
1247
+ WL_TWT_SETUP_RC_TIMEOUT = 2, /* TWT Setup Time-out */
1248
+ WL_TWT_SETUP_RC_IE = 3, /* TWT Setup IE Validation failed */
1249
+ WL_TWT_SETUP_RC_PARAMS = 4, /* TWT Setup IE Params invalid */
1250
+ WL_TWT_SETUP_RC_ERROR = 5, /* Generic Error cases */
12801251 } wl_twt_setup_rc_t;
12811252
12821253 /* TWT Setup Completion event data */
....@@ -1285,8 +1256,7 @@
12851256 uint16 length; /* the byte count of fields from 'dialog' onwards */
12861257 uint8 dialog; /* Setup frame dialog token */
12871258 uint8 reason_code; /* see WL_TWT_SETUP_RC_XXXX */
1288
- uint8 configID; /* TWT Configuration ID */
1289
- uint8 pad[1];
1259
+ uint8 pad[2];
12901260 int32 status;
12911261 /* wl_twt_sdesc_t desc; - defined in wlioctl.h */
12921262 } wl_twt_setup_cplt_t;
....@@ -1295,25 +1265,24 @@
12951265
12961266 /* TWT teardown Reason code */
12971267 typedef enum wl_twt_td_rc {
1298
- WL_TWT_TD_RC_HOST = 0u, /* Teardown triggered by Host */
1299
- WL_TWT_TD_RC_PEER = 1u, /* Peer initiated teardown */
1300
- WL_TWT_TD_RC_MCHAN = 2u, /* Teardown due to MCHAN Active */
1301
- WL_TWT_TD_RC_MCNX = 3u, /* Teardown due to MultiConnection */
1302
- WL_TWT_TD_RC_CSA = 4u, /* Teardown due to CSA */
1303
- WL_TWT_TD_RC_BTCX = 5u, /* Teardown due to BTCX */
1304
- WL_TWT_TD_RC_SETUP_FAIL = 6u, /* Setup fail midway. Teardown all connections */
1305
- WL_TWT_TD_RC_SCHED = 7u, /* Teardown by TWT Scheduler */
1306
- /* Any new reason code add before this */
1307
- WL_TWT_TD_RC_ERROR = 255u, /* Generic Error cases */
1268
+ WL_TWT_TD_RC_SUCCESS = 0, /* Teardown complete Successful */
1269
+ WL_TWT_TD_RC_HOST = 1, /* Teardown triggered by Host */
1270
+ WL_TWT_TD_RC_PEER = 2, /* Peer initiated teardown */
1271
+ WL_TWT_TD_RC_MCHAN = 3, /* Teardown due to MCHAN Active */
1272
+ WL_TWT_TD_RC_MCNX = 4, /* Teardown due to MultiConnection */
1273
+ WL_TWT_TD_RC_SETUP_FAIL = 5, /* Setup fail midway. Teardown all connections */
1274
+ WL_TWT_TD_RC_SCHED = 6, /* Teardown by TWT Scheduler */
1275
+ WL_TWT_TD_RC_CSA = 7, /* Teardown due to CSA */
1276
+ WL_TWT_TD_RC_BTCX = 8, /* Teardown due to BTCX */
1277
+ WL_TWT_TD_RC_ERROR = 9, /* Generic Error cases */
13081278 } wl_twt_td_rc_t;
13091279
13101280 /* TWT Teardown complete event data */
13111281 typedef struct wl_twt_teardown_cplt {
13121282 uint16 version;
1313
- uint16 length; /* the byte count of fields from 'reason_code' onwards */
1283
+ uint16 length; /* the byte count of fields from 'reason_code' onwards */
13141284 uint8 reason_code; /* WL_TWT_TD_RC_XXXX */
1315
- uint8 configID; /* TWT Configuration ID */
1316
- uint8 pad[2];
1285
+ uint8 pad[3];
13171286 int32 status;
13181287 /* wl_twt_teardesc_t; - defined in wlioctl.h */
13191288 } wl_twt_teardown_cplt_t;
....@@ -1322,38 +1291,20 @@
13221291
13231292 /* TWT Info Reason code */
13241293 typedef enum wl_twt_info_rc {
1325
- WL_TWT_INFO_RC_HOST = 0u, /* Host initiated Info complete */
1326
- WL_TWT_INFO_RC_PEER = 1u, /* Peer initiated TWT Info */
1327
- /* Any new reason code add before this */
1328
- WL_TWT_INFO_RC_ERROR = 255u, /* generic error conditions */
1294
+ WL_TWT_INFO_RC_HOST = 0, /* Host initiated Info complete */
1295
+ WL_TWT_INFO_RC_PEER = 1, /* Peer initiated TWT Info */
1296
+ WL_TWT_INFO_RC_ERROR = 2, /* generic error conditions */
13291297 } wl_twt_info_rc_t;
13301298
13311299 /* TWT Info complete event data */
13321300 typedef struct wl_twt_info_cplt {
13331301 uint16 version;
13341302 uint16 length; /* the byte count of fields from 'reason_code' onwards */
1335
- uint8 reason_code; /* WL_TWT_INFO_RC_XXXX */
1336
- uint8 configID; /* TWT Configuration ID */
1337
- uint8 pad[2];
1303
+ uint8 reason_code; /* WL_TWT_INFO_RC_XXXX */
1304
+ uint8 pad[3];
13381305 int32 status;
13391306 /* wl_twt_infodesc_t; - defined in wlioctl.h */
13401307 } wl_twt_info_cplt_t;
1341
-
1342
-#define WL_TWT_NOTIFY_VER 0u
1343
-#define WL_TWT_NOTIFY_LEN sizeof(wl_twt_notify_t)
1344
-#define WL_TWT_NOTIFY_HDR_LEN (SIZE_OF(wl_twt_notify_t, version) + SIZE_OF(wl_twt_notify_t, length))
1345
-
1346
-typedef enum wl_twt_notification {
1347
- WL_TWT_NOTIF_ALLOW_TWT = 1, /* Dongle indication of allowing TWT setup */
1348
-} wl_twt_notification_t;
1349
-
1350
-/* TWT notification event */
1351
-typedef struct wl_twt_notify {
1352
- uint16 version;
1353
- uint16 length; /* the byte count of fields from 'reason_code' onwards */
1354
- uint8 notification;
1355
- uint8 PAD[3];
1356
-} wl_twt_notify_t;
13571308
13581309 #define WL_INVALID_IE_EVENT_VERSION 0
13591310