Skip to contentSkip to conversation

compat-2.6: fix compiling configurations for iwlwifi

PATCH In review Yingying Zhao 3 participants 8 messages Jul 17, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 compat-2.6: fix compiling configurations for iwlwifi

Latest iwlwifi in wireless-testing removed CONFIG_IWL4965_HT and introduced CONFIG_IWL5000 for Intel Wireless WiFi 5000AGN support which is built in IWL4965 module. This patch also enables IWLWIFI_LEDS, IWLWIFI_RFKILL,IWL3945_LEDS IWLWIFI_DEBUG for iwlwifi build by default.

---
 config.mk |   20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)
config.mk +19 -1
index b1fb68e..cafadfa 100644
@@ -15,6 +15,7 @@ endif
 
 # Wireless subsystem stuff
 CONFIG_MAC80211=m
+CONFIG_MAC80211_LEDS=y
 
 # Enable QOS for 2.6.22, we'll do some hacks here to enable it.
 # You will need this for HT support (802.11n) and WME (802.11e).
@@ -77,7 +78,24 @@ CONFIG_IWLWIFI=m
 CONFIG_IWLCORE=m
 CONFIG_IWL3945=m
 CONFIG_IWL4965=m
-CONFIG_IWL4965_HT=y
+CONFIG_IWLWIFI_LEDS=y
+CONFIG_IWLWIFI_RFKILL=y
+CONFIG_IWL3945_LEDS=y
+CONFIG_IWL5000=y
+
+ifeq ($(CONFIG_IWL5000),y)
+ifeq ($(CONFIG_IWL4965),)
+$(warning "WARNING: CONFIG_IWL5000 requires CONFIG_IWL4965 is configured as m.")
+CONFIG_IWL4965=m
+endif # CONFIG_IWL4965 is empty
+endif # CONFIG_IWL5000 is y
+
+CONFIG_IWLWIFI_DEBUG=y
+
+ifeq ($(CONFIG_MAC80211_DEBUGFS),y)
+CONFIG_IWLWIFI_DEBUGFS=y
+endif
+
 CONFIG_B43=m
 # B43 uses PCMCIA only for Compact Flash. The Cardbus cards uses PCI
 # Example, bcm4318:
#1 lore raw
Quoted 38 lines · Yingying Zhao

Latest iwlwifi in wireless-testing removed CONFIG_IWL4965_HT and introduced CONFIG_IWL5000 for Intel Wireless WiFi 5000AGN support which is built in IWL4965 module. This patch also enables IWLWIFI_LEDS, IWLWIFI_RFKILL,IWL3945_LEDS IWLWIFI_DEBUG for iwlwifi build by default.

---
 config.mk |   20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)
config.mk +12 -1
index b1fb68e..cafadfa 100644
@@ -15,6 +15,7 @@ endif
 
 # Wireless subsystem stuff
 CONFIG_MAC80211=m
+CONFIG_MAC80211_LEDS=y
 
 # Enable QOS for 2.6.22, we'll do some hacks here to enable it.
 # You will need this for HT support (802.11n) and WME (802.11e).
@@ -77,7 +78,24 @@ CONFIG_IWLWIFI=m
 CONFIG_IWLCORE=m
 CONFIG_IWL3945=m
 CONFIG_IWL4965=m
-CONFIG_IWL4965_HT=y
+CONFIG_IWLWIFI_LEDS=y
+CONFIG_IWLWIFI_RFKILL=y
+CONFIG_IWL3945_LEDS=y
+CONFIG_IWL5000=y
+
+ifeq ($(CONFIG_IWL5000),y)
+ifeq ($(CONFIG_IWL4965),)
+$(warning "WARNING: CONFIG_IWL5000 requires CONFIG_IWL4965 is configured as m.")
+CONFIG_IWL4965=m
+endif # CONFIG_IWL4965 is empty
+endif # CONFIG_IWL5000 is y

config.mk CONFIG_IWLWIFI=m · line 101

Quoted 10 lines
config.mk +7 -0
+
+CONFIG_IWLWIFI_DEBUG=y
+
+ifeq ($(CONFIG_MAC80211_DEBUGFS),y)
+CONFIG_IWLWIFI_DEBUGFS=y
+endif
+
 CONFIG_B43=m
 # B43 uses PCMCIA only for Compact Flash. The Cardbus cards uses PCI
 # Example, bcm4318:

I'm changing iwlwifi Kconfig so please hold this patch.

Quoted 4 lines

To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 44 lines · Tomas Winkler
Quoted 42 lines · Yingying Zhao

Latest iwlwifi in wireless-testing removed CONFIG_IWL4965_HT and introduced CONFIG_IWL5000 for Intel Wireless WiFi 5000AGN support which is built in IWL4965 module. This patch also enables IWLWIFI_LEDS, IWLWIFI_RFKILL,IWL3945_LEDS IWLWIFI_DEBUG for iwlwifi build by default.

---
 config.mk |   20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)
config.mk +16 -1
index b1fb68e..cafadfa 100644
@@ -15,6 +15,7 @@ endif
 
 # Wireless subsystem stuff
 CONFIG_MAC80211=m
+CONFIG_MAC80211_LEDS=y
 
 # Enable QOS for 2.6.22, we'll do some hacks here to enable it.
 # You will need this for HT support (802.11n) and WME (802.11e).
@@ -77,7 +78,24 @@ CONFIG_IWLWIFI=m
 CONFIG_IWLCORE=m
 CONFIG_IWL3945=m
 CONFIG_IWL4965=m
-CONFIG_IWL4965_HT=y
+CONFIG_IWLWIFI_LEDS=y
+CONFIG_IWLWIFI_RFKILL=y
+CONFIG_IWL3945_LEDS=y
+CONFIG_IWL5000=y
+
+ifeq ($(CONFIG_IWL5000),y)
+ifeq ($(CONFIG_IWL4965),)
+$(warning "WARNING: CONFIG_IWL5000 requires CONFIG_IWL4965 is configured as m.")
+CONFIG_IWL4965=m
+endif # CONFIG_IWL4965 is empty
+endif # CONFIG_IWL5000 is y
+
+CONFIG_IWLWIFI_DEBUG=y
+
+ifeq ($(CONFIG_MAC80211_DEBUGFS),y)
Quoted 8 lines

config.mk CONFIG_IWLWIFI=m · line 101

Quoted 6 lines
config.mk +3 -0
+CONFIG_IWLWIFI_DEBUGFS=y
+endif
+
 CONFIG_B43=m
 # B43 uses PCMCIA only for Compact Flash. The Cardbus cards uses PCI
 # Example, bcm4318:

I'm changing iwlwifi Kconfig so please hold this patch.

Also, was this tested with 2.6.22?

Luis

#3 lore raw
Quoted 54 lines · Luis R. Rodriguez
Quoted 44 lines · Tomas Winkler
Quoted 42 lines · Yingying Zhao

Latest iwlwifi in wireless-testing removed CONFIG_IWL4965_HT and introduced CONFIG_IWL5000 for Intel Wireless WiFi 5000AGN support which is built in IWL4965 module. This patch also enables IWLWIFI_LEDS, IWLWIFI_RFKILL,IWL3945_LEDS IWLWIFI_DEBUG for iwlwifi build by default.

---
 config.mk |   20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)
config.mk +16 -1
index b1fb68e..cafadfa 100644
@@ -15,6 +15,7 @@ endif
 
 # Wireless subsystem stuff
 CONFIG_MAC80211=m
+CONFIG_MAC80211_LEDS=y
 
 # Enable QOS for 2.6.22, we'll do some hacks here to enable it.
 # You will need this for HT support (802.11n) and WME (802.11e).
@@ -77,7 +78,24 @@ CONFIG_IWLWIFI=m
 CONFIG_IWLCORE=m
 CONFIG_IWL3945=m
 CONFIG_IWL4965=m
-CONFIG_IWL4965_HT=y
+CONFIG_IWLWIFI_LEDS=y
+CONFIG_IWLWIFI_RFKILL=y
+CONFIG_IWL3945_LEDS=y
+CONFIG_IWL5000=y
+
+ifeq ($(CONFIG_IWL5000),y)
+ifeq ($(CONFIG_IWL4965),)
+$(warning "WARNING: CONFIG_IWL5000 requires CONFIG_IWL4965 is configured as m.")
+CONFIG_IWL4965=m
+endif # CONFIG_IWL4965 is empty
+endif # CONFIG_IWL5000 is y
+
+CONFIG_IWLWIFI_DEBUG=y
+
+ifeq ($(CONFIG_MAC80211_DEBUGFS),y)
Quoted 8 lines

config.mk CONFIG_IWLWIFI=m · line 101

Quoted 6 lines
config.mk +3 -0
+CONFIG_IWLWIFI_DEBUGFS=y
+endif
+
 CONFIG_B43=m
 # B43 uses PCMCIA only for Compact Flash. The Cardbus cards uses PCI
 # Example, bcm4318:

I'm changing iwlwifi Kconfig so please hold this patch.

Quoted 3 lines

Also, was this tested with 2.6.22?

Luis

No. I just tested on 2.6.24.
I'll wait for iwlwifi Kconfig is finalized by Tomas and retest this on 2.6.22.

Yingying

#4 lore raw
Quoted 6 lines · Yingying Zhao
Quoted 3 lines

Also, was this tested with 2.6.22?

Luis

No. I just tested on 2.6.24.
I'll wait for iwlwifi Kconfig is finalized by Tomas and retest this on 2.6.22.

OK cool -- just a heads up then, I hadn't enabled LEDs or RFKILL options for drivers as the framework needs backporting. Once backported I expect it will compile well for older kernels.

Luis

#5 lore raw
Quoted 5 lines · Luis R. Rodriguez
Quoted 2 lines · Yingying Zhao
Quoted 2 lines

Also, was this tested with 2.6.22?

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

Luis

No. I just tested on 2.6.24.
I'll wait for iwlwifi Kconfig is finalized by Tomas and retest this on 2.6.22.

OK cool -- just a heads up then, I hadn't enabled LEDs or RFKILL options for drivers as the framework needs backporting. Once backported I expect it will compile well for older kernels.

compat-wireless wasn't actually compiling for 2.6.22 anymore. I just fixed that. It loads mac80211. Either I did a mistake or we get an oops now when loading a driver on 2.6.22.

Luis

#6 lore raw
Quoted 12 lines · Luis R. Rodriguez
Quoted 10 lines · Luis R. Rodriguez
Quoted 6 lines · Yingying Zhao
Quoted 3 lines

Also, was this tested with 2.6.22?

Luis

No. I just tested on 2.6.24.
I'll wait for iwlwifi Kconfig is finalized by Tomas and retest this on 2.6.22.

Quoted 7 lines
Quoted 3 lines

OK cool -- just a heads up then, I hadn't enabled LEDs or RFKILL options for drivers as the framework needs backporting. Once backported I expect it will compile well for older kernels.

compat-wireless wasn't actually compiling for 2.6.22 anymore. I just fixed that. It loads mac80211. Either I did a mistake or we get an oops now when loading a driver on 2.6.22.

Yeah ok I can confirm there is a bug there on 2.6.22. We hit:

BUG_ON(!local || local->mdev == dev);

on ieee80211_i.h in IEEE80211_DEV_TO_SUB_IF()

Don't have time to debug this right now though.

Luis

#7 lore raw
Quoted 7 lines · Luis R. Rodriguez

Yeah ok I can confirm there is a bug there on 2.6.22. We hit:

BUG_ON(!local || local->mdev == dev);

on ieee80211_i.h in IEEE80211_DEV_TO_SUB_IF()

Don't have time to debug this right now though.

To that extent I'm disabling compilation for 2.6.22 until this is fixed, don't want users running into it.

Luis