compat-wireless: ath6kl moved to main area.
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 11 Aug 2011 10:59:06 +0000 (12:59 +0200)
committerLuis R. Rodriguez <mcgrof@qca.qualcomm.com>
Fri, 12 Aug 2011 00:57:35 +0000 (17:57 -0700)
ath6kl is now in the kernel main area and not in staging any more.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Makefile
config.mk
patches/01-netdev.patch
patches/34-backport-bin_attribute.patch [deleted file]
scripts/admin-update.sh

index 9c9529260f9ac0e8827b53bfe6b8f20f9093e741..463a56c616403035f2c463d7c4e8524f4581a605 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -33,7 +33,6 @@ obj-$(CONFIG_COMPAT_NETWORK_MODULES) += drivers/net/
 obj-$(CONFIG_COMPAT_VAR_MODULES) +=  drivers/ssb/ drivers/bcma/ drivers/misc/eeprom/
 
 ifeq ($(CONFIG_STAGING_EXCLUDE_BUILD),)
-obj-$(CONFIG_COMPAT_STAGING) += drivers/staging/ath6kl/
 obj-$(CONFIG_COMPAT_STAGING) += drivers/staging/brcm80211/
 endif
 
index 786891d185d37fcc8dab7f516229671f00e13e34..27d4daf9965f11a4840d4e4459138cde6810ca67 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -570,24 +570,19 @@ CONFIG_IWM=m
 CONFIG_BT_HCIBTSDIO=m
 CONFIG_BT_MRVL_SDIO=m
 
+ifndef CONFIG_COMPAT_KERNEL_2_6_27
+CONFIG_ATH6KL=m
+# CONFIG_ATH6KL_DEBUG=y
+endif #CONFIG_COMPAT_KERNEL_2_6_27
+
 ifdef CONFIG_COMPAT_STAGING
 ifdef CONFIG_WIRELESS_EXT
-# CONFIG_ATH6KL_DISABLE_TARGET_DBGLOGS is not set
-# CONFIG_ATH6KL_ENABLE_COEXISTENCE is not set
-# CONFIG_ATH6KL_ENABLE_HOST_DEBUG is not set
-CONFIG_ATH6KL_ENABLE_TARGET_DEBUG_PRINTS=y
-# CONFIG_ATH6KL_HCI_BRIDGE is not set
-# CONFIG_ATH6KL_HTC_RAW_INTERFACE is not set
-# CONFIG_ATH6KL_SKIP_ABI_VERSION_CHECK is not set
-CONFIG_ATH6KL_VIRTUAL_SCATTER_GATHER=y
-CONFIG_ATH6K_LEGACY=m
 
 CONFIG_BRCMFMAC=m
 
 endif #CONFIG_WIRELESS_EXT
 endif #CONFIG_COMPAT_STAGING
 
-
 endif #CONFIG_MMC
 
 CONFIG_RTLWIFI=m
index f8395c88a58577b129dcc9f95148757d41bbebc8..d50058423f593cb29763c4e83b10a5820fcbe4ad 100644 (file)
@@ -32,6 +32,17 @@ without creating a headache on maintenance of the pathes.
        net->watchdog_timeo = TX_TIMEOUT_JIFFIES;
        net->ethtool_ops = &usbnet_ethtool_ops;
  
+--- a/drivers/net/wireless/ath/ath6kl/main.c
++++ b/drivers/net/wireless/ath/ath6kl/main.c
+@@ -1325,7 +1325,7 @@ static struct net_device_ops ath6kl_netd
+ void init_netdev(struct net_device *dev)
+ {
+-      dev->netdev_ops = &ath6kl_netdev_ops;
++      netdev_attach_ops(dev, &ath6kl_netdev_ops);
+       dev->watchdog_timeo = ATH6KL_TX_TIMEOUT;
+       dev->needed_headroom = ETH_HLEN;
 --- a/drivers/net/wireless/rndis_wlan.c
 +++ b/drivers/net/wireless/rndis_wlan.c
 @@ -3439,7 +3439,7 @@ static int rndis_wlan_bind(struct usbnet
@@ -217,7 +228,7 @@ without creating a headache on maintenance of the pathes.
        wdev->netdev = ndev;
 --- a/drivers/net/wireless/libertas/main.c
 +++ b/drivers/net/wireless/libertas/main.c
-@@ -836,7 +836,7 @@ struct lbs_private *lbs_add_card(void *c
+@@ -916,7 +916,7 @@ struct lbs_private *lbs_add_card(void *c
        wdev->netdev = dev;
        priv->dev = dev;
  
@@ -228,7 +239,7 @@ without creating a headache on maintenance of the pathes.
        dev->flags |= IFF_BROADCAST | IFF_MULTICAST;
 --- a/drivers/net/wireless/libertas/mesh.c
 +++ b/drivers/net/wireless/libertas/mesh.c
-@@ -1011,7 +1011,7 @@ static int lbs_add_mesh(struct lbs_priva
+@@ -1018,7 +1018,7 @@ static int lbs_add_mesh(struct lbs_priva
        mesh_dev->ieee80211_ptr = mesh_wdev;
        priv->mesh_dev = mesh_dev;
  
@@ -256,7 +267,7 @@ without creating a headache on maintenance of the pathes.
  #define LBS_DEB_LEAVE 0x00000002
 --- a/drivers/net/wireless/mac80211_hwsim.c
 +++ b/drivers/net/wireless/mac80211_hwsim.c
-@@ -1230,7 +1230,7 @@ static const struct net_device_ops hwsim
+@@ -1236,7 +1236,7 @@ static const struct net_device_ops hwsim
  
  static void hwsim_mon_setup(struct net_device *dev)
  {
diff --git a/patches/34-backport-bin_attribute.patch b/patches/34-backport-bin_attribute.patch
deleted file mode 100644 (file)
index 1ca0b4d..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
---- a/drivers/staging/ath6kl/os/linux/ar6000_drv.c
-+++ b/drivers/staging/ath6kl/os/linux/ar6000_drv.c
-@@ -317,12 +317,20 @@ static void ar6000_refill_amsdu_rxbufs(s
- static void ar6000_cleanup_amsdu_rxbufs(struct ar6_softc *ar);
- static ssize_t
-+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,34))
- ar6000_sysfs_bmi_read(struct file *fp, struct kobject *kobj,
-+#else
-+ar6000_sysfs_bmi_read(struct kobject *kobj,
-+#endif
-                       struct bin_attribute *bin_attr,
-                       char *buf, loff_t pos, size_t count);
- static ssize_t
-+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,34))
- ar6000_sysfs_bmi_write(struct file *fp, struct kobject *kobj,
-+#else
-+ar6000_sysfs_bmi_write(struct kobject *kobj,
-+#endif
-                        struct bin_attribute *bin_attr,
-                        char *buf, loff_t pos, size_t count);
-@@ -755,7 +763,11 @@ static struct bin_attribute bmi_attr = {
- };
- static ssize_t
-+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,34))
- ar6000_sysfs_bmi_read(struct file *fp, struct kobject *kobj,
-+#else
-+ar6000_sysfs_bmi_read(struct kobject *kobj,
-+#endif
-                       struct bin_attribute *bin_attr,
-                       char *buf, loff_t pos, size_t count)
- {
-@@ -782,7 +794,11 @@ ar6000_sysfs_bmi_read(struct file *fp, s
- }
- static ssize_t
-+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,34))
- ar6000_sysfs_bmi_write(struct file *fp, struct kobject *kobj,
-+#else
-+ar6000_sysfs_bmi_write(struct kobject *kobj,
-+#endif
-                        struct bin_attribute *bin_attr,
-                        char *buf, loff_t pos, size_t count)
- {
index 3040275f2a72d26e9919e7d2938605b4633c78ba..87b7e5f06f150212cbb3212dd23e44c172b4af91 100755 (executable)
@@ -218,6 +218,7 @@ fi
 DRIVERS="drivers/net/wireless/ath"
 DRIVERS="$DRIVERS drivers/net/wireless/ath/carl9170"
 DRIVERS="$DRIVERS drivers/net/wireless/ath/ath5k"
+DRIVERS="$DRIVERS drivers/net/wireless/ath/ath6kl"
 DRIVERS="$DRIVERS drivers/net/wireless/ath/ath9k"
 DRIVERS="$DRIVERS drivers/ssb"
 DRIVERS="$DRIVERS drivers/bcma"
@@ -247,8 +248,7 @@ DRIVERS="$DRIVERS drivers/net/wireless/orinoco"
 DRIVERS="$DRIVERS drivers/net/wireless/mwifiex"
 
 # Staging drivers
-STAGING_DRIVERS="drivers/staging/ath6kl"
-STAGING_DRIVERS="$STAGING_DRIVERS drivers/staging/brcm80211"
+STAGING_DRIVERS="drivers/staging/brcm80211"
 
 # Ethernet drivers
 DRIVERS="$DRIVERS drivers/net/atl1c"