Still no clue how to make the package building work for mac81211 modules in the correct openwrt way. Is it a problem with the install stanza?
What follows is a kludge, but there are are a lot of rtl8192cu related posts that end with a request & nobody responding. Here's at least something that worked once.
There's a patch below that will force compat-wireless to build the module. It won't build a package though, so you have to manually copy the rtlwifi.ko rtl8192c-common.ko and rtl8192cu.ko to /lib/modules on the openwrt. You'll also need to copy the rtl8192c*fw.bin firmware files from the compat-wireless/ linux-firmware-something directory into /lib/firmware/rtlwifi/
Patch is to package/mac80211/Makefile
--- ./Makefile 2012-01-20 14:39:04.000000000 -0800
+++ /home/build/package-mac80211-makefile 2012-01-20 14:09:16.000000000 -0800
@@ -26,7 +26,7 @@
rtl8180 rtl8187 zd1211rw mac80211-hwsim carl9170 b43 b43legacy \
ath9k-common ath9k ath9k-htc ath net-libipw net-ipw2100 net-ipw2200 \
mwl8k net-hermes net-hermes-pci net-hermes-plx net-hermes-pcmcia \
- iwl-legacy iwl3945 iwl4965 iwlagn wl12xx lib80211
+ iwl-legacy iwl3945 iwl4965 iwlagn wl12xx lib80211 rtl8192cu
PKG_CONFIG_DEPENDS:= \
CONFIG_PACKAGE_kmod-mac80211 \
@@ -1191,8 +1191,10 @@
CONFIG_RT2800USB_RT53XX=$(if $(CONFIG_PACKAGE_kmod-rt2800-usb),y) \
CONFIG_RTL8180=$(if $(CONFIG_PACKAGE_kmod-rtl8180),m) \
CONFIG_RTL8187=$(if $(CONFIG_PACKAGE_kmod-rtl8187),m) \
- CONFIG_RTL8192CE= \
- CONFIG_RTLWIFI= \
+ CONFIG_RTL8192CE=$(if $(CONFIG_PACKAGE_kmod-rtl8192ce),m) \
+ CONFIG_RTLWIFI=m \
+ CONFIG_RTL8192C_COMMON=m \
+ CONFIG_RTL8192CU=m \
CONFIG_MAC80211_HWSIM=$(if $(CONFIG_PACKAGE_kmod-mac80211-hwsim),m) \
CONFIG_PCMCIA= \
CONFIG_LIBIPW=$(if $(CONFIG_PACKAGE_kmod-net-libipw),m) \
@@ -1491,6 +1493,30 @@
endif
endef
+define KernelPackage/rtl8192cu
+ $(call KernelPackage/mac80211/Default)
+ TITLE:=Realtek 8192cu driver
+ DEPENDS+= @USB_SUPPORT +kmod-mac80211
+ KCONFIG:= \
+ CONFIG_RTLWIFI=m \
+ CONFIG_RTL8192C_COMMON=m
+ FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/rtlwifi/rtlwifi.ko \
+ $(PKG_BUILD_DIR)/drivers/net/wireless/rtlwifi/rtl8192c/rtl8192c-common.ko \
+ $(PKG_BUILD_DIR)/drivers/net/wireless/rtlwifi/rtl8192cu/rtl8192cu.ko
+ AUTOLOAD:=$(call AutoLoad,50,rtlwifi rtl8192c-common rtl8192cu)
+endef
+
+define KernelPackage/net-rtl8192cu/description
+Kernel support for Realtek RTL8192CU/RTL8188CU USB Wireless Network Adapter
+endef
+
+define KernelPackage/rtl8192cu/install
+ $(INSTALL_DIR) $(1)/lib/firmware
+ $(INSTALL_DATA) $(PKG_LINUX_FIRMWARE_SUBDIR)/rtlwifi/rtl8192cufw.bin $(1)/lib/firmware
+endef
+
+
+
$(eval $(call KernelPackage,ath5k))
$(eval $(call KernelPackage,lib80211))
$(eval $(call KernelPackage,libertas-usb))
@@ -1518,6 +1544,7 @@
$(eval $(call KernelPackage,zd1211rw))
$(eval $(call KernelPackage,mac80211-hwsim))
$(eval $(call KernelPackage,ath9k-common))
+$(eval $(call KernelPackage,rtl8192cu))
$(eval $(call KernelPackage,ath9k))
$(eval $(call KernelPackage,ath9k-htc))
$(eval $(call KernelPackage,ath))