patch-2.4.4 linux/drivers/net/wavelan.c
Next file: linux/drivers/net/wd.c
Previous file: linux/drivers/net/wan/x25_asy.c
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Wed Apr 25 14:36:23 2001
- Orig file:
v2.4.3/linux/drivers/net/wavelan.c
- Orig date:
Sat Mar 3 10:55:47 2001
diff -u --recursive --new-file v2.4.3/linux/drivers/net/wavelan.c linux/drivers/net/wavelan.c
@@ -2028,8 +2028,17 @@
if (wrq->u.data.pointer != (caddr_t) 0) {
struct iw_range range;
- /* Set the length (useless: it's constant). */
+ /* Set the length (very important for backward
+ * compatibility) */
wrq->u.data.length = sizeof(struct iw_range);
+
+ /* Set all the info we don't care or don't know
+ * about to zero */
+ memset(&range, 0, sizeof(range));
+
+ /* Set the Wireless Extension versions */
+ range.we_version_compiled = WIRELESS_EXT;
+ range.we_version_source = 9;
/* Set information in the range struct. */
range.throughput = 1.6 * 1000 * 1000; /* don't argue on this ! */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)