aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/846-brcmsmac-remove-some-unnessessacry-casts-and-void-po.patch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2012-06-01 21:17:04 +0000
committerHauke Mehrtens <hauke@openwrt.org>2012-06-01 21:17:04 +0000
commit06abd0b735f3d84124b4a724019a92b2e8d9b1f0 (patch)
treefcdf28ad41c8ced448eed59014aa1fff616587c1 /package/mac80211/patches/846-brcmsmac-remove-some-unnessessacry-casts-and-void-po.patch
parente458213eab954e93885ec317e840d1efad981173 (diff)
downloadmaster-187ad058-06abd0b735f3d84124b4a724019a92b2e8d9b1f0.tar.gz
master-187ad058-06abd0b735f3d84124b4a724019a92b2e8d9b1f0.tar.bz2
master-187ad058-06abd0b735f3d84124b4a724019a92b2e8d9b1f0.zip
mac80211: brcmsmac: add some patches starting to add support for some more chips
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32020 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/846-brcmsmac-remove-some-unnessessacry-casts-and-void-po.patch')
-rw-r--r--package/mac80211/patches/846-brcmsmac-remove-some-unnessessacry-casts-and-void-po.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/package/mac80211/patches/846-brcmsmac-remove-some-unnessessacry-casts-and-void-po.patch b/package/mac80211/patches/846-brcmsmac-remove-some-unnessessacry-casts-and-void-po.patch
new file mode 100644
index 0000000000..24c3e2356f
--- /dev/null
+++ b/package/mac80211/patches/846-brcmsmac-remove-some-unnessessacry-casts-and-void-po.patch
@@ -0,0 +1,36 @@
+--- a/drivers/net/wireless/brcm80211/brcmsmac/main.c
++++ b/drivers/net/wireless/brcm80211/brcmsmac/main.c
+@@ -4233,9 +4233,8 @@ static void brcms_c_radio_timer(void *ar
+ }
+
+ /* common low-level watchdog code */
+-static void brcms_b_watchdog(void *arg)
++static void brcms_b_watchdog(struct brcms_c_info *wlc)
+ {
+- struct brcms_c_info *wlc = (struct brcms_c_info *) arg;
+ struct brcms_hardware *wlc_hw = wlc->hw;
+
+ BCMMSG(wlc->wiphy, "wl%d\n", wlc_hw->unit);
+@@ -4256,10 +4255,8 @@ static void brcms_b_watchdog(void *arg)
+ }
+
+ /* common watchdog code */
+-static void brcms_c_watchdog(void *arg)
++static void brcms_c_watchdog(struct brcms_c_info *wlc)
+ {
+- struct brcms_c_info *wlc = (struct brcms_c_info *) arg;
+-
+ BCMMSG(wlc->wiphy, "wl%d\n", wlc->pub->unit);
+
+ if (!wlc->pub->up)
+@@ -4299,7 +4296,9 @@ static void brcms_c_watchdog(void *arg)
+
+ static void brcms_c_watchdog_by_timer(void *arg)
+ {
+- brcms_c_watchdog(arg);
++ struct brcms_c_info *wlc = (struct brcms_c_info *) arg;
++
++ brcms_c_watchdog(wlc);
+ }
+
+ static bool brcms_c_timers_init(struct brcms_c_info *wlc, int unit)