huge madwifi update (work in progress, disabled by default, compiles but breaks at...
[openwrt.git] / package / madwifi / patches-r3776 / 201-no_debug_extra.patch
1 Index: madwifi-trunk-r3776/ath/if_ath.c
2 ===================================================================
3 --- madwifi-trunk-r3776.orig/ath/if_ath.c 2008-07-17 01:15:21.000000000 +0200
4 +++ madwifi-trunk-r3776/ath/if_ath.c 2008-07-17 01:20:11.000000000 +0200
5 @@ -423,8 +423,8 @@
6 "defaults to '" DEF_RATE_CTL "'");
7 MODULE_PARM_DESC(intmit, "Enable interference mitigation by default. Default is 0.");
8
9 -static int ath_debug = 0;
10 #ifdef AR_DEBUG
11 +static int ath_debug = 0;
12 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,52))
13 MODULE_PARM(ath_debug, "i");
14 #else
15 @@ -435,8 +435,8 @@
16 static void ath_printtxbuf(const struct ath_buf *, int);
17 #endif /* defined(AR_DEBUG) */
18
19 -static int ieee80211_debug = 0;
20 #ifdef AR_DEBUG
21 +static int ieee80211_debug = 0;
22 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,52))
23 MODULE_PARM(ieee80211_debug, "i");
24 #else
25 @@ -853,8 +853,10 @@
26 ic->ic_updateslot = ath_updateslot;
27 atomic_set(&ic->ic_node_counter, 0);
28 ic->ic_debug = 0;
29 +#ifdef AR_DEBUG
30 sc->sc_debug = (ath_debug & ~ATH_DEBUG_GLOBAL);
31 sc->sc_default_ieee80211_debug = ieee80211_debug;
32 +#endif
33
34 ic->ic_wme.wme_update = ath_wme_update;
35 ic->ic_uapsd_flush = ath_uapsd_flush;
36 Index: madwifi-trunk-r3776/net80211/ieee80211_scan_ap.c
37 ===================================================================
38 --- madwifi-trunk-r3776.orig/net80211/ieee80211_scan_ap.c 2008-07-17 00:21:29.000000000 +0200
39 +++ madwifi-trunk-r3776/net80211/ieee80211_scan_ap.c 2008-07-17 01:25:32.000000000 +0200
40 @@ -790,15 +790,18 @@
41 struct ap_state *as = ss->ss_priv;
42 struct channel chans[ss_last]; /* actually ss_last-1 is required */
43 struct channel *c = NULL;
44 - struct pc_params params = { vap, ss, flags };
45 int benefit = 0;
46 int sta_assoc = 0;
47
48 +#ifdef IEEE80211_DEBUG
49 + struct pc_params params = { vap, ss, flags };
50 +
51 for (i = 0; i < ss_last; i++) {
52 chans[i].chan = ss->ss_chans[i];
53 chans[i].orig = i;
54 chans[i].params = &params;
55 }
56 +#endif
57
58 sort(chans, ss_last, sizeof(*chans), pc_cmp, pc_swap);
59
This page took 0.040581 seconds and 5 git commands to generate.