old mode 100644new mode 100755.. | .. |
---|
313 | 313 | #define WLC_E_AP_BCN_DRIFT 192 /* Beacon Drift event */ |
---|
314 | 314 | #define WLC_E_PFN_SCAN_ALLGONE_EXT 193 /* last found PFN network gets lost. */ |
---|
315 | 315 | #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." |
---|
320 | 321 | #endif /* WLC_E_LAST */ |
---|
321 | 322 | |
---|
322 | 323 | /* define an API for getting the string name of an event */ |
---|
.. | .. |
---|
1237 | 1238 | * own TWT parameter. |
---|
1238 | 1239 | */ |
---|
1239 | 1240 | |
---|
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 | | - |
---|
1269 | 1241 | #define WL_TWT_SETUP_CPLT_VER 0u |
---|
1270 | 1242 | |
---|
1271 | 1243 | /* TWT Setup Reason code */ |
---|
1272 | 1244 | 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 */ |
---|
1280 | 1251 | } wl_twt_setup_rc_t; |
---|
1281 | 1252 | |
---|
1282 | 1253 | /* TWT Setup Completion event data */ |
---|
.. | .. |
---|
1285 | 1256 | uint16 length; /* the byte count of fields from 'dialog' onwards */ |
---|
1286 | 1257 | uint8 dialog; /* Setup frame dialog token */ |
---|
1287 | 1258 | uint8 reason_code; /* see WL_TWT_SETUP_RC_XXXX */ |
---|
1288 | | - uint8 configID; /* TWT Configuration ID */ |
---|
1289 | | - uint8 pad[1]; |
---|
| 1259 | + uint8 pad[2]; |
---|
1290 | 1260 | int32 status; |
---|
1291 | 1261 | /* wl_twt_sdesc_t desc; - defined in wlioctl.h */ |
---|
1292 | 1262 | } wl_twt_setup_cplt_t; |
---|
.. | .. |
---|
1295 | 1265 | |
---|
1296 | 1266 | /* TWT teardown Reason code */ |
---|
1297 | 1267 | 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 */ |
---|
1308 | 1278 | } wl_twt_td_rc_t; |
---|
1309 | 1279 | |
---|
1310 | 1280 | /* TWT Teardown complete event data */ |
---|
1311 | 1281 | typedef struct wl_twt_teardown_cplt { |
---|
1312 | 1282 | 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 */ |
---|
1314 | 1284 | uint8 reason_code; /* WL_TWT_TD_RC_XXXX */ |
---|
1315 | | - uint8 configID; /* TWT Configuration ID */ |
---|
1316 | | - uint8 pad[2]; |
---|
| 1285 | + uint8 pad[3]; |
---|
1317 | 1286 | int32 status; |
---|
1318 | 1287 | /* wl_twt_teardesc_t; - defined in wlioctl.h */ |
---|
1319 | 1288 | } wl_twt_teardown_cplt_t; |
---|
.. | .. |
---|
1322 | 1291 | |
---|
1323 | 1292 | /* TWT Info Reason code */ |
---|
1324 | 1293 | 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 */ |
---|
1329 | 1297 | } wl_twt_info_rc_t; |
---|
1330 | 1298 | |
---|
1331 | 1299 | /* TWT Info complete event data */ |
---|
1332 | 1300 | typedef struct wl_twt_info_cplt { |
---|
1333 | 1301 | uint16 version; |
---|
1334 | 1302 | 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]; |
---|
1338 | 1305 | int32 status; |
---|
1339 | 1306 | /* wl_twt_infodesc_t; - defined in wlioctl.h */ |
---|
1340 | 1307 | } 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; |
---|
1357 | 1308 | |
---|
1358 | 1309 | #define WL_INVALID_IE_EVENT_VERSION 0 |
---|
1359 | 1310 | |
---|