diff options
author | Dan Williams <dcbw@redhat.com> | 2010-07-27 15:56:05 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-07-27 15:07:30 -0400 |
commit | cc4b9d3928d682c4a15690c2bd9ed11c2eac5921 (patch) | |
tree | 36bb70576b32bbdd148f4c71e54c09a0ed500042 /drivers/net/wireless/libertas/host.h | |
parent | 9fb7663d2b832183ec7558a19426666819636a64 (diff) |
libertas: convert 11D_DOMAIN_INFO to a direct command
Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/host.h')
-rw-r--r-- | drivers/net/wireless/libertas/host.h | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/drivers/net/wireless/libertas/host.h b/drivers/net/wireless/libertas/host.h index 0517ec3d4ba3..ff42a08bb2d5 100644 --- a/drivers/net/wireless/libertas/host.h +++ b/drivers/net/wireless/libertas/host.h | |||
@@ -389,30 +389,22 @@ struct lbs_offset_value { | |||
389 | u32 value; | 389 | u32 value; |
390 | } __packed; | 390 | } __packed; |
391 | 391 | ||
392 | #define MRVDRV_MAX_TRIPLET_802_11D 83 | 392 | #define MAX_11D_TRIPLETS 83 |
393 | |||
394 | #define COUNTRY_CODE_LEN 3 | ||
395 | 393 | ||
396 | struct mrvl_ie_domain_param_set { | 394 | struct mrvl_ie_domain_param_set { |
397 | struct mrvl_ie_header header; | 395 | struct mrvl_ie_header header; |
398 | 396 | ||
399 | u8 countrycode[COUNTRY_CODE_LEN]; | 397 | u8 country_code[3]; |
400 | struct ieee80211_country_ie_triplet triplet[1]; | 398 | struct ieee80211_country_ie_triplet triplet[MAX_11D_TRIPLETS]; |
401 | } __packed; | 399 | } __packed; |
402 | 400 | ||
403 | struct cmd_ds_802_11d_domain_info { | 401 | struct cmd_ds_802_11d_domain_info { |
402 | struct cmd_header hdr; | ||
403 | |||
404 | __le16 action; | 404 | __le16 action; |
405 | struct mrvl_ie_domain_param_set domain; | 405 | struct mrvl_ie_domain_param_set domain; |
406 | } __packed; | 406 | } __packed; |
407 | 407 | ||
408 | struct lbs_802_11d_domain_reg { | ||
409 | /** Country code*/ | ||
410 | u8 country_code[COUNTRY_CODE_LEN]; | ||
411 | /** No. of triplet*/ | ||
412 | u8 no_triplet; | ||
413 | struct ieee80211_country_ie_triplet triplet[MRVDRV_MAX_TRIPLET_802_11D]; | ||
414 | } __packed; | ||
415 | |||
416 | /* | 408 | /* |
417 | * Define data structure for CMD_GET_HW_SPEC | 409 | * Define data structure for CMD_GET_HW_SPEC |
418 | * This structure defines the response for the GET_HW_SPEC command | 410 | * This structure defines the response for the GET_HW_SPEC command |
@@ -973,9 +965,6 @@ struct cmd_ds_command { | |||
973 | struct cmd_ds_bbp_reg_access bbpreg; | 965 | struct cmd_ds_bbp_reg_access bbpreg; |
974 | struct cmd_ds_rf_reg_access rfreg; | 966 | struct cmd_ds_rf_reg_access rfreg; |
975 | 967 | ||
976 | struct cmd_ds_802_11d_domain_info domaininfo; | ||
977 | struct cmd_ds_802_11d_domain_info domaininforesp; | ||
978 | |||
979 | struct cmd_ds_802_11_tpc_cfg tpccfg; | 968 | struct cmd_ds_802_11_tpc_cfg tpccfg; |
980 | struct cmd_ds_802_11_afc afc; | 969 | struct cmd_ds_802_11_afc afc; |
981 | struct cmd_ds_802_11_led_ctrl ledgpio; | 970 | struct cmd_ds_802_11_led_ctrl ledgpio; |