compat-wireless: add support for RTL8192CE
authorHauke Mehrtens <hauke@hauke-m.de>
Fri, 17 Dec 2010 22:42:48 +0000 (14:42 -0800)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Sat, 18 Dec 2010 20:07:44 +0000 (12:07 -0800)
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
config.mk
patches/06-header-changes.patch
patches/20-pcidev.patch
patches/99-change-makefiles.patch
scripts/admin-update.sh

index 3261aa3412bad748ba66d57349d13c017d805b20..964c6460bc9988b441a6542e4bf4bd95fbb13106 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -353,6 +353,9 @@ CONFIG_PCMCIA_SPECTRUM=m
 endif #CONFIG_PCMCIA
 endif #CONFIG_WIRELESS_EXT
 
+CONFIG_RTL8192CE=m
+CONFIG_RTLWIFI=m
+
 endif #CONFIG_PCI
 ## end of PCI
 
index 69b19342a45d4570965f0fffb724bb2d26eb4b1b..0b90d4c95fa141b96027417ae7792f3180605c2d 100644 (file)
@@ -16,6 +16,16 @@ cases.
  
  struct b43_wldev;
  
+--- a/drivers/net/wireless/rtlwifi/base.c
++++ b/drivers/net/wireless/rtlwifi/base.c
+@@ -28,6 +28,7 @@
+  *****************************************************************************/
+ #include <linux/ip.h>
++#include <linux/in.h>
+ #include "wifi.h"
+ #include "rc.h"
+ #include "base.h"
 --- a/drivers/net/wireless/wl1251/boot.c
 +++ b/drivers/net/wireless/wl1251/boot.c
 @@ -19,7 +19,6 @@
index 19feea6fc0ebfacfe31e168c19621ab33eecbe13..d576ce80d86d330b223d25fbbc99eb04254edc4c 100644 (file)
@@ -55,6 +55,17 @@ compat_is_pcie() when needed.
                rt2x00_set_chip_intf(rt2x00dev, RT2X00_CHIP_INTF_PCIE);
        else
                rt2x00_set_chip_intf(rt2x00dev, RT2X00_CHIP_INTF_PCI);
+--- a/drivers/net/wireless/rtlwifi/pci.c
++++ b/drivers/net/wireless/rtlwifi/pci.c
+@@ -1608,7 +1608,7 @@ static bool _rtl_pci_find_adapter(struct
+               pcipriv->ndis_adapter.pcibridge_funcnum =
+                   PCI_FUNC(bridge_pdev->devfn);
+               pcipriv->ndis_adapter.pcibridge_pciehdr_offset =
+-                  bridge_pdev->pcie_cap;
++                  pci_pcie_cap(bridge_pdev);
+               pcipriv->ndis_adapter.pcicfg_addrport =
+                   (pcipriv->ndis_adapter.pcibridge_busnum << 16) |
+                   (pcipriv->ndis_adapter.pcibridge_devnum << 11) |
 --- a/drivers/ssb/scan.c
 +++ b/drivers/ssb/scan.c
 @@ -405,10 +405,10 @@ int ssb_bus_scan(struct ssb_bus *bus,
index 42c7ea3815af35685fb58068968e1e080475a50d..585ff03c9101d36397477f8082196f133028ee54 100644 (file)
@@ -45,7 +45,7 @@ only the wireless stuff.
  
 --- a/drivers/net/wireless/Makefile
 +++ b/drivers/net/wireless/Makefile
-@@ -7,32 +7,16 @@ obj-$(CONFIG_IPW2200) += ipw2x00/
+@@ -7,18 +7,8 @@ obj-$(CONFIG_IPW2200) += ipw2x00/
  
  obj-$(CONFIG_HERMES)          += orinoco/
  
@@ -64,14 +64,14 @@ only the wireless stuff.
  obj-$(CONFIG_B43)             += b43/
  obj-$(CONFIG_B43LEGACY)               += b43legacy/
  obj-$(CONFIG_ZD1211RW)                += zd1211rw/
- obj-$(CONFIG_RTL8180)         += rtl818x/
+@@ -26,13 +16,8 @@ obj-$(CONFIG_RTL8180)               += rtl818x/
  obj-$(CONFIG_RTL8187)         += rtl818x/
--obj-$(CONFIG_RTL8192CE)               += rtlwifi/
--
+ obj-$(CONFIG_RTL8192CE)               += rtlwifi/
 -# 16-bit wireless PCMCIA client drivers
 -obj-$(CONFIG_PCMCIA_RAYCS)    += ray_cs.o
 -obj-$(CONFIG_PCMCIA_WL3501)   += wl3501_cs.o
+-
  obj-$(CONFIG_USB_NET_COMPAT_RNDIS_WLAN)       += rndis_wlan.o
  
 -obj-$(CONFIG_USB_ZD1201)      += zd1201.o
index 6fd1bc0cee9a0a71b2d49c6abd00ed25b02fbaa9..b93761ef70921c2a985bba72463751dd9fd9f7c0 100755 (executable)
@@ -229,6 +229,8 @@ DRIVERS="$DRIVERS drivers/net/wireless/zd1211rw"
 DRIVERS="$DRIVERS drivers/net/wireless/libertas"
 DRIVERS="$DRIVERS drivers/net/wireless/p54"
 DRIVERS="$DRIVERS drivers/net/wireless/rtl818x"
+DRIVERS="$DRIVERS drivers/net/wireless/rtlwifi"
+DRIVERS="$DRIVERS drivers/net/wireless/rtlwifi/rtl8192ce"
 DRIVERS="$DRIVERS drivers/net/wireless/libertas_tf"
 DRIVERS="$DRIVERS drivers/net/wireless/ipw2x00"
 DRIVERS="$DRIVERS drivers/net/wireless/wl12xx"