update madwifi to latest trunk, include a few more fixes/improvements
[openwrt.git] / package / madwifi / patches / 325-channel_spam.patch
1 Index: madwifi-trunk-r3280/ath/if_ath.c
2 ===================================================================
3 --- madwifi-trunk-r3280.orig/ath/if_ath.c       2008-01-28 19:00:13.666420256 +0100
4 +++ madwifi-trunk-r3280/ath/if_ath.c    2008-01-28 19:01:05.093350913 +0100
5 @@ -9701,7 +9701,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 @@ -9728,6 +9730,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 @@ -9816,6 +9819,7 @@
24                                 (c->privFlags & 0x0080 ? 
25                                  " PF & (1 << 7)" : "")
26                                 );
27 +#endif
28         }
29         ic->ic_nchans = nchan;
30         kfree(chans);