o wl3501: implement get_rate wireless extension

For now returning a fixed rate of 2 Mbit/s, that is by far
the most common for this thing, but perhaps this card can
work at 1 Mbit/s and so I have to find out from were to get
this info, without documentation coding drivers is, humm,
"fun" :-\
parent 355b068e
......@@ -1998,9 +1998,21 @@ static int wl3501_get_nick(struct net_device *dev, struct iw_request_info *info,
return 0;
}
static int wl3501_get_rate(struct net_device *dev, struct iw_request_info *info,
union iwreq_data *wrqu, char *extra)
{
/*
* FIXME: have to see from where to get this info, perhaps this card
* works at 1 Mbit/s too... for now leave at 2 Mbit/s that is the most
* common with the Planet Access Points. -acme
*/
wrqu->bitrate.value = 2000000;
wrqu->bitrate.fixed = 1;
return 0;
}
static const iw_handler wl3501_handler[] = {
[SIOCGIWNAME - SIOCSIWCOMMIT] = wl3501_get_name,
//[SIOCSIWFREQ - SIOCSIWCOMMIT] = wl3501_set_freq,
[SIOCGIWFREQ - SIOCSIWCOMMIT] = wl3501_get_freq,
[SIOCSIWMODE - SIOCSIWCOMMIT] = wl3501_set_mode,
[SIOCGIWMODE - SIOCSIWCOMMIT] = wl3501_get_mode,
......@@ -2016,6 +2028,7 @@ static const iw_handler wl3501_handler[] = {
[SIOCGIWESSID - SIOCSIWCOMMIT] = wl3501_get_essid,
[SIOCSIWNICKN - SIOCSIWCOMMIT] = wl3501_set_nick,
[SIOCGIWNICKN - SIOCSIWCOMMIT] = wl3501_get_nick,
[SIOCGIWRATE - SIOCSIWCOMMIT] = wl3501_get_rate,
};
static const struct iw_handler_def wl3501_handler_def = {
......
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