mac80211: update to latest version, fix tx gain patch
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 846-brcmsmac-remove-some-unnessessacry-casts-and-void-po.patch
1 --- a/drivers/net/wireless/brcm80211/brcmsmac/main.c
2 +++ b/drivers/net/wireless/brcm80211/brcmsmac/main.c
3 @@ -4220,9 +4220,8 @@ static void brcms_c_radio_timer(void *ar
4 }
5
6 /* common low-level watchdog code */
7 -static void brcms_b_watchdog(void *arg)
8 +static void brcms_b_watchdog(struct brcms_c_info *wlc)
9 {
10 - struct brcms_c_info *wlc = (struct brcms_c_info *) arg;
11 struct brcms_hardware *wlc_hw = wlc->hw;
12
13 BCMMSG(wlc->wiphy, "wl%d\n", wlc_hw->unit);
14 @@ -4243,10 +4242,8 @@ static void brcms_b_watchdog(void *arg)
15 }
16
17 /* common watchdog code */
18 -static void brcms_c_watchdog(void *arg)
19 +static void brcms_c_watchdog(struct brcms_c_info *wlc)
20 {
21 - struct brcms_c_info *wlc = (struct brcms_c_info *) arg;
22 -
23 BCMMSG(wlc->wiphy, "wl%d\n", wlc->pub->unit);
24
25 if (!wlc->pub->up)
26 @@ -4286,7 +4283,9 @@ static void brcms_c_watchdog(void *arg)
27
28 static void brcms_c_watchdog_by_timer(void *arg)
29 {
30 - brcms_c_watchdog(arg);
31 + struct brcms_c_info *wlc = (struct brcms_c_info *) arg;
32 +
33 + brcms_c_watchdog(wlc);
34 }
35
36 static bool brcms_c_timers_init(struct brcms_c_info *wlc, int unit)