Skip to contentSkip to conversation

prism54 Bug - Fix frequency reporting

PATCH In review Margit Schubert-While 2 participants 2 messages Aug 11, 2004

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

PATCH 1/1 prism54 Bug - Fix frequency reporting

2004-08-11 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.8-01/drivers/net/wireless/prism54/isl_ioctl.c linux-2.6.8-04/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

#1 lore raw
Quoted 10 lines · Margit Schubert-While

2004-08-11 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

This fixes capturing frequency for wpa_supplicant as well.

Luis

Signature · 1 line
GnuPG Key fingerprint = 113F B290 C6D2 0251 4D84  A34A 6ADD 4937 E20A 525E