[ar71xx] fix dir-825-b1 default network config after r21905
[openwrt.git] / package / madwifi / patches / 325-channel_spam.patch
1 --- a/ath/if_ath.c
2 +++ b/ath/if_ath.c
3 @@ -9792,7 +9792,9 @@ ath_getchannels(struct net_device *dev,
4 /*
5 * Convert HAL channels to ieee80211 ones.
6 */
7 +#ifdef AR_DEBUG
8 IPRINTF(sc, "HAL returned %d channels.\n", nchan);
9 +#endif
10 for (i = 0; i < nchan; i++) {
11 HAL_CHANNEL *c = &chans[i];
12 struct ieee80211_channel *ichan = &ic->ic_channels[i];
13 @@ -9819,6 +9821,7 @@ ath_getchannels(struct net_device *dev,
14 ic->ic_chan_non_occupy[i].tv_sec = 0;
15 ic->ic_chan_non_occupy[i].tv_usec = 0;
16
17 +#ifdef AR_DEBUG
18 IPRINTF(sc, "Channel %3d (%4d MHz) Max Tx Power %d dBm%s "
19 "[%d hw %d reg] Flags%s%s%s%s%s%s%s%s%s%s%s%s%"
20 "s%s%s%s%s%s%s%s%s%s%s%s\n",
21 @@ -9907,6 +9910,7 @@ ath_getchannels(struct net_device *dev,
22 (c->privFlags & 0x0080 ?
23 " PF & (1 << 7)" : "")
24 );
25 +#endif
26 }
27 ic->ic_nchans = nchan;
28 kfree(chans);
This page took 0.048621 seconds and 5 git commands to generate.