-define KernelPackage/mac80211
- TITLE:=mac80211 (Devicescape) support
- DEPENDS:=@LINUX_2_6
- KCONFIG:=CONFIG_MAC80211
- FILES:= \
- $(LINUX_DIR)/net/wireless/cfg80211.$(LINUX_KMOD_SUFFIX) \
- $(LINUX_DIR)/net/mac80211/mac80211.$(LINUX_KMOD_SUFFIX) \
- $(LINUX_DIR)/net/mac80211/rc80211_simple.$(LINUX_KMOD_SUFFIX)
- AUTOLOAD:=$(call AutoLoad,20,cfg80211 mac80211 rc80211_simple)
- SUBMENU:=$(WIMENU)
- endef
-$(eval $(call KernelPackage,mac80211))
-
-define KernelPackage/net-bcm43xx
- TITLE:=Broadcom BCM43xx driver
- DESCRIPTION:=\\\
- \\\
- Includes: \\\
- - bcm43xx
- DEPENDS:=kmod-ieee80211-softmac
- KCONFIG:=CONFIG_BCM43XX
- FILES:=$(LINUX_DIR)/drivers/net/wireless/bcm43xx/bcm43xx.$(LINUX_KMOD_SUFFIX)
- AUTOLOAD:=$(call AutoLoad,50,bcm43xx)
- SUBMENU:=$(WIMENU)
-endef
-$(eval $(call KernelPackage,net-bcm43xx))
+define KernelPackage/lib80211/description
+ Kernel modules for 802.11 Networking stack
+ Includes:
+ - lib80211
+ - lib80211_crypt_wep
+ - lib80211_crypt_tkip
+ - lib80211_crytp_ccmp
+endef
+
+$(eval $(call KernelPackage,lib80211))
+
+
+ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.29)),1)
+ IPW_DIR:=ipw2x00/
+endif
+
+define KernelPackage/net-libipw
+ SUBMENU:=$(WIRELESS_MENU)
+ TITLE:=libipw for ipw2100 and ipw2200
+ DEPENDS:=@PCI_SUPPORT +kmod-crypto-arc4 +kmod-crypto-aes +kmod-crypto-michael-mic +kmod-lib80211 @LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32
+ KCONFIG:=CONFIG_LIBIPW
+ FILES:=$(LINUX_DIR)/drivers/net/wireless/$(IPW_DIR)libipw.$(LINUX_KMOD_SUFFIX)
+ AUTOLOAD:=$(call AutoLoad,49,libipw)
+endef
+
+define KernelPackage/net-libipw/description
+ Hardware independent IEEE 802.11 networking stack for ipw2100 and ipw2200.
+endef
+
+$(eval $(call KernelPackage,net-libipw))
+