diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2009-10-22 09:30:46 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-27 16:48:36 -0400 |
commit | f4228b4c2e5864ee9d2051176beb2bd5a49a15cc (patch) | |
tree | 2b71315c12ab84c145fa75283f7e79a39d170c98 /drivers/net | |
parent | d37b4fdd43f7e5686c40181f33a50a7ee03ddbd8 (diff) |
libertas: remove unused 11d.h as well, priv->countryinfo
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/libertas/11d.h | 82 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/dev.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/host.h | 6 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/scan.c | 21 |
4 files changed, 2 insertions, 109 deletions
diff --git a/drivers/net/wireless/libertas/11d.h b/drivers/net/wireless/libertas/11d.h deleted file mode 100644 index a46ae500b250..000000000000 --- a/drivers/net/wireless/libertas/11d.h +++ /dev/null | |||
@@ -1,82 +0,0 @@ | |||
1 | /** | ||
2 | * This header file contains data structures and | ||
3 | * function declarations of 802.11d | ||
4 | */ | ||
5 | #ifndef _LBS_11D_ | ||
6 | #define _LBS_11D_ | ||
7 | |||
8 | #include "types.h" | ||
9 | #include "defs.h" | ||
10 | |||
11 | #define UNIVERSAL_REGION_CODE 0xff | ||
12 | |||
13 | /** (Beaconsize(256)-5(IEId,len,contrystr(3))/3(FirstChan,NoOfChan,MaxPwr) | ||
14 | */ | ||
15 | #define MRVDRV_MAX_SUBBAND_802_11D 83 | ||
16 | |||
17 | #define COUNTRY_CODE_LEN 3 | ||
18 | #define MAX_NO_OF_CHAN 40 | ||
19 | |||
20 | struct cmd_ds_command; | ||
21 | |||
22 | /** Data structure for Country IE*/ | ||
23 | struct ieee_subbandset { | ||
24 | u8 firstchan; | ||
25 | u8 nrchan; | ||
26 | u8 maxtxpwr; | ||
27 | } __attribute__ ((packed)); | ||
28 | |||
29 | struct ieee_ie_country_info_set { | ||
30 | struct ieee_ie_header header; | ||
31 | |||
32 | u8 countrycode[COUNTRY_CODE_LEN]; | ||
33 | struct ieee_subbandset subband[1]; | ||
34 | }; | ||
35 | |||
36 | struct ieee_ie_country_info_full_set { | ||
37 | struct ieee_ie_header header; | ||
38 | |||
39 | u8 countrycode[COUNTRY_CODE_LEN]; | ||
40 | struct ieee_subbandset subband[MRVDRV_MAX_SUBBAND_802_11D]; | ||
41 | } __attribute__ ((packed)); | ||
42 | |||
43 | struct mrvl_ie_domain_param_set { | ||
44 | struct mrvl_ie_header header; | ||
45 | |||
46 | u8 countrycode[COUNTRY_CODE_LEN]; | ||
47 | struct ieee_subbandset subband[1]; | ||
48 | } __attribute__ ((packed)); | ||
49 | |||
50 | struct cmd_ds_802_11d_domain_info { | ||
51 | __le16 action; | ||
52 | struct mrvl_ie_domain_param_set domain; | ||
53 | } __attribute__ ((packed)); | ||
54 | |||
55 | /** domain regulatory information */ | ||
56 | struct lbs_802_11d_domain_reg { | ||
57 | /** country Code*/ | ||
58 | u8 countrycode[COUNTRY_CODE_LEN]; | ||
59 | /** No. of subband*/ | ||
60 | u8 nr_subband; | ||
61 | struct ieee_subbandset subband[MRVDRV_MAX_SUBBAND_802_11D]; | ||
62 | }; | ||
63 | |||
64 | struct chan_power_11d { | ||
65 | u8 chan; | ||
66 | u8 pwr; | ||
67 | } __attribute__ ((packed)); | ||
68 | |||
69 | struct parsed_region_chan_11d { | ||
70 | u8 band; | ||
71 | u8 region; | ||
72 | s8 countrycode[COUNTRY_CODE_LEN]; | ||
73 | struct chan_power_11d chanpwr[MAX_NO_OF_CHAN]; | ||
74 | u8 nr_chan; | ||
75 | } __attribute__ ((packed)); | ||
76 | |||
77 | struct region_code_mapping { | ||
78 | u8 region[COUNTRY_CODE_LEN]; | ||
79 | u8 code; | ||
80 | }; | ||
81 | |||
82 | #endif | ||
diff --git a/drivers/net/wireless/libertas/dev.h b/drivers/net/wireless/libertas/dev.h index 968acdb53f56..52b5ca1cd57e 100644 --- a/drivers/net/wireless/libertas/dev.h +++ b/drivers/net/wireless/libertas/dev.h | |||
@@ -360,8 +360,6 @@ struct bss_descriptor { | |||
360 | union ieee_phy_param_set phy; | 360 | union ieee_phy_param_set phy; |
361 | union ieee_ss_param_set ss; | 361 | union ieee_ss_param_set ss; |
362 | 362 | ||
363 | struct ieee_ie_country_info_full_set countryinfo; | ||
364 | |||
365 | u8 wpa_ie[MAX_WPA_IE_LEN]; | 363 | u8 wpa_ie[MAX_WPA_IE_LEN]; |
366 | size_t wpa_ie_len; | 364 | size_t wpa_ie_len; |
367 | u8 rsn_ie[MAX_WPA_IE_LEN]; | 365 | u8 rsn_ie[MAX_WPA_IE_LEN]; |
diff --git a/drivers/net/wireless/libertas/host.h b/drivers/net/wireless/libertas/host.h index 25342743b1f7..d2a8d04d2b45 100644 --- a/drivers/net/wireless/libertas/host.h +++ b/drivers/net/wireless/libertas/host.h | |||
@@ -6,7 +6,8 @@ | |||
6 | #ifndef _LBS_HOST_H_ | 6 | #ifndef _LBS_HOST_H_ |
7 | #define _LBS_HOST_H_ | 7 | #define _LBS_HOST_H_ |
8 | 8 | ||
9 | #include "11d.h" | 9 | #include "types.h" |
10 | #include "defs.h" | ||
10 | 11 | ||
11 | #define DEFAULT_AD_HOC_CHANNEL 6 | 12 | #define DEFAULT_AD_HOC_CHANNEL 6 |
12 | 13 | ||
@@ -961,9 +962,6 @@ struct cmd_ds_command { | |||
961 | struct cmd_ds_bbp_reg_access bbpreg; | 962 | struct cmd_ds_bbp_reg_access bbpreg; |
962 | struct cmd_ds_rf_reg_access rfreg; | 963 | struct cmd_ds_rf_reg_access rfreg; |
963 | 964 | ||
964 | struct cmd_ds_802_11d_domain_info domaininfo; | ||
965 | struct cmd_ds_802_11d_domain_info domaininforesp; | ||
966 | |||
967 | struct cmd_ds_802_11_tpc_cfg tpccfg; | 965 | struct cmd_ds_802_11_tpc_cfg tpccfg; |
968 | struct cmd_ds_802_11_afc afc; | 966 | struct cmd_ds_802_11_afc afc; |
969 | struct cmd_ds_802_11_led_ctrl ledgpio; | 967 | struct cmd_ds_802_11_led_ctrl ledgpio; |
diff --git a/drivers/net/wireless/libertas/scan.c b/drivers/net/wireless/libertas/scan.c index 584ff76bcf82..64b404783f44 100644 --- a/drivers/net/wireless/libertas/scan.c +++ b/drivers/net/wireless/libertas/scan.c | |||
@@ -503,7 +503,6 @@ static int lbs_process_bss(struct bss_descriptor *bss, | |||
503 | struct ieee_ie_cf_param_set *cf; | 503 | struct ieee_ie_cf_param_set *cf; |
504 | struct ieee_ie_ibss_param_set *ibss; | 504 | struct ieee_ie_ibss_param_set *ibss; |
505 | DECLARE_SSID_BUF(ssid); | 505 | DECLARE_SSID_BUF(ssid); |
506 | struct ieee_ie_country_info_set *pcountryinfo; | ||
507 | uint8_t *pos, *end, *p; | 506 | uint8_t *pos, *end, *p; |
508 | uint8_t n_ex_rates = 0, got_basic_rates = 0, n_basic_rates = 0; | 507 | uint8_t n_ex_rates = 0, got_basic_rates = 0, n_basic_rates = 0; |
509 | uint16_t beaconsize = 0; | 508 | uint16_t beaconsize = 0; |
@@ -626,26 +625,6 @@ static int lbs_process_bss(struct bss_descriptor *bss, | |||
626 | lbs_deb_scan("got IBSS IE\n"); | 625 | lbs_deb_scan("got IBSS IE\n"); |
627 | break; | 626 | break; |
628 | 627 | ||
629 | case WLAN_EID_COUNTRY: | ||
630 | pcountryinfo = (struct ieee_ie_country_info_set *) pos; | ||
631 | lbs_deb_scan("got COUNTRY IE\n"); | ||
632 | if (pcountryinfo->header.len < sizeof(pcountryinfo->countrycode) | ||
633 | || pcountryinfo->header.len > 254) { | ||
634 | lbs_deb_scan("%s: 11D- Err CountryInfo len %d, min %zd, max 254\n", | ||
635 | __func__, | ||
636 | pcountryinfo->header.len, | ||
637 | sizeof(pcountryinfo->countrycode)); | ||
638 | ret = -1; | ||
639 | goto done; | ||
640 | } | ||
641 | |||
642 | memcpy(&bss->countryinfo, pcountryinfo, | ||
643 | pcountryinfo->header.len + 2); | ||
644 | lbs_deb_hex(LBS_DEB_SCAN, "process_bss: 11d countryinfo", | ||
645 | (uint8_t *) pcountryinfo, | ||
646 | (int) (pcountryinfo->header.len + 2)); | ||
647 | break; | ||
648 | |||
649 | case WLAN_EID_EXT_SUPP_RATES: | 628 | case WLAN_EID_EXT_SUPP_RATES: |
650 | /* only process extended supported rate if data rate is | 629 | /* only process extended supported rate if data rate is |
651 | * already found. Data rate IE should come before | 630 | * already found. Data rate IE should come before |