]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - wl12xx/compat-wireless.git/commitdiff
compat-wireless: fix compilation for 2.6.32
authorPaul Fertser <fercerpav@gmail.com>
Sun, 20 Jun 2010 09:44:57 +0000 (13:44 +0400)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 21 Jun 2010 18:59:48 +0000 (11:59 -0700)
2.6.32 was the latest version using CONFIG_WIRELESS_EXT. Without this patch
compilation produced

net/wireless/wext-compat.c:443: error: ‘struct wireless_dev’ has no member named ‘wext’

since config.mk defined CONFIG_CFG80211_WEXT but autoconf.sh didn't.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
scripts/gen-compat-autoconf.sh

index 88e2740b13791ca8d821ca464f8b26a50f24765d..1e3002e8f5118e125cfa20aa59430b2c27629598 100755 (executable)
@@ -192,7 +192,7 @@ if [ -f $KLIB_BUILD/Makefile ]; then
                define_config_multiple_deps CONFIG_MAC80211_QOS y $ALL_DEPS
                rm -f $MULT_DEP_FILE
                # Kernels >= 2.6.32 can disable WEXT :D
-               if [ $SUBLEVEL -lt 32 ]; then
+               if [ $SUBLEVEL -le 32 ]; then
                        define_config_dep CONFIG_CFG80211_WEXT 1 CONFIG_WIRELESS_EXT
                fi
        fi