endif #CONFIG_COMPAT_KERNEL_2_6_30
-export CONFIG_MWIFIEX=m
+ifndef CONFIG_COMPAT_KERNEL_2_6_27
+export CONFIG_COMPAT_MWIFIEX=m
+endif #CONFIG_COMPAT_KERNEL_2_6_27
ifndef CONFIG_CORDIC
export CONFIG_COMPAT_CORDIC=y
lock_sock(sk);
err = rfcomm_dev_ioctl(sk, cmd, (void __user *) arg);
release_sock(sk);
+--- a/drivers/net/wireless/Makefile
++++ b/drivers/net/wireless/Makefile
+@@ -38,7 +38,7 @@ obj-$(CONFIG_MAC80211_HWSIM) += mac80211
+
+ obj-$(CONFIG_WL_TI) += ti/
+
+-obj-$(CONFIG_MWIFIEX) += mwifiex/
++obj-$(CONFIG_COMPAT_MWIFIEX) += mwifiex/
+
+ obj-$(CONFIG_BRCMFMAC) += brcm80211/
+ obj-$(CONFIG_BRCMSMAC) += brcm80211/
+--- a/drivers/net/wireless/mwifiex/Makefile
++++ b/drivers/net/wireless/mwifiex/Makefile
+@@ -39,7 +39,7 @@ mwifiex-y += sta_rx.o
+ mwifiex-y += uap_txrx.o
+ mwifiex-y += cfg80211.o
+ mwifiex-$(CONFIG_DEBUG_FS) += debugfs.o
+-obj-$(CONFIG_MWIFIEX) += mwifiex.o
++obj-$(CONFIG_COMPAT_MWIFIEX) += mwifiex.o
+
+ mwifiex_sdio-y += sdio.o
+ obj-$(CONFIG_MWIFIEX_SDIO) += mwifiex_sdio.o