Skip to contentSkip to conversation

compat-wireless: fix compilation for 2.6.32

PATCH In review Paul Fertser 2 participants 2 messages Jun 20, 2010 – Jun 21, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 compat-wireless: fix compilation for 2.6.32

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.

---
 scripts/gen-compat-autoconf.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
scripts/gen-compat-autoconf.sh +1 -1
index 88e2740..1e3002e 100755
@@ -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
Signature · 1 line
1.6.4.4
#1 lore raw
Quoted 8 lines · Paul Fertser

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.

Awesome thanks, applied and I propagated this to the linux-2.6.35.y branch too.

Luis