[PATCH 2.4] Wireless Extension v16 : 802.11a/802.11g fixes

[PATCH 2.4] Wireless Extension v16 : 802.11a/802.11g fixes

Post by Jean Tourr » Fri, 05 Sep 2003 04:10:14


Hi Marcelo,

Could you add this in 2.4.23 ?
This patch update Wireless Extensions to v16. This is the same
patch that went into kernel 2.5.70, but rediffed and tested with
2.4.23-pre2.
This update fixes a few details for 802.11a/802.11g support,
like increasing the number of frequencies and bitrates. It also
features an improved iwspy support.
Note that airo.c included in 2.4.23-pre2 already include WE-16
support, so this patch is needed to enable this support. Of course, I
tested that airo.c works properly after the upgrade.

Thanks...

Jean

-----------------------------------------------------------------

diff -u -p linux/include/linux/wireless.15.h linux/include/linux/wireless.h
--- linux/include/linux/wireless.15.h Wed Sep 3 11:11:16 2003
+++ linux/include/linux/wireless.h Wed Sep 3 11:12:57 2003
@@ -1,7 +1,7 @@
/*
* This file define a set of standard wireless extensions
*
- * Version : 15 12.7.02
+ * Version : 16 2.4.03
*
* Authors : Jean Tourrilhes - HPL - < XXXX@XXXXX.COM >
* Copyright (c) 1997-2002 Jean Tourrilhes, All Rights Reserved.
@@ -69,6 +69,8 @@

/***************************** INCLUDES *****************************/

+/* To minimise problems in user space, I might remove those headers
+ * at some point. Jean II */
#include <linux/types.h> /* for "caddr_t" et al */
#include <linux/socket.h> /* for "struct sockaddr" et al */
#include <linux/if.h> /* for IFNAMSIZ and co... */
@@ -80,7 +82,7 @@
* (there is some stuff that will be added in the future...)
* I just plan to increment with each new version.
*/
-#define WIRELESS_EXT 15
+#define WIRELESS_EXT 16

/*
* Changes :
@@ -163,6 +165,16 @@
* - Add IW_TXPOW_RANGE for range of Tx Powers
* - Add IWEVREGISTERED & IWEVEXPIRED events for Access Points
* - Add IW_MODE_MONITOR for passive monitor
+ *
+ * V15 to V16
+ * ----------
+ * - Increase the number of bitrates in iw_range to 32 (for 802.11g)
+ * - Increase the number of frequencies in iw_range to 32 (for 802.11b+a)
+ * - Reshuffle struct iw_range for increases, add filler
+ * - Increase IW_MAX_AP to 64 for driver returning a lot of addresses
+ * - Remove IW_MAX_GET_SPY because conflict with enhanced spy support
+ * - Add SIOCSIWTHRSPY/SIOCGIWTHRSPY and "struct iw_thrspy"
+ * - Add IW_ENCODE_TEMP and iw_range->encoding_login_index
*/

/**************************** CONSTANTS ****************************/
@@ -196,9 +208,11 @@
/* SIOCGIWSTATS is strictly used between user space and the kernel, and
* is never passed to the driver (i.e. the driver will never see it). */

-/* Mobile IP support (statistics per MAC address) */
+/* Spy support (statistics per MAC address - used for Mobile IP support) */
#define SIOCSIWSPY 0x8B10 /* set spy addresses */
#define SIOCGIWSPY 0x8B11 /* get spy info (quality of link) */
+#define SIOCSIWTHRSPY 0x8B12 /* set spy threshold (spy event) */
+#define SIOCGIWTHRSPY 0x8B13 /* get spy threshold */

/* Access Point manipulation */
#define SIOCSIWAP 0x8B14 /* set access point MAC addresses */
@@ -294,7 +308,7 @@
#define IW_PRIV_TYPE_FLOAT 0x5000 /* struct iw_freq */
#define IW_PRIV_TYPE_ADDR 0x6000 /* struct sockaddr */

-#define IW_PRIV_SIZE_FIXED 0x0800 /* Variable or fixed nuber of args */
+#define IW_PRIV_SIZE_FIXED 0x0800 /* Variable or fixed number of args */

#define IW_PRIV_SIZE_MASK 0x07FF /*
 
 
 

[PATCH 2.4] Wireless Extension v16 : 802.11a/802.11g fixes

Post by Jean Tourr » Sat, 06 Sep 2003 02:50:21

Hi Marcelo,

I really need this patch to go in 2.4.23, as many wireless
drivers need it (airo.c + various external drivers). This is super
safe as many people have tested it in 2.5.X and downloaded from my web
page.
Resend (see below), retested for 2.4.23-pre3.
Changelog :
o add more 802.11a/802.11g support (more freq/bitrates)
o improved iwspy support (used by airo.c)

Thanks in advance...

Jean

-----------------------------------------------------------

Hi Marcelo,

Could you add this in 2.4.23 ?
This patch update Wireless Extensions to v16. This is the same
patch that went into kernel 2.5.70, but rediffed and tested with
2.4.23-pre2.
This update fixes a few details for 802.11a/802.11g support,
like increasing the number of frequencies and bitrates. It also
features an improved iwspy support.
Note that airo.c included in 2.4.23-pre2 already include WE-16
support, so this patch is needed to enable this support. Of course, I
tested that airo.c works properly after the upgrade.

Thanks...

Jean

-----------------------------------------------------------------

diff -u -p linux/include/linux/wireless.15.h linux/include/linux/wireless.h
--- linux/include/linux/wireless.15.h Wed Sep 3 11:11:16 2003
+++ linux/include/linux/wireless.h Wed Sep 3 11:12:57 2003
@@ -1,7 +1,7 @@
/*
* This file define a set of standard wireless extensions
*
- * Version : 15 12.7.02
+ * Version : 16 2.4.03
*
* Authors : Jean Tourrilhes - HPL - < XXXX@XXXXX.COM >
* Copyright (c) 1997-2002 Jean Tourrilhes, All Rights Reserved.
@@ -69,6 +69,8 @@

/***************************** INCLUDES *****************************/

+/* To minimise problems in user space, I might remove those headers
+ * at some point. Jean II */
#include <linux/types.h> /* for "caddr_t" et al */
#include <linux/socket.h> /* for "struct sockaddr" et al */
#include <linux/if.h> /* for IFNAMSIZ and co... */
@@ -80,7 +82,7 @@
* (there is some stuff that will be added in the future...)
* I just plan to increment with each new version.
*/
-#define WIRELESS_EXT 15
+#define WIRELESS_EXT 16

/*
* Changes :
@@ -163,6 +165,16 @@
* - Add IW_TXPOW_RANGE for range of Tx Powers
* - Add IWEVREGISTERED & IWEVEXPIRED events for Access Points
* - Add IW_MODE_MONITOR for passive monitor
+ *
+ * V15 to V16
+ * ----------
+ * - Increase the number of bitrates in iw_range to 32 (for 802.11g)
+ * - Increase the number of frequencies in iw_range to 32 (for 802.11b+a)
+ * - Reshuffle struct iw_range for increases, add filler
+ * - Increase IW_MAX_AP to 64 for driver returning a lot of addresses
+ * - Remove IW_MAX_GET_SPY because conflict with enhanced spy support
+ * - Add SIOCSIWTHRSPY/SIOCGIWTHRSPY and "struct iw_thrspy"
+ * - Add IW_ENCODE_TEMP and iw_range->encoding_login_index
*/

/**************************** CONSTANTS ****************************/
@@ -196,9 +208,11 @@
/* SIOCGIWSTATS is strictly used between user space and the kernel, and
* is never passed to the driver (i.e. the driver will never see it). */

-/* Mobile IP support (statistics per MAC address) */
+/* Spy support (statistics per MAC address - used for Mobile IP support) */
#define SIOCSIWSPY 0x8B10 /* set spy addresses */
#define SIOCGIWSPY 0x8B11 /* get spy info (quality of link) */
+#define SIOCSIWTHRSPY 0x8B12