o wl3501: nuke def_chan, useless

But I still didn't managed to change the channel on the
firmware... will implement wl3501_set_mib_value...
parent 7fbb760a
...@@ -521,7 +521,6 @@ struct wl3501_card { ...@@ -521,7 +521,6 @@ struct wl3501_card {
unsigned char card_name[32]; unsigned char card_name[32];
unsigned char firmware_date[32]; unsigned char firmware_date[32];
u8 chan; u8 chan;
u8 def_chan;
u8 cap_info; u8 cap_info;
u16 start_seg; u16 start_seg;
u16 bss_cnt; u16 bss_cnt;
......
...@@ -491,7 +491,7 @@ static int wl3501_mgmt_join(struct wl3501_card *this, u16 stas) ...@@ -491,7 +491,7 @@ static int wl3501_mgmt_join(struct wl3501_card *this, u16 stas)
.sig_id = WL3501_SIG_JOIN_REQ, .sig_id = WL3501_SIG_JOIN_REQ,
.timeout = 10, .timeout = 10,
.phy_pset = { .phy_pset = {
[2] = this->def_chan, [2] = this->chan,
}, },
}; };
...@@ -1479,7 +1479,7 @@ static int wl3501_set_freq(struct net_device *dev, struct iw_request_info *info, ...@@ -1479,7 +1479,7 @@ static int wl3501_set_freq(struct net_device *dev, struct iw_request_info *info,
else { else {
struct wl3501_card *this = (struct wl3501_card *)dev->priv; struct wl3501_card *this = (struct wl3501_card *)dev->priv;
this->def_chan = channel; this->chan = channel;
rc = wl3501_reset(dev); rc = wl3501_reset(dev);
} }
...@@ -2026,16 +2026,16 @@ static void wl3501_config(dev_link_t *link) ...@@ -2026,16 +2026,16 @@ static void wl3501_config(dev_link_t *link)
switch (this->reg_domain) { switch (this->reg_domain) {
case WL3501_REG_DOMAIN_SPAIN: case WL3501_REG_DOMAIN_SPAIN:
case WL3501_REG_DOMAIN_FRANCE: case WL3501_REG_DOMAIN_FRANCE:
this->def_chan = 10; this->chan = 10;
break; break;
case WL3501_REG_DOMAIN_MKK: case WL3501_REG_DOMAIN_MKK:
this->def_chan = 14; this->chan = 14;
break; break;
case WL3501_REG_DOMAIN_FCC: case WL3501_REG_DOMAIN_FCC:
case WL3501_REG_DOMAIN_IC: case WL3501_REG_DOMAIN_IC:
case WL3501_REG_DOMAIN_ETSI: case WL3501_REG_DOMAIN_ETSI:
default: default:
this->def_chan = 1; this->chan = 1;
break; break;
} }
netif_start_queue(dev); netif_start_queue(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment