add new led trigger for network traffic, fixes #2776
[openwrt.git] / package / madwifi / patches / 325-channel_spam.patch
1 Index: madwifi-trunk-r3314/ath/if_ath.c
2 ===================================================================
3 --- madwifi-trunk-r3314.orig/ath/if_ath.c 2008-02-20 21:58:53.697219623 +0100
4 +++ madwifi-trunk-r3314/ath/if_ath.c 2008-02-20 21:58:58.545495909 +0100
5 @@ -9776,7 +9776,9 @@
6 /*
7 * Convert HAL channels to ieee80211 ones.
8 */
9 +#ifdef AR_DEBUG
10 IPRINTF(sc, "HAL returned %d channels.\n", nchan);
11 +#endif
12 for (i = 0; i < nchan; i++) {
13 HAL_CHANNEL *c = &chans[i];
14 struct ieee80211_channel *ichan = &ic->ic_channels[i];
15 @@ -9803,6 +9805,7 @@
16 ic->ic_chan_non_occupy[i].tv_sec = 0;
17 ic->ic_chan_non_occupy[i].tv_usec = 0;
18
19 +#ifdef AR_DEBUG
20 IPRINTF(sc, "Channel %3d (%4d MHz) Max Tx Power %d dBm%s "
21 "[%d hw %d reg] Flags%s%s%s%s%s%s%s%s%s%s%s%s%"
22 "s%s%s%s%s%s%s%s%s%s%s%s\n",
23 @@ -9891,6 +9894,7 @@
24 (c->privFlags & 0x0080 ?
25 " PF & (1 << 7)" : "")
26 );
27 +#endif
28 }
29 ic->ic_nchans = nchan;
30 kfree(chans);
This page took 0.046402 seconds and 5 git commands to generate.