MFC 1.49: allow net80211 to fillin rate sets
This commit is contained in:
parent
09bb88ed66
commit
718c304e1c
@ -173,18 +173,6 @@ Static void ural_amrr_update(usbd_xfer_handle, usbd_private_handle,
|
||||
Static void ural_ratectl(struct ural_amrr *,
|
||||
struct ieee80211_node *);
|
||||
|
||||
/*
|
||||
* Supported rates for 802.11a/b/g modes (in 500Kbps unit).
|
||||
*/
|
||||
static const struct ieee80211_rateset ural_rateset_11a =
|
||||
{ 8, { 12, 18, 24, 36, 48, 72, 96, 108 } };
|
||||
|
||||
static const struct ieee80211_rateset ural_rateset_11b =
|
||||
{ 4, { 2, 4, 11, 22 } };
|
||||
|
||||
static const struct ieee80211_rateset ural_rateset_11g =
|
||||
{ 12, { 2, 4, 11, 22, 12, 18, 24, 36, 48, 72, 96, 108 } };
|
||||
|
||||
/*
|
||||
* Default values for MAC registers; values taken from the reference driver.
|
||||
*/
|
||||
@ -467,9 +455,6 @@ USB_ATTACH(ural)
|
||||
IEEE80211_C_WPA; /* 802.11i */
|
||||
|
||||
if (sc->rf_rev == RAL_RF_5222) {
|
||||
/* set supported .11a rates */
|
||||
ic->ic_sup_rates[IEEE80211_MODE_11A] = ural_rateset_11a;
|
||||
|
||||
/* set supported .11a channels */
|
||||
for (i = 36; i <= 64; i += 4) {
|
||||
ic->ic_channels[i].ic_freq =
|
||||
@ -488,10 +473,6 @@ USB_ATTACH(ural)
|
||||
}
|
||||
}
|
||||
|
||||
/* set supported .11b and .11g rates */
|
||||
ic->ic_sup_rates[IEEE80211_MODE_11B] = ural_rateset_11b;
|
||||
ic->ic_sup_rates[IEEE80211_MODE_11G] = ural_rateset_11g;
|
||||
|
||||
/* set supported .11b and .11g channels (1 through 14) */
|
||||
for (i = 1; i <= 14; i++) {
|
||||
ic->ic_channels[i].ic_freq =
|
||||
|
Loading…
x
Reference in New Issue
Block a user