Skip to contentSkip to conversation

prism54 Bug - Fix frequency reporting

PATCH In review Margit Schubert-While 1 participant 1 message Sep 5, 2004

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/6 prism54 Bug - Fix frequency reporting

2004-09-05 Margit Schubert-While <[email protected]>

* 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.

Margit

drivers/net/wireless/prism54/isl_ioctl.c +3 -2
diff -Naur linux-2.6.9rc1/drivers/net/wireless/prism54/isl_ioctl.c linux-2.6.9-rc1msw/drivers/net/wireless/prism54/isl_ioctl.c
@@ -334,9 +334,10 @@
 	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;
 }

_______________________________________________
Prism54-devel mailing list
[email protected]
http://prism54.org/mailman/listinfo/prism54-devel