]> git.hungrycats.org Git - linux/commitdiff
[PATCH] prism54 Bug - Fix frequency reporting
authorMargit Schubert-While <margitsw@t-online.de>
Sun, 5 Sep 2004 11:15:27 +0000 (07:15 -0400)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 5 Sep 2004 11:15:27 +0000 (07:15 -0400)
* prism54_get_freq is incorrectly returning channel
* and not frequency. Wireless tools detect this, but
* other programs do not, leading to insane reported
* values. (As Jean documents, drivers should really be
* reporting the frequency).
* An example is wavemon.

drivers/net/wireless/prism54/isl_ioctl.c

index 7924b36a7d28eef1020c5038a981d362659e523c..2d7e1cf88139d80e3c1a69eb31c831a927be6af5 100644 (file)
@@ -334,9 +334,10 @@ prism54_get_freq(struct net_device *ndev, struct iw_request_info *info,
        int rvalue;
 
        rvalue = mgt_get_request(priv, DOT11_OID_CHANNEL, 0, NULL, &r);
-
+       fwrq->i = r.u;
+       rvalue |= mgt_get_request(priv, DOT11_OID_FREQUENCY, 0, NULL, &r);
        fwrq->m = r.u;
-       fwrq->e = 0;
+       fwrq->e = 3;
 
        return rvalue;
 }