aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-05-20 21:33:54 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-05-20 21:33:54 +0000
commitba22d1e33348ebea29dfa30f47098c63ae75b79f (patch)
tree7c7980224d4c14e09f1ca70616ca573db9dcb2b5 /package/madwifi
parent40872c604e479d25910e3e6dbfc84a51e3cde79c (diff)
downloadupstream-ba22d1e33348ebea29dfa30f47098c63ae75b79f.tar.gz
upstream-ba22d1e33348ebea29dfa30f47098c63ae75b79f.tar.bz2
upstream-ba22d1e33348ebea29dfa30f47098c63ae75b79f.zip
Fix device name allocation This patch fixes a bug in madwifi where names for wifi devices are not allocated during device setup. It fixes some instability on devices which share IRQ. Signed-off-by: Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr>
SVN-Revision: 15950
Diffstat (limited to 'package/madwifi')
-rw-r--r--package/madwifi/patches/434-name-alloc-fix.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/madwifi/patches/434-name-alloc-fix.patch b/package/madwifi/patches/434-name-alloc-fix.patch
new file mode 100644
index 0000000000..b3bb30067a
--- /dev/null
+++ b/package/madwifi/patches/434-name-alloc-fix.patch
@@ -0,0 +1,30 @@
+diff -ur madwifi-trunk-r3314/ath/if_ath_ahb.c madwifi-trunk-r3314.patched/ath/if_ath_ahb.c
+--- madwifi-trunk-r3314/ath/if_ath_ahb.c 2009-05-17 22:16:05.000000000 +0300
++++ madwifi-trunk-r3314.patched/ath/if_ath_ahb.c 2009-05-17 22:15:47.000000000 +0300
+@@ -376,6 +376,11 @@
+ SET_MODULE_OWNER(dev);
+ sclist[wlanNum] = sc;
+
++ if (dev_alloc_name(dev, dev->name) < 0) {
++ printk(KERN_ERR "%s: cannot allocate name\n", dev_info);
++ goto bad3;
++ }
++
+ switch (wlanNum) {
+ case AR531X_WLAN0_NUM:
+ if (((devid & AR5315_REV_MAJ_M) == AR5315_REV_MAJ) ||
+diff -ur madwifi-trunk-r3314/ath/if_ath_pci.c madwifi-trunk-r3314.patched/ath/if_ath_pci.c
+--- madwifi-trunk-r3314/ath/if_ath_pci.c 2009-05-17 22:16:05.000000000 +0300
++++ madwifi-trunk-r3314.patched/ath/if_ath_pci.c 2009-05-17 22:15:47.000000000 +0300
+@@ -209,6 +209,11 @@
+ */
+ sc->aps_sc.sc_invalid = 1;
+
++ if (dev_alloc_name(dev, dev->name) < 0) {
++ printk(KERN_ERR "%s: cannot allocate name\n", dev_info);
++ goto bad3;
++ }
++
+ dev->irq = pdev->irq;
+
+ SET_MODULE_OWNER(dev);