Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: wfx: align members declarations in hif API

Hardware API headers were not uniformly aligned.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200406111756.154086-8-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jérôme Pouiller and committed by
Greg Kroah-Hartman
fac592d0 31db18cc

+572 -572
+242 -242
drivers/staging/wfx/hif_api_cmd.h
··· 13 13 #define HIF_API_SSID_SIZE API_SSID_SIZE 14 14 15 15 enum hif_requests_ids { 16 - HIF_REQ_ID_RESET = 0x0a, 17 - HIF_REQ_ID_READ_MIB = 0x05, 18 - HIF_REQ_ID_WRITE_MIB = 0x06, 19 - HIF_REQ_ID_START_SCAN = 0x07, 20 - HIF_REQ_ID_STOP_SCAN = 0x08, 21 - HIF_REQ_ID_TX = 0x04, 22 - HIF_REQ_ID_JOIN = 0x0b, 23 - HIF_REQ_ID_SET_PM_MODE = 0x10, 24 - HIF_REQ_ID_SET_BSS_PARAMS = 0x11, 25 - HIF_REQ_ID_ADD_KEY = 0x0c, 26 - HIF_REQ_ID_REMOVE_KEY = 0x0d, 27 - HIF_REQ_ID_EDCA_QUEUE_PARAMS = 0x13, 28 - HIF_REQ_ID_START = 0x17, 29 - HIF_REQ_ID_BEACON_TRANSMIT = 0x18, 30 - HIF_REQ_ID_UPDATE_IE = 0x1b, 31 - HIF_REQ_ID_MAP_LINK = 0x1c, 16 + HIF_REQ_ID_RESET = 0x0a, 17 + HIF_REQ_ID_READ_MIB = 0x05, 18 + HIF_REQ_ID_WRITE_MIB = 0x06, 19 + HIF_REQ_ID_START_SCAN = 0x07, 20 + HIF_REQ_ID_STOP_SCAN = 0x08, 21 + HIF_REQ_ID_TX = 0x04, 22 + HIF_REQ_ID_JOIN = 0x0b, 23 + HIF_REQ_ID_SET_PM_MODE = 0x10, 24 + HIF_REQ_ID_SET_BSS_PARAMS = 0x11, 25 + HIF_REQ_ID_ADD_KEY = 0x0c, 26 + HIF_REQ_ID_REMOVE_KEY = 0x0d, 27 + HIF_REQ_ID_EDCA_QUEUE_PARAMS = 0x13, 28 + HIF_REQ_ID_START = 0x17, 29 + HIF_REQ_ID_BEACON_TRANSMIT = 0x18, 30 + HIF_REQ_ID_UPDATE_IE = 0x1b, 31 + HIF_REQ_ID_MAP_LINK = 0x1c, 32 32 }; 33 33 34 34 enum hif_confirmations_ids { 35 - HIF_CNF_ID_RESET = 0x0a, 36 - HIF_CNF_ID_READ_MIB = 0x05, 37 - HIF_CNF_ID_WRITE_MIB = 0x06, 38 - HIF_CNF_ID_START_SCAN = 0x07, 39 - HIF_CNF_ID_STOP_SCAN = 0x08, 40 - HIF_CNF_ID_TX = 0x04, 41 - HIF_CNF_ID_MULTI_TRANSMIT = 0x1e, 42 - HIF_CNF_ID_JOIN = 0x0b, 43 - HIF_CNF_ID_SET_PM_MODE = 0x10, 44 - HIF_CNF_ID_SET_BSS_PARAMS = 0x11, 45 - HIF_CNF_ID_ADD_KEY = 0x0c, 46 - HIF_CNF_ID_REMOVE_KEY = 0x0d, 47 - HIF_CNF_ID_EDCA_QUEUE_PARAMS = 0x13, 48 - HIF_CNF_ID_START = 0x17, 49 - HIF_CNF_ID_BEACON_TRANSMIT = 0x18, 50 - HIF_CNF_ID_UPDATE_IE = 0x1b, 51 - HIF_CNF_ID_MAP_LINK = 0x1c, 35 + HIF_CNF_ID_RESET = 0x0a, 36 + HIF_CNF_ID_READ_MIB = 0x05, 37 + HIF_CNF_ID_WRITE_MIB = 0x06, 38 + HIF_CNF_ID_START_SCAN = 0x07, 39 + HIF_CNF_ID_STOP_SCAN = 0x08, 40 + HIF_CNF_ID_TX = 0x04, 41 + HIF_CNF_ID_MULTI_TRANSMIT = 0x1e, 42 + HIF_CNF_ID_JOIN = 0x0b, 43 + HIF_CNF_ID_SET_PM_MODE = 0x10, 44 + HIF_CNF_ID_SET_BSS_PARAMS = 0x11, 45 + HIF_CNF_ID_ADD_KEY = 0x0c, 46 + HIF_CNF_ID_REMOVE_KEY = 0x0d, 47 + HIF_CNF_ID_EDCA_QUEUE_PARAMS = 0x13, 48 + HIF_CNF_ID_START = 0x17, 49 + HIF_CNF_ID_BEACON_TRANSMIT = 0x18, 50 + HIF_CNF_ID_UPDATE_IE = 0x1b, 51 + HIF_CNF_ID_MAP_LINK = 0x1c, 52 52 }; 53 53 54 54 enum hif_indications_ids { 55 - HIF_IND_ID_RX = 0x84, 56 - HIF_IND_ID_SCAN_CMPL = 0x86, 57 - HIF_IND_ID_JOIN_COMPLETE = 0x8f, 58 - HIF_IND_ID_SET_PM_MODE_CMPL = 0x89, 59 - HIF_IND_ID_SUSPEND_RESUME_TX = 0x8c, 60 - HIF_IND_ID_EVENT = 0x85 55 + HIF_IND_ID_RX = 0x84, 56 + HIF_IND_ID_SCAN_CMPL = 0x86, 57 + HIF_IND_ID_JOIN_COMPLETE = 0x8f, 58 + HIF_IND_ID_SET_PM_MODE_CMPL = 0x89, 59 + HIF_IND_ID_SUSPEND_RESUME_TX = 0x8c, 60 + HIF_IND_ID_EVENT = 0x85 61 61 }; 62 62 63 63 union hif_commands_ids { ··· 67 67 }; 68 68 69 69 enum hif_status { 70 - HIF_STATUS_SUCCESS = 0x0, 71 - HIF_STATUS_FAILURE = 0x1, 72 - HIF_INVALID_PARAMETER = 0x2, 73 - HIF_STATUS_WARNING = 0x3, 74 - HIF_ERROR_UNSUPPORTED_MSG_ID = 0x4, 75 - HIF_STATUS_DECRYPTFAILURE = 0x10, 76 - HIF_STATUS_MICFAILURE = 0x11, 77 - HIF_STATUS_NO_KEY_FOUND = 0x12, 78 - HIF_STATUS_RETRY_EXCEEDED = 0x13, 79 - HIF_STATUS_TX_LIFETIME_EXCEEDED = 0x14, 80 - HIF_REQUEUE = 0x15, 81 - HIF_STATUS_REFUSED = 0x16, 82 - HIF_STATUS_BUSY = 0x17 70 + HIF_STATUS_SUCCESS = 0x0, 71 + HIF_STATUS_FAILURE = 0x1, 72 + HIF_INVALID_PARAMETER = 0x2, 73 + HIF_STATUS_WARNING = 0x3, 74 + HIF_ERROR_UNSUPPORTED_MSG_ID = 0x4, 75 + HIF_STATUS_DECRYPTFAILURE = 0x10, 76 + HIF_STATUS_MICFAILURE = 0x11, 77 + HIF_STATUS_NO_KEY_FOUND = 0x12, 78 + HIF_STATUS_RETRY_EXCEEDED = 0x13, 79 + HIF_STATUS_TX_LIFETIME_EXCEEDED = 0x14, 80 + HIF_REQUEUE = 0x15, 81 + HIF_STATUS_REFUSED = 0x16, 82 + HIF_STATUS_BUSY = 0x17 83 83 }; 84 84 85 85 struct hif_reset_flags { 86 - u8 reset_stat:1; 87 - u8 reset_all_int:1; 88 - u8 reserved1:6; 89 - u8 reserved2[3]; 86 + u8 reset_stat:1; 87 + u8 reset_all_int:1; 88 + u8 reserved1:6; 89 + u8 reserved2[3]; 90 90 } __packed; 91 91 92 92 struct hif_req_reset { ··· 102 102 __le32 status; 103 103 __le16 mib_id; 104 104 __le16 length; 105 - u8 mib_data[]; 105 + u8 mib_data[]; 106 106 } __packed; 107 107 108 108 struct hif_req_write_mib { 109 109 __le16 mib_id; 110 110 __le16 length; 111 - u8 mib_data[]; 111 + u8 mib_data[]; 112 112 } __packed; 113 113 114 114 struct hif_cnf_write_mib { ··· 116 116 } __packed; 117 117 118 118 struct hif_ie_flags { 119 - u8 beacon:1; 120 - u8 probe_resp:1; 121 - u8 probe_req:1; 122 - u8 reserved1:5; 123 - u8 reserved2; 119 + u8 beacon:1; 120 + u8 probe_resp:1; 121 + u8 probe_req:1; 122 + u8 reserved1:5; 123 + u8 reserved2; 124 124 } __packed; 125 125 126 126 struct hif_ie_tlv { 127 - u8 type; 128 - u8 length; 129 - u8 data[]; 127 + u8 type; 128 + u8 length; 129 + u8 data[]; 130 130 } __packed; 131 131 132 132 struct hif_req_update_ie { ··· 140 140 } __packed; 141 141 142 142 struct hif_scan_type { 143 - u8 type:1; 144 - u8 mode:1; 145 - u8 reserved:6; 143 + u8 type:1; 144 + u8 mode:1; 145 + u8 reserved:6; 146 146 } __packed; 147 147 148 148 struct hif_scan_flags { 149 - u8 fbg:1; 150 - u8 reserved1:1; 151 - u8 pre:1; 152 - u8 reserved2:5; 149 + u8 fbg:1; 150 + u8 reserved1:1; 151 + u8 pre:1; 152 + u8 reserved2:5; 153 153 } __packed; 154 154 155 155 struct hif_auto_scan_param { 156 156 __le16 interval; 157 - u8 reserved; 157 + u8 reserved; 158 158 s8 rssi_thr; 159 159 } __packed; 160 160 161 161 struct hif_ssid_def { 162 162 __le32 ssid_length; 163 - u8 ssid[HIF_API_SSID_SIZE]; 163 + u8 ssid[HIF_API_SSID_SIZE]; 164 164 } __packed; 165 165 166 166 #define HIF_API_MAX_NB_SSIDS 2 167 167 #define HIF_API_MAX_NB_CHANNELS 14 168 168 169 169 struct hif_req_start_scan_alt { 170 - u8 band; 170 + u8 band; 171 171 struct hif_scan_type scan_type; 172 172 struct hif_scan_flags scan_flags; 173 - u8 max_transmit_rate; 173 + u8 max_transmit_rate; 174 174 struct hif_auto_scan_param auto_scan_param; 175 - u8 num_of_probe_requests; 176 - u8 probe_delay; 177 - u8 num_of_ssids; 178 - u8 num_of_channels; 175 + u8 num_of_probe_requests; 176 + u8 probe_delay; 177 + u8 num_of_ssids; 178 + u8 num_of_channels; 179 179 __le32 min_channel_time; 180 180 __le32 max_channel_time; 181 181 __le32 tx_power_level; // signed value 182 182 struct hif_ssid_def ssid_def[HIF_API_MAX_NB_SSIDS]; 183 - u8 channel_list[]; 183 + u8 channel_list[]; 184 184 } __packed; 185 185 186 186 struct hif_cnf_start_scan { ··· 199 199 200 200 struct hif_ind_scan_cmpl { 201 201 __le32 status; 202 - u8 pm_mode; 203 - u8 num_channels_completed; 202 + u8 pm_mode; 203 + u8 num_channels_completed; 204 204 __le16 reserved; 205 205 } __packed; 206 206 ··· 223 223 }; 224 224 225 225 struct hif_queue { 226 - u8 queue_id:2; 227 - u8 peer_sta_id:4; 228 - u8 reserved:2; 226 + u8 queue_id:2; 227 + u8 peer_sta_id:4; 228 + u8 reserved:2; 229 229 } __packed; 230 230 231 231 struct hif_data_flags { 232 - u8 more:1; 233 - u8 fc_offset:3; 234 - u8 after_dtim:1; 235 - u8 reserved:3; 232 + u8 more:1; 233 + u8 fc_offset:3; 234 + u8 after_dtim:1; 235 + u8 reserved:3; 236 236 } __packed; 237 237 238 238 struct hif_tx_flags { 239 - u8 start_exp:1; 240 - u8 reserved:3; 241 - u8 retry_policy_index:4; 239 + u8 start_exp:1; 240 + u8 reserved:3; 241 + u8 retry_policy_index:4; 242 242 } __packed; 243 243 244 244 struct hif_ht_tx_parameters { 245 - u8 frame_format:4; 246 - u8 fec_coding:1; 247 - u8 short_gi:1; 248 - u8 reserved1:1; 249 - u8 stbc:1; 250 - u8 reserved2; 251 - u8 aggregation:1; 252 - u8 reserved3:7; 253 - u8 reserved4; 245 + u8 frame_format:4; 246 + u8 fec_coding:1; 247 + u8 short_gi:1; 248 + u8 reserved1:1; 249 + u8 stbc:1; 250 + u8 reserved2; 251 + u8 aggregation:1; 252 + u8 reserved3:7; 253 + u8 reserved4; 254 254 } __packed; 255 255 256 256 struct hif_req_tx { 257 257 __le32 packet_id; 258 - u8 max_tx_rate; 258 + u8 max_tx_rate; 259 259 struct hif_queue queue_id; 260 260 struct hif_data_flags data_flags; 261 261 struct hif_tx_flags tx_flags; 262 262 __le32 reserved; 263 263 __le32 expire_time; 264 264 struct hif_ht_tx_parameters ht_tx_parameters; 265 - u8 frame[]; 265 + u8 frame[]; 266 266 } __packed; 267 267 268 268 enum hif_qos_ackplcy { ··· 273 273 }; 274 274 275 275 struct hif_tx_result_flags { 276 - u8 aggr:1; 277 - u8 requeue:1; 278 - u8 ack_policy:2; 279 - u8 txop_limit:1; 280 - u8 reserved1:3; 281 - u8 reserved2; 276 + u8 aggr:1; 277 + u8 requeue:1; 278 + u8 ack_policy:2; 279 + u8 txop_limit:1; 280 + u8 reserved1:3; 281 + u8 reserved2; 282 282 } __packed; 283 283 284 284 struct hif_cnf_tx { 285 285 __le32 status; 286 286 __le32 packet_id; 287 - u8 txed_rate; 288 - u8 ack_failures; 287 + u8 txed_rate; 288 + u8 ack_failures; 289 289 struct hif_tx_result_flags tx_result_flags; 290 290 __le32 media_delay; 291 291 __le32 tx_queue_delay; ··· 305 305 }; 306 306 307 307 struct hif_rx_flags { 308 - u8 encryp:3; 309 - u8 in_aggr:1; 310 - u8 first_aggr:1; 311 - u8 last_aggr:1; 312 - u8 defrag:1; 313 - u8 beacon:1; 314 - u8 tim:1; 315 - u8 bitmap:1; 316 - u8 match_ssid:1; 317 - u8 match_bssid:1; 318 - u8 more:1; 319 - u8 reserved1:1; 320 - u8 ht:1; 321 - u8 stbc:1; 322 - u8 match_uc_addr:1; 323 - u8 match_mc_addr:1; 324 - u8 match_bc_addr:1; 325 - u8 key_type:1; 326 - u8 key_index:4; 327 - u8 reserved2:1; 328 - u8 peer_sta_id:4; 329 - u8 reserved3:2; 330 - u8 reserved4:1; 308 + u8 encryp:3; 309 + u8 in_aggr:1; 310 + u8 first_aggr:1; 311 + u8 last_aggr:1; 312 + u8 defrag:1; 313 + u8 beacon:1; 314 + u8 tim:1; 315 + u8 bitmap:1; 316 + u8 match_ssid:1; 317 + u8 match_bssid:1; 318 + u8 more:1; 319 + u8 reserved1:1; 320 + u8 ht:1; 321 + u8 stbc:1; 322 + u8 match_uc_addr:1; 323 + u8 match_mc_addr:1; 324 + u8 match_bc_addr:1; 325 + u8 key_type:1; 326 + u8 key_index:4; 327 + u8 reserved2:1; 328 + u8 peer_sta_id:4; 329 + u8 reserved3:2; 330 + u8 reserved4:1; 331 331 } __packed; 332 332 333 333 struct hif_ind_rx { 334 334 __le32 status; 335 335 __le16 channel_number; 336 - u8 rxed_rate; 337 - u8 rcpi_rssi; 336 + u8 rxed_rate; 337 + u8 rcpi_rssi; 338 338 struct hif_rx_flags rx_flags; 339 - u8 frame[]; 339 + u8 frame[]; 340 340 } __packed; 341 341 342 342 343 343 struct hif_req_edca_queue_params { 344 - u8 queue_id; 345 - u8 reserved1; 346 - u8 aifsn; 347 - u8 reserved2; 344 + u8 queue_id; 345 + u8 reserved1; 346 + u8 aifsn; 347 + u8 reserved2; 348 348 __le16 cw_min; 349 349 __le16 cw_max; 350 350 __le16 tx_op_limit; ··· 357 357 } __packed; 358 358 359 359 struct hif_join_flags { 360 - u8 reserved1:2; 361 - u8 force_no_beacon:1; 362 - u8 force_with_ind:1; 363 - u8 reserved2:4; 360 + u8 reserved1:2; 361 + u8 force_no_beacon:1; 362 + u8 force_with_ind:1; 363 + u8 reserved2:4; 364 364 } __packed; 365 365 366 366 struct hif_req_join { 367 - u8 infrastructure_bss_mode:1; 368 - u8 reserved1:7; 369 - u8 band; 367 + u8 infrastructure_bss_mode:1; 368 + u8 reserved1:7; 369 + u8 band; 370 370 __le16 channel_number; 371 - u8 bssid[ETH_ALEN]; 371 + u8 bssid[ETH_ALEN]; 372 372 __le16 atim_window; 373 - u8 short_preamble:1; 374 - u8 reserved2:7; 375 - u8 probe_for_join; 376 - u8 reserved3; 373 + u8 short_preamble:1; 374 + u8 reserved2:7; 375 + u8 probe_for_join; 376 + u8 reserved3; 377 377 struct hif_join_flags join_flags; 378 378 __le32 ssid_length; 379 - u8 ssid[HIF_API_SSID_SIZE]; 379 + u8 ssid[HIF_API_SSID_SIZE]; 380 380 __le32 beacon_interval; 381 381 __le32 basic_rate_set; 382 382 } __packed; ··· 390 390 } __packed; 391 391 392 392 struct hif_bss_flags { 393 - u8 lost_count_only:1; 394 - u8 reserved:7; 393 + u8 lost_count_only:1; 394 + u8 reserved:7; 395 395 } __packed; 396 396 397 397 struct hif_req_set_bss_params { 398 398 struct hif_bss_flags bss_flags; 399 - u8 beacon_lost_count; 399 + u8 beacon_lost_count; 400 400 __le16 aid; 401 401 __le32 operational_rate_set; 402 402 } __packed; ··· 406 406 } __packed; 407 407 408 408 struct hif_pm_mode { 409 - u8 enter_psm:1; 410 - u8 reserved:6; 411 - u8 fast_psm:1; 409 + u8 enter_psm:1; 410 + u8 reserved:6; 411 + u8 fast_psm:1; 412 412 } __packed; 413 413 414 414 struct hif_req_set_pm_mode { 415 415 struct hif_pm_mode pm_mode; 416 - u8 fast_psm_idle_period; 417 - u8 ap_psm_change_period; 418 - u8 min_auto_ps_poll_period; 416 + u8 fast_psm_idle_period; 417 + u8 ap_psm_change_period; 418 + u8 min_auto_ps_poll_period; 419 419 } __packed; 420 420 421 421 struct hif_cnf_set_pm_mode { ··· 424 424 425 425 struct hif_ind_set_pm_mode_cmpl { 426 426 __le32 status; 427 - u8 pm_mode; 428 - u8 reserved[3]; 427 + u8 pm_mode; 428 + u8 reserved[3]; 429 429 } __packed; 430 430 431 431 432 432 struct hif_req_start { 433 - u8 mode; 434 - u8 band; 433 + u8 mode; 434 + u8 band; 435 435 __le16 channel_number; 436 436 __le32 reserved1; 437 437 __le32 beacon_interval; 438 - u8 dtim_period; 439 - u8 short_preamble:1; 440 - u8 reserved2:7; 441 - u8 reserved3; 442 - u8 ssid_length; 443 - u8 ssid[HIF_API_SSID_SIZE]; 438 + u8 dtim_period; 439 + u8 short_preamble:1; 440 + u8 reserved2:7; 441 + u8 reserved3; 442 + u8 ssid_length; 443 + u8 ssid[HIF_API_SSID_SIZE]; 444 444 __le32 basic_rate_set; 445 445 } __packed; 446 446 ··· 454 454 }; 455 455 456 456 struct hif_req_beacon_transmit { 457 - u8 enable_beaconing; 458 - u8 reserved[3]; 457 + u8 enable_beaconing; 458 + u8 reserved[3]; 459 459 } __packed; 460 460 461 461 struct hif_cnf_beacon_transmit { ··· 471 471 }; 472 472 473 473 struct hif_map_link_flags { 474 - u8 map_direction:1; 475 - u8 mfpc:1; 476 - u8 reserved:6; 474 + u8 map_direction:1; 475 + u8 mfpc:1; 476 + u8 reserved:6; 477 477 } __packed; 478 478 479 479 struct hif_req_map_link { 480 - u8 mac_addr[ETH_ALEN]; 480 + u8 mac_addr[ETH_ALEN]; 481 481 struct hif_map_link_flags map_link_flags; 482 - u8 peer_sta_id; 482 + u8 peer_sta_id; 483 483 } __packed; 484 484 485 485 struct hif_cnf_map_link { ··· 487 487 } __packed; 488 488 489 489 struct hif_suspend_resume_flags { 490 - u8 resume:1; 491 - u8 reserved1:2; 492 - u8 bc_mc_only:1; 493 - u8 reserved2:4; 494 - u8 reserved3; 490 + u8 resume:1; 491 + u8 reserved1:2; 492 + u8 bc_mc_only:1; 493 + u8 reserved2:4; 494 + u8 reserved3; 495 495 } __packed; 496 496 497 497 struct hif_ind_suspend_resume_tx { ··· 526 526 }; 527 527 528 528 struct hif_wep_pairwise_key { 529 - u8 peer_address[ETH_ALEN]; 530 - u8 reserved; 531 - u8 key_length; 532 - u8 key_data[HIF_API_WEP_KEY_DATA_SIZE]; 529 + u8 peer_address[ETH_ALEN]; 530 + u8 reserved; 531 + u8 key_length; 532 + u8 key_data[HIF_API_WEP_KEY_DATA_SIZE]; 533 533 } __packed; 534 534 535 535 struct hif_wep_group_key { 536 - u8 key_id; 537 - u8 key_length; 538 - u8 reserved[2]; 539 - u8 key_data[HIF_API_WEP_KEY_DATA_SIZE]; 536 + u8 key_id; 537 + u8 key_length; 538 + u8 reserved[2]; 539 + u8 key_data[HIF_API_WEP_KEY_DATA_SIZE]; 540 540 } __packed; 541 541 542 542 struct hif_tkip_pairwise_key { 543 - u8 peer_address[ETH_ALEN]; 544 - u8 reserved[2]; 545 - u8 tkip_key_data[HIF_API_TKIP_KEY_DATA_SIZE]; 546 - u8 rx_mic_key[HIF_API_RX_MIC_KEY_SIZE]; 547 - u8 tx_mic_key[HIF_API_TX_MIC_KEY_SIZE]; 543 + u8 peer_address[ETH_ALEN]; 544 + u8 reserved[2]; 545 + u8 tkip_key_data[HIF_API_TKIP_KEY_DATA_SIZE]; 546 + u8 rx_mic_key[HIF_API_RX_MIC_KEY_SIZE]; 547 + u8 tx_mic_key[HIF_API_TX_MIC_KEY_SIZE]; 548 548 } __packed; 549 549 550 550 struct hif_tkip_group_key { 551 - u8 tkip_key_data[HIF_API_TKIP_KEY_DATA_SIZE]; 552 - u8 rx_mic_key[HIF_API_RX_MIC_KEY_SIZE]; 553 - u8 key_id; 554 - u8 reserved[3]; 555 - u8 rx_sequence_counter[HIF_API_RX_SEQUENCE_COUNTER_SIZE]; 551 + u8 tkip_key_data[HIF_API_TKIP_KEY_DATA_SIZE]; 552 + u8 rx_mic_key[HIF_API_RX_MIC_KEY_SIZE]; 553 + u8 key_id; 554 + u8 reserved[3]; 555 + u8 rx_sequence_counter[HIF_API_RX_SEQUENCE_COUNTER_SIZE]; 556 556 } __packed; 557 557 558 558 struct hif_aes_pairwise_key { 559 - u8 peer_address[ETH_ALEN]; 560 - u8 reserved[2]; 561 - u8 aes_key_data[HIF_API_AES_KEY_DATA_SIZE]; 559 + u8 peer_address[ETH_ALEN]; 560 + u8 reserved[2]; 561 + u8 aes_key_data[HIF_API_AES_KEY_DATA_SIZE]; 562 562 } __packed; 563 563 564 564 struct hif_aes_group_key { 565 - u8 aes_key_data[HIF_API_AES_KEY_DATA_SIZE]; 566 - u8 key_id; 567 - u8 reserved[3]; 568 - u8 rx_sequence_counter[HIF_API_RX_SEQUENCE_COUNTER_SIZE]; 565 + u8 aes_key_data[HIF_API_AES_KEY_DATA_SIZE]; 566 + u8 key_id; 567 + u8 reserved[3]; 568 + u8 rx_sequence_counter[HIF_API_RX_SEQUENCE_COUNTER_SIZE]; 569 569 } __packed; 570 570 571 571 struct hif_wapi_pairwise_key { 572 - u8 peer_address[ETH_ALEN]; 573 - u8 key_id; 574 - u8 reserved; 575 - u8 wapi_key_data[HIF_API_WAPI_KEY_DATA_SIZE]; 576 - u8 mic_key_data[HIF_API_MIC_KEY_DATA_SIZE]; 572 + u8 peer_address[ETH_ALEN]; 573 + u8 key_id; 574 + u8 reserved; 575 + u8 wapi_key_data[HIF_API_WAPI_KEY_DATA_SIZE]; 576 + u8 mic_key_data[HIF_API_MIC_KEY_DATA_SIZE]; 577 577 } __packed; 578 578 579 579 struct hif_wapi_group_key { 580 - u8 wapi_key_data[HIF_API_WAPI_KEY_DATA_SIZE]; 581 - u8 mic_key_data[HIF_API_MIC_KEY_DATA_SIZE]; 582 - u8 key_id; 583 - u8 reserved[3]; 580 + u8 wapi_key_data[HIF_API_WAPI_KEY_DATA_SIZE]; 581 + u8 mic_key_data[HIF_API_MIC_KEY_DATA_SIZE]; 582 + u8 key_id; 583 + u8 reserved[3]; 584 584 } __packed; 585 585 586 586 struct hif_igtk_group_key { 587 - u8 igtk_key_data[HIF_API_IGTK_KEY_DATA_SIZE]; 588 - u8 key_id; 589 - u8 reserved[3]; 590 - u8 ipn[HIF_API_IPN_SIZE]; 587 + u8 igtk_key_data[HIF_API_IGTK_KEY_DATA_SIZE]; 588 + u8 key_id; 589 + u8 reserved[3]; 590 + u8 ipn[HIF_API_IPN_SIZE]; 591 591 } __packed; 592 592 593 593 union hif_privacy_key_data { 594 - struct hif_wep_pairwise_key wep_pairwise_key; 595 - struct hif_wep_group_key wep_group_key; 596 - struct hif_tkip_pairwise_key tkip_pairwise_key; 597 - struct hif_tkip_group_key tkip_group_key; 598 - struct hif_aes_pairwise_key aes_pairwise_key; 599 - struct hif_aes_group_key aes_group_key; 600 - struct hif_wapi_pairwise_key wapi_pairwise_key; 601 - struct hif_wapi_group_key wapi_group_key; 602 - struct hif_igtk_group_key igtk_group_key; 594 + struct hif_wep_pairwise_key wep_pairwise_key; 595 + struct hif_wep_group_key wep_group_key; 596 + struct hif_tkip_pairwise_key tkip_pairwise_key; 597 + struct hif_tkip_group_key tkip_group_key; 598 + struct hif_aes_pairwise_key aes_pairwise_key; 599 + struct hif_aes_group_key aes_group_key; 600 + struct hif_wapi_pairwise_key wapi_pairwise_key; 601 + struct hif_wapi_group_key wapi_group_key; 602 + struct hif_igtk_group_key igtk_group_key; 603 603 }; 604 604 605 605 struct hif_req_add_key { 606 - u8 type; 607 - u8 entry_index; 608 - u8 int_id:2; 609 - u8 reserved1:6; 610 - u8 reserved2; 606 + u8 type; 607 + u8 entry_index; 608 + u8 int_id:2; 609 + u8 reserved1:6; 610 + u8 reserved2; 611 611 union hif_privacy_key_data key; 612 612 } __packed; 613 613 ··· 616 616 } __packed; 617 617 618 618 struct hif_req_remove_key { 619 - u8 entry_index; 620 - u8 reserved[3]; 619 + u8 entry_index; 620 + u8 reserved[3]; 621 621 } __packed; 622 622 623 623 struct hif_cnf_remove_key { ··· 641 641 }; 642 642 643 643 union hif_event_data { 644 - u8 rcpi_rssi; 644 + u8 rcpi_rssi; 645 645 __le32 ps_mode_error; 646 646 __le32 peer_sta_set; 647 647 };
+136 -136
drivers/staging/wfx/hif_api_general.h
··· 17 17 #define __packed __attribute__((__packed__)) 18 18 #endif 19 19 20 - #define API_SSID_SIZE 32 20 + #define API_SSID_SIZE 32 21 21 22 - #define HIF_ID_IS_INDICATION 0x80 23 - #define HIF_COUNTER_MAX 7 22 + #define HIF_ID_IS_INDICATION 0x80 23 + #define HIF_COUNTER_MAX 7 24 24 25 25 struct hif_msg { 26 26 __le16 len; ··· 33 33 } __packed; 34 34 35 35 enum hif_general_requests_ids { 36 - HIF_REQ_ID_CONFIGURATION = 0x09, 37 - HIF_REQ_ID_CONTROL_GPIO = 0x26, 38 - HIF_REQ_ID_SET_SL_MAC_KEY = 0x27, 39 - HIF_REQ_ID_SL_EXCHANGE_PUB_KEYS = 0x28, 40 - HIF_REQ_ID_SL_CONFIGURE = 0x29, 41 - HIF_REQ_ID_PREVENT_ROLLBACK = 0x2a, 42 - HIF_REQ_ID_PTA_SETTINGS = 0x2b, 43 - HIF_REQ_ID_PTA_PRIORITY = 0x2c, 44 - HIF_REQ_ID_PTA_STATE = 0x2d, 45 - HIF_REQ_ID_SHUT_DOWN = 0x32, 36 + HIF_REQ_ID_CONFIGURATION = 0x09, 37 + HIF_REQ_ID_CONTROL_GPIO = 0x26, 38 + HIF_REQ_ID_SET_SL_MAC_KEY = 0x27, 39 + HIF_REQ_ID_SL_EXCHANGE_PUB_KEYS = 0x28, 40 + HIF_REQ_ID_SL_CONFIGURE = 0x29, 41 + HIF_REQ_ID_PREVENT_ROLLBACK = 0x2a, 42 + HIF_REQ_ID_PTA_SETTINGS = 0x2b, 43 + HIF_REQ_ID_PTA_PRIORITY = 0x2c, 44 + HIF_REQ_ID_PTA_STATE = 0x2d, 45 + HIF_REQ_ID_SHUT_DOWN = 0x32, 46 46 }; 47 47 48 48 enum hif_general_confirmations_ids { 49 - HIF_CNF_ID_CONFIGURATION = 0x09, 50 - HIF_CNF_ID_CONTROL_GPIO = 0x26, 51 - HIF_CNF_ID_SET_SL_MAC_KEY = 0x27, 52 - HIF_CNF_ID_SL_EXCHANGE_PUB_KEYS = 0x28, 53 - HIF_CNF_ID_SL_CONFIGURE = 0x29, 54 - HIF_CNF_ID_PREVENT_ROLLBACK = 0x2a, 55 - HIF_CNF_ID_PTA_SETTINGS = 0x2b, 56 - HIF_CNF_ID_PTA_PRIORITY = 0x2c, 57 - HIF_CNF_ID_PTA_STATE = 0x2d, 58 - HIF_CNF_ID_SHUT_DOWN = 0x32, 49 + HIF_CNF_ID_CONFIGURATION = 0x09, 50 + HIF_CNF_ID_CONTROL_GPIO = 0x26, 51 + HIF_CNF_ID_SET_SL_MAC_KEY = 0x27, 52 + HIF_CNF_ID_SL_EXCHANGE_PUB_KEYS = 0x28, 53 + HIF_CNF_ID_SL_CONFIGURE = 0x29, 54 + HIF_CNF_ID_PREVENT_ROLLBACK = 0x2a, 55 + HIF_CNF_ID_PTA_SETTINGS = 0x2b, 56 + HIF_CNF_ID_PTA_PRIORITY = 0x2c, 57 + HIF_CNF_ID_PTA_STATE = 0x2d, 58 + HIF_CNF_ID_SHUT_DOWN = 0x32, 59 59 }; 60 60 61 61 enum hif_general_indications_ids { 62 - HIF_IND_ID_EXCEPTION = 0xe0, 63 - HIF_IND_ID_STARTUP = 0xe1, 64 - HIF_IND_ID_WAKEUP = 0xe2, 65 - HIF_IND_ID_GENERIC = 0xe3, 66 - HIF_IND_ID_ERROR = 0xe4, 67 - HIF_IND_ID_SL_EXCHANGE_PUB_KEYS = 0xe5 62 + HIF_IND_ID_EXCEPTION = 0xe0, 63 + HIF_IND_ID_STARTUP = 0xe1, 64 + HIF_IND_ID_WAKEUP = 0xe2, 65 + HIF_IND_ID_GENERIC = 0xe3, 66 + HIF_IND_ID_ERROR = 0xe4, 67 + HIF_IND_ID_SL_EXCHANGE_PUB_KEYS = 0xe5 68 68 }; 69 69 70 70 enum hif_hi_status { ··· 84 84 }; 85 85 86 86 enum hif_api_rate_index { 87 - API_RATE_INDEX_B_1MBPS = 0, 88 - API_RATE_INDEX_B_2MBPS = 1, 89 - API_RATE_INDEX_B_5P5MBPS = 2, 90 - API_RATE_INDEX_B_11MBPS = 3, 91 - API_RATE_INDEX_PBCC_22MBPS = 4, 92 - API_RATE_INDEX_PBCC_33MBPS = 5, 93 - API_RATE_INDEX_G_6MBPS = 6, 94 - API_RATE_INDEX_G_9MBPS = 7, 95 - API_RATE_INDEX_G_12MBPS = 8, 96 - API_RATE_INDEX_G_18MBPS = 9, 97 - API_RATE_INDEX_G_24MBPS = 10, 98 - API_RATE_INDEX_G_36MBPS = 11, 99 - API_RATE_INDEX_G_48MBPS = 12, 100 - API_RATE_INDEX_G_54MBPS = 13, 101 - API_RATE_INDEX_N_6P5MBPS = 14, 102 - API_RATE_INDEX_N_13MBPS = 15, 103 - API_RATE_INDEX_N_19P5MBPS = 16, 104 - API_RATE_INDEX_N_26MBPS = 17, 105 - API_RATE_INDEX_N_39MBPS = 18, 106 - API_RATE_INDEX_N_52MBPS = 19, 107 - API_RATE_INDEX_N_58P5MBPS = 20, 108 - API_RATE_INDEX_N_65MBPS = 21, 109 - API_RATE_NUM_ENTRIES = 22 87 + API_RATE_INDEX_B_1MBPS = 0, 88 + API_RATE_INDEX_B_2MBPS = 1, 89 + API_RATE_INDEX_B_5P5MBPS = 2, 90 + API_RATE_INDEX_B_11MBPS = 3, 91 + API_RATE_INDEX_PBCC_22MBPS = 4, 92 + API_RATE_INDEX_PBCC_33MBPS = 5, 93 + API_RATE_INDEX_G_6MBPS = 6, 94 + API_RATE_INDEX_G_9MBPS = 7, 95 + API_RATE_INDEX_G_12MBPS = 8, 96 + API_RATE_INDEX_G_18MBPS = 9, 97 + API_RATE_INDEX_G_24MBPS = 10, 98 + API_RATE_INDEX_G_36MBPS = 11, 99 + API_RATE_INDEX_G_48MBPS = 12, 100 + API_RATE_INDEX_G_54MBPS = 13, 101 + API_RATE_INDEX_N_6P5MBPS = 14, 102 + API_RATE_INDEX_N_13MBPS = 15, 103 + API_RATE_INDEX_N_19P5MBPS = 16, 104 + API_RATE_INDEX_N_26MBPS = 17, 105 + API_RATE_INDEX_N_39MBPS = 18, 106 + API_RATE_INDEX_N_52MBPS = 19, 107 + API_RATE_INDEX_N_58P5MBPS = 20, 108 + API_RATE_INDEX_N_65MBPS = 21, 109 + API_RATE_NUM_ENTRIES = 22 110 110 }; 111 111 112 112 113 113 enum hif_fw_type { 114 - HIF_FW_TYPE_ETF = 0x0, 115 - HIF_FW_TYPE_WFM = 0x1, 116 - HIF_FW_TYPE_WSM = 0x2 114 + HIF_FW_TYPE_ETF = 0x0, 115 + HIF_FW_TYPE_WFM = 0x1, 116 + HIF_FW_TYPE_WSM = 0x2 117 117 }; 118 118 119 119 struct hif_capabilities { 120 - u8 link_mode:2; 121 - u8 reserved1:6; 122 - u8 reserved2; 123 - u8 reserved3; 124 - u8 reserved4; 120 + u8 link_mode:2; 121 + u8 reserved1:6; 122 + u8 reserved2; 123 + u8 reserved3; 124 + u8 reserved4; 125 125 } __packed; 126 126 127 127 struct hif_otp_regul_sel_mode_info { 128 - u8 region_sel_mode:4; 129 - u8 reserved:4; 128 + u8 region_sel_mode:4; 129 + u8 reserved:4; 130 130 } __packed; 131 131 132 132 struct hif_otp_phy_info { 133 - u8 phy1_region:3; 134 - u8 phy0_region:3; 135 - u8 otp_phy_ver:2; 133 + u8 phy1_region:3; 134 + u8 phy0_region:3; 135 + u8 otp_phy_ver:2; 136 136 } __packed; 137 137 138 138 struct hif_ind_startup { 139 139 __le32 status; 140 140 __le16 hardware_id; 141 - u8 opn[14]; 142 - u8 uid[8]; 141 + u8 opn[14]; 142 + u8 uid[8]; 143 143 __le16 num_inp_ch_bufs; 144 144 __le16 size_inp_ch_buf; 145 - u8 num_links_ap; 146 - u8 num_interfaces; 147 - u8 mac_addr[2][ETH_ALEN]; 148 - u8 api_version_minor; 149 - u8 api_version_major; 145 + u8 num_links_ap; 146 + u8 num_interfaces; 147 + u8 mac_addr[2][ETH_ALEN]; 148 + u8 api_version_minor; 149 + u8 api_version_major; 150 150 struct hif_capabilities capabilities; 151 - u8 firmware_build; 152 - u8 firmware_minor; 153 - u8 firmware_major; 154 - u8 firmware_type; 155 - u8 disabled_channel_list[2]; 151 + u8 firmware_build; 152 + u8 firmware_minor; 153 + u8 firmware_major; 154 + u8 firmware_type; 155 + u8 disabled_channel_list[2]; 156 156 struct hif_otp_regul_sel_mode_info regul_sel_mode_info; 157 157 struct hif_otp_phy_info otp_phy_info; 158 158 __le32 supported_rate_mask; 159 - u8 firmware_label[128]; 159 + u8 firmware_label[128]; 160 160 } __packed; 161 161 162 162 struct hif_ind_wakeup { ··· 164 164 165 165 struct hif_req_configuration { 166 166 __le16 length; 167 - u8 pds_data[]; 167 + u8 pds_data[]; 168 168 } __packed; 169 169 170 170 struct hif_cnf_configuration { ··· 172 172 } __packed; 173 173 174 174 enum hif_gpio_mode { 175 - HIF_GPIO_MODE_D0 = 0x0, 176 - HIF_GPIO_MODE_D1 = 0x1, 177 - HIF_GPIO_MODE_OD0 = 0x2, 178 - HIF_GPIO_MODE_OD1 = 0x3, 179 - HIF_GPIO_MODE_TRISTATE = 0x4, 180 - HIF_GPIO_MODE_TOGGLE = 0x5, 181 - HIF_GPIO_MODE_READ = 0x6 175 + HIF_GPIO_MODE_D0 = 0x0, 176 + HIF_GPIO_MODE_D1 = 0x1, 177 + HIF_GPIO_MODE_OD0 = 0x2, 178 + HIF_GPIO_MODE_OD1 = 0x3, 179 + HIF_GPIO_MODE_TRISTATE = 0x4, 180 + HIF_GPIO_MODE_TOGGLE = 0x5, 181 + HIF_GPIO_MODE_READ = 0x6 182 182 }; 183 183 184 184 struct hif_req_control_gpio { 185 - u8 gpio_label; 186 - u8 gpio_mode; 185 + u8 gpio_label; 186 + u8 gpio_mode; 187 187 } __packed; 188 188 189 189 struct hif_cnf_control_gpio { ··· 192 192 } __packed; 193 193 194 194 enum hif_generic_indication_type { 195 - HIF_GENERIC_INDICATION_TYPE_RAW = 0x0, 196 - HIF_GENERIC_INDICATION_TYPE_STRING = 0x1, 197 - HIF_GENERIC_INDICATION_TYPE_RX_STATS = 0x2 195 + HIF_GENERIC_INDICATION_TYPE_RAW = 0x0, 196 + HIF_GENERIC_INDICATION_TYPE_STRING = 0x1, 197 + HIF_GENERIC_INDICATION_TYPE_RX_STATS = 0x2 198 198 }; 199 199 200 200 struct hif_rx_stats { ··· 209 209 __le16 cfo[API_RATE_NUM_ENTRIES]; // signed value 210 210 __le32 date; 211 211 __le32 pwr_clk_freq; 212 - u8 is_ext_pwr_clk; 212 + u8 is_ext_pwr_clk; 213 213 s8 current_temp; 214 214 } __packed; 215 215 216 216 union hif_indication_data { 217 - struct hif_rx_stats rx_stats; 218 - u8 raw_data[1]; 217 + struct hif_rx_stats rx_stats; 218 + u8 raw_data[1]; 219 219 }; 220 220 221 221 struct hif_ind_generic { ··· 225 225 226 226 227 227 struct hif_ind_exception { 228 - u8 data[124]; 228 + u8 data[124]; 229 229 } __packed; 230 230 231 231 232 232 enum hif_error { 233 - HIF_ERROR_FIRMWARE_ROLLBACK = 0x0, 234 - HIF_ERROR_FIRMWARE_DEBUG_ENABLED = 0x1, 235 - HIF_ERROR_OUTDATED_SESSION_KEY = 0x2, 236 - HIF_ERROR_INVALID_SESSION_KEY = 0x3, 237 - HIF_ERROR_OOR_VOLTAGE = 0x4, 238 - HIF_ERROR_PDS_VERSION = 0x5, 239 - HIF_ERROR_OOR_TEMPERATURE = 0x6, 240 - HIF_ERROR_REQ_DURING_KEY_EXCHANGE = 0x7, 241 - HIF_ERROR_MULTI_TX_CNF_SECURELINK = 0x8, 242 - HIF_ERROR_SECURELINK_OVERFLOW = 0x9, 243 - HIF_ERROR_SECURELINK_DECRYPTION = 0xa 233 + HIF_ERROR_FIRMWARE_ROLLBACK = 0x0, 234 + HIF_ERROR_FIRMWARE_DEBUG_ENABLED = 0x1, 235 + HIF_ERROR_OUTDATED_SESSION_KEY = 0x2, 236 + HIF_ERROR_INVALID_SESSION_KEY = 0x3, 237 + HIF_ERROR_OOR_VOLTAGE = 0x4, 238 + HIF_ERROR_PDS_VERSION = 0x5, 239 + HIF_ERROR_OOR_TEMPERATURE = 0x6, 240 + HIF_ERROR_REQ_DURING_KEY_EXCHANGE = 0x7, 241 + HIF_ERROR_MULTI_TX_CNF_SECURELINK = 0x8, 242 + HIF_ERROR_SECURELINK_OVERFLOW = 0x9, 243 + HIF_ERROR_SECURELINK_DECRYPTION = 0xa 244 244 }; 245 245 246 246 struct hif_ind_error { 247 247 __le32 type; 248 - u8 data[]; 248 + u8 data[]; 249 249 } __packed; 250 250 251 251 enum hif_secure_link_state { 252 - SEC_LINK_UNAVAILABLE = 0x0, 253 - SEC_LINK_RESERVED = 0x1, 254 - SEC_LINK_EVAL = 0x2, 255 - SEC_LINK_ENFORCED = 0x3 252 + SEC_LINK_UNAVAILABLE = 0x0, 253 + SEC_LINK_RESERVED = 0x1, 254 + SEC_LINK_EVAL = 0x2, 255 + SEC_LINK_ENFORCED = 0x3 256 256 }; 257 257 258 258 enum hif_sl_encryption_type { ··· 270 270 struct hif_sl_msg { 271 271 struct hif_sl_msg_hdr hdr; 272 272 __le16 len; 273 - u8 payload[]; 273 + u8 payload[]; 274 274 } __packed; 275 275 276 - #define AES_CCM_TAG_SIZE 16 276 + #define AES_CCM_TAG_SIZE 16 277 277 278 278 struct hif_sl_tag { 279 - u8 tag[16]; 279 + u8 tag[16]; 280 280 } __packed; 281 281 282 282 enum hif_sl_mac_key_dest { 283 - SL_MAC_KEY_DEST_OTP = 0x78, 284 - SL_MAC_KEY_DEST_RAM = 0x87 283 + SL_MAC_KEY_DEST_OTP = 0x78, 284 + SL_MAC_KEY_DEST_RAM = 0x87 285 285 }; 286 286 287 - #define API_KEY_VALUE_SIZE 32 287 + #define API_KEY_VALUE_SIZE 32 288 288 289 289 struct hif_req_set_sl_mac_key { 290 - u8 otp_or_ram; 291 - u8 key_value[API_KEY_VALUE_SIZE]; 290 + u8 otp_or_ram; 291 + u8 key_value[API_KEY_VALUE_SIZE]; 292 292 } __packed; 293 293 294 294 struct hif_cnf_set_sl_mac_key { ··· 296 296 } __packed; 297 297 298 298 enum hif_sl_session_key_alg { 299 - HIF_SL_CURVE25519 = 0x01, 300 - HIF_SL_KDF = 0x02 299 + HIF_SL_CURVE25519 = 0x01, 300 + HIF_SL_KDF = 0x02 301 301 }; 302 302 303 - #define API_HOST_PUB_KEY_SIZE 32 304 - #define API_HOST_PUB_KEY_MAC_SIZE 64 303 + #define API_HOST_PUB_KEY_SIZE 32 304 + #define API_HOST_PUB_KEY_MAC_SIZE 64 305 305 306 306 struct hif_req_sl_exchange_pub_keys { 307 - u8 algorithm:2; 308 - u8 reserved1:6; 309 - u8 reserved2[3]; 310 - u8 host_pub_key[API_HOST_PUB_KEY_SIZE]; 311 - u8 host_pub_key_mac[API_HOST_PUB_KEY_MAC_SIZE]; 307 + u8 algorithm:2; 308 + u8 reserved1:6; 309 + u8 reserved2[3]; 310 + u8 host_pub_key[API_HOST_PUB_KEY_SIZE]; 311 + u8 host_pub_key_mac[API_HOST_PUB_KEY_MAC_SIZE]; 312 312 } __packed; 313 313 314 314 struct hif_cnf_sl_exchange_pub_keys { 315 315 __le32 status; 316 316 } __packed; 317 317 318 - #define API_NCP_PUB_KEY_SIZE 32 319 - #define API_NCP_PUB_KEY_MAC_SIZE 64 318 + #define API_NCP_PUB_KEY_SIZE 32 319 + #define API_NCP_PUB_KEY_MAC_SIZE 64 320 320 321 321 struct hif_ind_sl_exchange_pub_keys { 322 322 __le32 status; 323 - u8 ncp_pub_key[API_NCP_PUB_KEY_SIZE]; 324 - u8 ncp_pub_key_mac[API_NCP_PUB_KEY_MAC_SIZE]; 323 + u8 ncp_pub_key[API_NCP_PUB_KEY_SIZE]; 324 + u8 ncp_pub_key_mac[API_NCP_PUB_KEY_MAC_SIZE]; 325 325 } __packed; 326 326 327 327 struct hif_req_sl_configure { 328 - u8 encr_bmp[32]; 329 - u8 disable_session_key_protection:1; 330 - u8 reserved1:7; 331 - u8 reserved2[3]; 328 + u8 encr_bmp[32]; 329 + u8 disable_session_key_protection:1; 330 + u8 reserved1:7; 331 + u8 reserved2[3]; 332 332 } __packed; 333 333 334 334 struct hif_cnf_sl_configure {
+194 -194
drivers/staging/wfx/hif_api_mib.h
··· 10 10 11 11 #include "hif_api_general.h" 12 12 13 - #define HIF_API_IPV4_ADDRESS_SIZE 4 14 - #define HIF_API_IPV6_ADDRESS_SIZE 16 13 + #define HIF_API_IPV4_ADDRESS_SIZE 4 14 + #define HIF_API_IPV6_ADDRESS_SIZE 16 15 15 16 16 enum hif_mib_ids { 17 - HIF_MIB_ID_GL_OPERATIONAL_POWER_MODE = 0x2000, 18 - HIF_MIB_ID_GL_BLOCK_ACK_INFO = 0x2001, 19 - HIF_MIB_ID_GL_SET_MULTI_MSG = 0x2002, 20 - HIF_MIB_ID_CCA_CONFIG = 0x2003, 21 - HIF_MIB_ID_ETHERTYPE_DATAFRAME_CONDITION = 0x2010, 22 - HIF_MIB_ID_PORT_DATAFRAME_CONDITION = 0x2011, 23 - HIF_MIB_ID_MAGIC_DATAFRAME_CONDITION = 0x2012, 24 - HIF_MIB_ID_MAC_ADDR_DATAFRAME_CONDITION = 0x2013, 25 - HIF_MIB_ID_IPV4_ADDR_DATAFRAME_CONDITION = 0x2014, 26 - HIF_MIB_ID_IPV6_ADDR_DATAFRAME_CONDITION = 0x2015, 27 - HIF_MIB_ID_UC_MC_BC_DATAFRAME_CONDITION = 0x2016, 28 - HIF_MIB_ID_CONFIG_DATA_FILTER = 0x2017, 29 - HIF_MIB_ID_SET_DATA_FILTERING = 0x2018, 30 - HIF_MIB_ID_ARP_IP_ADDRESSES_TABLE = 0x2019, 31 - HIF_MIB_ID_NS_IP_ADDRESSES_TABLE = 0x201A, 32 - HIF_MIB_ID_RX_FILTER = 0x201B, 33 - HIF_MIB_ID_BEACON_FILTER_TABLE = 0x201C, 34 - HIF_MIB_ID_BEACON_FILTER_ENABLE = 0x201D, 35 - HIF_MIB_ID_GRP_SEQ_COUNTER = 0x2030, 36 - HIF_MIB_ID_TSF_COUNTER = 0x2031, 37 - HIF_MIB_ID_STATISTICS_TABLE = 0x2032, 38 - HIF_MIB_ID_COUNTERS_TABLE = 0x2033, 39 - HIF_MIB_ID_MAX_TX_POWER_LEVEL = 0x2034, 40 - HIF_MIB_ID_EXTENDED_COUNTERS_TABLE = 0x2035, 41 - HIF_MIB_ID_DOT11_MAC_ADDRESS = 0x2040, 17 + HIF_MIB_ID_GL_OPERATIONAL_POWER_MODE = 0x2000, 18 + HIF_MIB_ID_GL_BLOCK_ACK_INFO = 0x2001, 19 + HIF_MIB_ID_GL_SET_MULTI_MSG = 0x2002, 20 + HIF_MIB_ID_CCA_CONFIG = 0x2003, 21 + HIF_MIB_ID_ETHERTYPE_DATAFRAME_CONDITION = 0x2010, 22 + HIF_MIB_ID_PORT_DATAFRAME_CONDITION = 0x2011, 23 + HIF_MIB_ID_MAGIC_DATAFRAME_CONDITION = 0x2012, 24 + HIF_MIB_ID_MAC_ADDR_DATAFRAME_CONDITION = 0x2013, 25 + HIF_MIB_ID_IPV4_ADDR_DATAFRAME_CONDITION = 0x2014, 26 + HIF_MIB_ID_IPV6_ADDR_DATAFRAME_CONDITION = 0x2015, 27 + HIF_MIB_ID_UC_MC_BC_DATAFRAME_CONDITION = 0x2016, 28 + HIF_MIB_ID_CONFIG_DATA_FILTER = 0x2017, 29 + HIF_MIB_ID_SET_DATA_FILTERING = 0x2018, 30 + HIF_MIB_ID_ARP_IP_ADDRESSES_TABLE = 0x2019, 31 + HIF_MIB_ID_NS_IP_ADDRESSES_TABLE = 0x201A, 32 + HIF_MIB_ID_RX_FILTER = 0x201B, 33 + HIF_MIB_ID_BEACON_FILTER_TABLE = 0x201C, 34 + HIF_MIB_ID_BEACON_FILTER_ENABLE = 0x201D, 35 + HIF_MIB_ID_GRP_SEQ_COUNTER = 0x2030, 36 + HIF_MIB_ID_TSF_COUNTER = 0x2031, 37 + HIF_MIB_ID_STATISTICS_TABLE = 0x2032, 38 + HIF_MIB_ID_COUNTERS_TABLE = 0x2033, 39 + HIF_MIB_ID_MAX_TX_POWER_LEVEL = 0x2034, 40 + HIF_MIB_ID_EXTENDED_COUNTERS_TABLE = 0x2035, 41 + HIF_MIB_ID_DOT11_MAC_ADDRESS = 0x2040, 42 42 HIF_MIB_ID_DOT11_MAX_TRANSMIT_MSDU_LIFETIME = 0x2041, 43 - HIF_MIB_ID_DOT11_MAX_RECEIVE_LIFETIME = 0x2042, 44 - HIF_MIB_ID_DOT11_WEP_DEFAULT_KEY_ID = 0x2043, 45 - HIF_MIB_ID_DOT11_RTS_THRESHOLD = 0x2044, 46 - HIF_MIB_ID_SLOT_TIME = 0x2045, 47 - HIF_MIB_ID_CURRENT_TX_POWER_LEVEL = 0x2046, 48 - HIF_MIB_ID_NON_ERP_PROTECTION = 0x2047, 49 - HIF_MIB_ID_TEMPLATE_FRAME = 0x2048, 50 - HIF_MIB_ID_BEACON_WAKEUP_PERIOD = 0x2049, 51 - HIF_MIB_ID_RCPI_RSSI_THRESHOLD = 0x204A, 52 - HIF_MIB_ID_BLOCK_ACK_POLICY = 0x204B, 53 - HIF_MIB_ID_OVERRIDE_INTERNAL_TX_RATE = 0x204C, 54 - HIF_MIB_ID_SET_ASSOCIATION_MODE = 0x204D, 55 - HIF_MIB_ID_SET_UAPSD_INFORMATION = 0x204E, 56 - HIF_MIB_ID_SET_TX_RATE_RETRY_POLICY = 0x204F, 57 - HIF_MIB_ID_PROTECTED_MGMT_POLICY = 0x2050, 58 - HIF_MIB_ID_SET_HT_PROTECTION = 0x2051, 59 - HIF_MIB_ID_KEEP_ALIVE_PERIOD = 0x2052, 60 - HIF_MIB_ID_ARP_KEEP_ALIVE_PERIOD = 0x2053, 61 - HIF_MIB_ID_INACTIVITY_TIMER = 0x2054, 62 - HIF_MIB_ID_INTERFACE_PROTECTION = 0x2055, 63 - HIF_MIB_ID_BEACON_STATS = 0x2056, 43 + HIF_MIB_ID_DOT11_MAX_RECEIVE_LIFETIME = 0x2042, 44 + HIF_MIB_ID_DOT11_WEP_DEFAULT_KEY_ID = 0x2043, 45 + HIF_MIB_ID_DOT11_RTS_THRESHOLD = 0x2044, 46 + HIF_MIB_ID_SLOT_TIME = 0x2045, 47 + HIF_MIB_ID_CURRENT_TX_POWER_LEVEL = 0x2046, 48 + HIF_MIB_ID_NON_ERP_PROTECTION = 0x2047, 49 + HIF_MIB_ID_TEMPLATE_FRAME = 0x2048, 50 + HIF_MIB_ID_BEACON_WAKEUP_PERIOD = 0x2049, 51 + HIF_MIB_ID_RCPI_RSSI_THRESHOLD = 0x204A, 52 + HIF_MIB_ID_BLOCK_ACK_POLICY = 0x204B, 53 + HIF_MIB_ID_OVERRIDE_INTERNAL_TX_RATE = 0x204C, 54 + HIF_MIB_ID_SET_ASSOCIATION_MODE = 0x204D, 55 + HIF_MIB_ID_SET_UAPSD_INFORMATION = 0x204E, 56 + HIF_MIB_ID_SET_TX_RATE_RETRY_POLICY = 0x204F, 57 + HIF_MIB_ID_PROTECTED_MGMT_POLICY = 0x2050, 58 + HIF_MIB_ID_SET_HT_PROTECTION = 0x2051, 59 + HIF_MIB_ID_KEEP_ALIVE_PERIOD = 0x2052, 60 + HIF_MIB_ID_ARP_KEEP_ALIVE_PERIOD = 0x2053, 61 + HIF_MIB_ID_INACTIVITY_TIMER = 0x2054, 62 + HIF_MIB_ID_INTERFACE_PROTECTION = 0x2055, 63 + HIF_MIB_ID_BEACON_STATS = 0x2056, 64 64 }; 65 65 66 66 enum hif_op_power_mode { 67 - HIF_OP_POWER_MODE_ACTIVE = 0x0, 68 - HIF_OP_POWER_MODE_DOZE = 0x1, 69 - HIF_OP_POWER_MODE_QUIESCENT = 0x2 67 + HIF_OP_POWER_MODE_ACTIVE = 0x0, 68 + HIF_OP_POWER_MODE_DOZE = 0x1, 69 + HIF_OP_POWER_MODE_QUIESCENT = 0x2 70 70 }; 71 71 72 72 struct hif_mib_gl_operational_power_mode { 73 - u8 power_mode:4; 74 - u8 reserved1:3; 75 - u8 wup_ind_activation:1; 76 - u8 reserved2[3]; 73 + u8 power_mode:4; 74 + u8 reserved1:3; 75 + u8 wup_ind_activation:1; 76 + u8 reserved2[3]; 77 77 } __packed; 78 78 79 79 struct hif_mib_gl_set_multi_msg { 80 - u8 enable_multi_tx_conf:1; 81 - u8 reserved1:7; 82 - u8 reserved2[3]; 80 + u8 enable_multi_tx_conf:1; 81 + u8 reserved1:7; 82 + u8 reserved2[3]; 83 83 } __packed; 84 84 85 85 enum hif_mac_addr_type { 86 - HIF_MAC_ADDR_A1 = 0x0, 87 - HIF_MAC_ADDR_A2 = 0x1, 88 - HIF_MAC_ADDR_A3 = 0x2 86 + HIF_MAC_ADDR_A1 = 0x0, 87 + HIF_MAC_ADDR_A2 = 0x1, 88 + HIF_MAC_ADDR_A3 = 0x2 89 89 }; 90 90 91 91 struct hif_mib_mac_addr_data_frame_condition { 92 - u8 condition_idx; 93 - u8 address_type; 94 - u8 mac_address[ETH_ALEN]; 92 + u8 condition_idx; 93 + u8 address_type; 94 + u8 mac_address[ETH_ALEN]; 95 95 } __packed; 96 96 97 97 #define HIF_FILTER_UNICAST 0x1 ··· 99 99 #define HIF_FILTER_BROADCAST 0x4 100 100 101 101 struct hif_mib_uc_mc_bc_data_frame_condition { 102 - u8 condition_idx; 103 - u8 allowed_frames; 104 - u8 reserved[2]; 102 + u8 condition_idx; 103 + u8 allowed_frames; 104 + u8 reserved[2]; 105 105 } __packed; 106 106 107 107 struct hif_mib_config_data_filter { 108 - u8 filter_idx; 109 - u8 enable; 110 - u8 reserved1[2]; 111 - u8 eth_type_cond; 112 - u8 port_cond; 113 - u8 magic_cond; 114 - u8 mac_cond; 115 - u8 ipv4_cond; 116 - u8 ipv6_cond; 117 - u8 uc_mc_bc_cond; 118 - u8 reserved2; 108 + u8 filter_idx; 109 + u8 enable; 110 + u8 reserved1[2]; 111 + u8 eth_type_cond; 112 + u8 port_cond; 113 + u8 magic_cond; 114 + u8 mac_cond; 115 + u8 ipv4_cond; 116 + u8 ipv6_cond; 117 + u8 uc_mc_bc_cond; 118 + u8 reserved2; 119 119 } __packed; 120 120 121 121 struct hif_mib_set_data_filtering { 122 - u8 invert_matching:1; 123 - u8 reserved1:7; 124 - u8 enable:1; 125 - u8 reserved2:7; 126 - u8 reserved3[2]; 122 + u8 invert_matching:1; 123 + u8 reserved1:7; 124 + u8 enable:1; 125 + u8 reserved2:7; 126 + u8 reserved3[2]; 127 127 } __packed; 128 128 129 129 enum hif_arp_ns_frame_treatment { 130 - HIF_ARP_NS_FILTERING_DISABLE = 0x0, 131 - HIF_ARP_NS_FILTERING_ENABLE = 0x1, 132 - HIF_ARP_NS_REPLY_ENABLE = 0x2 130 + HIF_ARP_NS_FILTERING_DISABLE = 0x0, 131 + HIF_ARP_NS_FILTERING_ENABLE = 0x1, 132 + HIF_ARP_NS_REPLY_ENABLE = 0x2 133 133 }; 134 134 135 135 struct hif_mib_arp_ip_addr_table { 136 - u8 condition_idx; 137 - u8 arp_enable; 138 - u8 reserved[2]; 139 - u8 ipv4_address[HIF_API_IPV4_ADDRESS_SIZE]; 136 + u8 condition_idx; 137 + u8 arp_enable; 138 + u8 reserved[2]; 139 + u8 ipv4_address[HIF_API_IPV4_ADDRESS_SIZE]; 140 140 } __packed; 141 141 142 142 struct hif_mib_rx_filter { 143 - u8 reserved1:1; 144 - u8 bssid_filter:1; 145 - u8 reserved2:1; 146 - u8 fwd_probe_req:1; 147 - u8 keep_alive_filter:1; 148 - u8 reserved3:3; 149 - u8 reserved4[3]; 143 + u8 reserved1:1; 144 + u8 bssid_filter:1; 145 + u8 reserved2:1; 146 + u8 fwd_probe_req:1; 147 + u8 keep_alive_filter:1; 148 + u8 reserved3:3; 149 + u8 reserved4[3]; 150 150 } __packed; 151 151 152 152 struct hif_ie_table_entry { 153 - u8 ie_id; 154 - u8 has_changed:1; 155 - u8 no_longer:1; 156 - u8 has_appeared:1; 157 - u8 reserved:1; 158 - u8 num_match_data:4; 159 - u8 oui[3]; 160 - u8 match_data[3]; 153 + u8 ie_id; 154 + u8 has_changed:1; 155 + u8 no_longer:1; 156 + u8 has_appeared:1; 157 + u8 reserved:1; 158 + u8 num_match_data:4; 159 + u8 oui[3]; 160 + u8 match_data[3]; 161 161 } __packed; 162 162 163 163 struct hif_mib_bcn_filter_table { ··· 166 166 } __packed; 167 167 168 168 enum hif_beacon_filter { 169 - HIF_BEACON_FILTER_DISABLE = 0x0, 170 - HIF_BEACON_FILTER_ENABLE = 0x1, 171 - HIF_BEACON_FILTER_AUTO_ERP = 0x2 169 + HIF_BEACON_FILTER_DISABLE = 0x0, 170 + HIF_BEACON_FILTER_ENABLE = 0x1, 171 + HIF_BEACON_FILTER_AUTO_ERP = 0x2 172 172 }; 173 173 174 174 struct hif_mib_bcn_filter_enable { ··· 232 232 } __packed; 233 233 234 234 struct hif_mib_mac_address { 235 - u8 mac_addr[ETH_ALEN]; 235 + u8 mac_addr[ETH_ALEN]; 236 236 __le16 reserved; 237 237 } __packed; 238 238 239 239 struct hif_mib_wep_default_key_id { 240 - u8 wep_default_key_id; 241 - u8 reserved[3]; 240 + u8 wep_default_key_id; 241 + u8 reserved[3]; 242 242 } __packed; 243 243 244 244 struct hif_mib_dot11_rts_threshold { ··· 254 254 } __packed; 255 255 256 256 struct hif_mib_non_erp_protection { 257 - u8 use_cts_to_self:1; 258 - u8 reserved1:7; 259 - u8 reserved2[3]; 257 + u8 use_cts_to_self:1; 258 + u8 reserved1:7; 259 + u8 reserved2[3]; 260 260 } __packed; 261 261 262 262 enum hif_tmplt { 263 - HIF_TMPLT_PRBREQ = 0x0, 264 - HIF_TMPLT_BCN = 0x1, 265 - HIF_TMPLT_NULL = 0x2, 266 - HIF_TMPLT_QOSNUL = 0x3, 267 - HIF_TMPLT_PSPOLL = 0x4, 268 - HIF_TMPLT_PRBRES = 0x5, 269 - HIF_TMPLT_ARP = 0x6, 270 - HIF_TMPLT_NA = 0x7 263 + HIF_TMPLT_PRBREQ = 0x0, 264 + HIF_TMPLT_BCN = 0x1, 265 + HIF_TMPLT_NULL = 0x2, 266 + HIF_TMPLT_QOSNUL = 0x3, 267 + HIF_TMPLT_PSPOLL = 0x4, 268 + HIF_TMPLT_PRBRES = 0x5, 269 + HIF_TMPLT_ARP = 0x6, 270 + HIF_TMPLT_NA = 0x7 271 271 }; 272 272 273 273 struct hif_mib_template_frame { 274 - u8 frame_type; 275 - u8 init_rate:7; 276 - u8 mode:1; 274 + u8 frame_type; 275 + u8 init_rate:7; 276 + u8 mode:1; 277 277 __le16 frame_length; 278 - u8 frame[700]; 278 + u8 frame[700]; 279 279 } __packed; 280 280 281 281 struct hif_mib_beacon_wake_up_period { 282 - u8 wakeup_period_min; 283 - u8 receive_dtim:1; 284 - u8 reserved1:7; 285 - u8 wakeup_period_max; 286 - u8 reserved2; 282 + u8 wakeup_period_min; 283 + u8 receive_dtim:1; 284 + u8 reserved1:7; 285 + u8 wakeup_period_max; 286 + u8 reserved2; 287 287 } __packed; 288 288 289 289 struct hif_mib_rcpi_rssi_threshold { 290 - u8 detection:1; 291 - u8 rcpi_rssi:1; 292 - u8 upperthresh:1; 293 - u8 lowerthresh:1; 294 - u8 reserved:4; 295 - u8 lower_threshold; 296 - u8 upper_threshold; 297 - u8 rolling_average_count; 290 + u8 detection:1; 291 + u8 rcpi_rssi:1; 292 + u8 upperthresh:1; 293 + u8 lowerthresh:1; 294 + u8 reserved:4; 295 + u8 lower_threshold; 296 + u8 upper_threshold; 297 + u8 rolling_average_count; 298 298 } __packed; 299 299 300 300 #define DEFAULT_BA_MAX_RX_BUFFER_SIZE 16 301 301 302 302 struct hif_mib_block_ack_policy { 303 - u8 block_ack_tx_tid_policy; 304 - u8 reserved1; 305 - u8 block_ack_rx_tid_policy; 306 - u8 block_ack_rx_max_buffer_size; 303 + u8 block_ack_tx_tid_policy; 304 + u8 reserved1; 305 + u8 block_ack_rx_tid_policy; 306 + u8 block_ack_rx_max_buffer_size; 307 307 } __packed; 308 308 309 309 enum hif_mpdu_start_spacing { 310 - HIF_MPDU_START_SPACING_NO_RESTRIC = 0x0, 311 - HIF_MPDU_START_SPACING_QUARTER = 0x1, 312 - HIF_MPDU_START_SPACING_HALF = 0x2, 313 - HIF_MPDU_START_SPACING_ONE = 0x3, 314 - HIF_MPDU_START_SPACING_TWO = 0x4, 315 - HIF_MPDU_START_SPACING_FOUR = 0x5, 316 - HIF_MPDU_START_SPACING_EIGHT = 0x6, 317 - HIF_MPDU_START_SPACING_SIXTEEN = 0x7 310 + HIF_MPDU_START_SPACING_NO_RESTRIC = 0x0, 311 + HIF_MPDU_START_SPACING_QUARTER = 0x1, 312 + HIF_MPDU_START_SPACING_HALF = 0x2, 313 + HIF_MPDU_START_SPACING_ONE = 0x3, 314 + HIF_MPDU_START_SPACING_TWO = 0x4, 315 + HIF_MPDU_START_SPACING_FOUR = 0x5, 316 + HIF_MPDU_START_SPACING_EIGHT = 0x6, 317 + HIF_MPDU_START_SPACING_SIXTEEN = 0x7 318 318 }; 319 319 320 320 struct hif_mib_set_association_mode { 321 - u8 preambtype_use:1; 322 - u8 mode:1; 323 - u8 rateset:1; 324 - u8 spacing:1; 325 - u8 reserved1:4; 326 - u8 short_preamble:1; 327 - u8 reserved2:7; 328 - u8 greenfield:1; 329 - u8 reserved3:7; 330 - u8 mpdu_start_spacing; 321 + u8 preambtype_use:1; 322 + u8 mode:1; 323 + u8 rateset:1; 324 + u8 spacing:1; 325 + u8 reserved1:4; 326 + u8 short_preamble:1; 327 + u8 reserved2:7; 328 + u8 greenfield:1; 329 + u8 reserved3:7; 330 + u8 mpdu_start_spacing; 331 331 __le32 basic_rate_set; 332 332 } __packed; 333 333 334 334 struct hif_mib_set_uapsd_information { 335 - u8 trig_bckgrnd:1; 336 - u8 trig_be:1; 337 - u8 trig_video:1; 338 - u8 trig_voice:1; 339 - u8 reserved1:4; 340 - u8 deliv_bckgrnd:1; 341 - u8 deliv_be:1; 342 - u8 deliv_video:1; 343 - u8 deliv_voice:1; 344 - u8 reserved2:4; 335 + u8 trig_bckgrnd:1; 336 + u8 trig_be:1; 337 + u8 trig_video:1; 338 + u8 trig_voice:1; 339 + u8 reserved1:4; 340 + u8 deliv_bckgrnd:1; 341 + u8 deliv_be:1; 342 + u8 deliv_video:1; 343 + u8 deliv_voice:1; 344 + u8 reserved2:4; 345 345 __le16 min_auto_trigger_interval; 346 346 __le16 max_auto_trigger_interval; 347 347 __le16 auto_trigger_step; 348 348 } __packed; 349 349 350 350 struct hif_mib_tx_rate_retry_policy { 351 - u8 policy_index; 352 - u8 short_retry_count; 353 - u8 long_retry_count; 354 - u8 first_rate_sel:2; 355 - u8 terminate:1; 356 - u8 count_init:1; 357 - u8 reserved1:4; 358 - u8 rate_recovery_count; 359 - u8 reserved2[3]; 360 - u8 rates[12]; 351 + u8 policy_index; 352 + u8 short_retry_count; 353 + u8 long_retry_count; 354 + u8 first_rate_sel:2; 355 + u8 terminate:1; 356 + u8 count_init:1; 357 + u8 reserved1:4; 358 + u8 rate_recovery_count; 359 + u8 reserved2[3]; 360 + u8 rates[12]; 361 361 } __packed; 362 362 363 - #define HIF_TX_RETRY_POLICY_MAX 15 364 - #define HIF_TX_RETRY_POLICY_INVALID HIF_TX_RETRY_POLICY_MAX 363 + #define HIF_TX_RETRY_POLICY_MAX 15 364 + #define HIF_TX_RETRY_POLICY_INVALID HIF_TX_RETRY_POLICY_MAX 365 365 366 366 struct hif_mib_set_tx_rate_retry_policy { 367 - u8 num_tx_rate_policies; 368 - u8 reserved[3]; 367 + u8 num_tx_rate_policies; 368 + u8 reserved[3]; 369 369 struct hif_mib_tx_rate_retry_policy tx_rate_retry_policy[]; 370 370 } __packed; 371 371 372 372 struct hif_mib_protected_mgmt_policy { 373 - u8 pmf_enable:1; 374 - u8 unpmf_allowed:1; 375 - u8 host_enc_auth_frames:1; 376 - u8 reserved1:5; 377 - u8 reserved2[3]; 373 + u8 pmf_enable:1; 374 + u8 unpmf_allowed:1; 375 + u8 host_enc_auth_frames:1; 376 + u8 reserved1:5; 377 + u8 reserved2[3]; 378 378 } __packed; 379 379 380 380 struct hif_mib_set_ht_protection { 381 - u8 dual_cts_prot:1; 382 - u8 reserved1:7; 383 - u8 reserved2[3]; 381 + u8 dual_cts_prot:1; 382 + u8 reserved1:7; 383 + u8 reserved2[3]; 384 384 } __packed; 385 385 386 386 struct hif_mib_keep_alive_period { 387 387 __le16 keep_alive_period; 388 - u8 reserved[2]; 388 + u8 reserved[2]; 389 389 } __packed; 390 390 391 391 #endif