3 @@ -453,8 +453,8 @@ MODULE_PARM_DESC(autocreate, "Create ath
4 MODULE_PARM_DESC(ratectl, "Rate control algorithm [amrr|minstrel|onoe|sample], "
5 "defaults to '" DEF_RATE_CTL "'");
7 -static int ath_debug = 0;
9 +static int ath_debug = 0;
10 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,52))
11 MODULE_PARM(ath_debug, "i");
13 @@ -465,8 +465,8 @@ static void ath_printrxbuf(const struct
14 static void ath_printtxbuf(const struct ath_buf *, int);
15 #endif /* defined(AR_DEBUG) */
17 -static int ieee80211_debug = 0;
19 +static int ieee80211_debug = 0;
20 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,52))
21 MODULE_PARM(ieee80211_debug, "i");
23 @@ -1565,7 +1565,9 @@ ath_vap_delete(struct ieee80211vap *vap)
25 ath_suspend(struct net_device *dev)
28 struct ath_softc *sc = dev->priv;
31 DPRINTF(sc, ATH_DEBUG_ANY, "flags=%x\n", dev->flags);
33 @@ -1574,7 +1576,9 @@ ath_suspend(struct net_device *dev)
35 ath_resume(struct net_device *dev)
38 struct ath_softc *sc = dev->priv;
41 DPRINTF(sc, ATH_DEBUG_ANY, "flags=%x\n", dev->flags);
43 @@ -4019,7 +4023,9 @@ static void
44 ath_key_update_begin(struct ieee80211vap *vap)
46 struct net_device *dev = vap->iv_ic->ic_dev;
48 struct ath_softc *sc = dev->priv;
51 DPRINTF(sc, ATH_DEBUG_KEYCACHE, "Begin\n");
53 @@ -4040,7 +4046,9 @@ static void
54 ath_key_update_end(struct ieee80211vap *vap)
56 struct net_device *dev = vap->iv_ic->ic_dev;
58 struct ath_softc *sc = dev->priv;
61 DPRINTF(sc, ATH_DEBUG_KEYCACHE, "End\n");
62 netif_wake_queue(dev);
63 @@ -6218,7 +6226,9 @@ ath_recv_mgmt(struct ieee80211vap * vap,
64 struct sk_buff *skb, int subtype, int rssi, u_int64_t rtsf)
66 struct ath_softc *sc = vap->iv_ic->ic_dev->priv;
68 struct ieee80211_frame *wh = (struct ieee80211_frame *)skb->data;
70 struct ieee80211_node * ni = ni_or_null;
71 u_int64_t hw_tsf, beacon_tsf;
72 u_int32_t hw_tu, beacon_tu, intval;
73 @@ -8382,7 +8392,9 @@ ath_tx_timeout(struct net_device *dev)
75 ath_tx_draintxq(struct ath_softc *sc, struct ath_txq *txq)
78 struct ath_hal *ah = sc->sc_ah;
82 * NB: this assumes output has been stopped and
83 @@ -11002,6 +11014,7 @@ ath_announce(struct net_device *dev)
86 strncat(m, "\n", MLEN);
88 if (1 /* bootverbose */) {
90 for (i = 0; i <= WME_AC_VO; i++) {
91 @@ -11014,6 +11027,7 @@ ath_announce(struct net_device *dev)
92 sc->sc_cabq->axq_qnum);
93 IPRINTF(sc, "Use hw queue %u for beacons\n", sc->sc_bhalq);
96 #undef HAL_MODE_DUALBAND
99 --- a/ath/if_ath_radar.c
100 +++ b/ath/if_ath_radar.c
101 @@ -156,7 +156,9 @@ static struct radar_pattern_specificatio
106 static u_int32_t interval_to_frequency(u_int32_t pri);
109 /* Returns true if radar detection is enabled. */
110 int ath_radar_is_enabled(struct ath_softc *sc)
111 @@ -229,7 +231,9 @@ int ath_radar_update(struct ath_softc *s
114 struct ath_hal *ah = sc->sc_ah;
116 struct net_device *dev = sc->sc_dev;
118 struct ieee80211com *ic = &sc->sc_ic;
121 @@ -366,6 +370,7 @@ static struct ath_rp *pulse_prev(struct
122 #define MR_FAIL_MIN_PERIOD 4
123 #define MR_FAIL_MAX_PERIOD 5
126 static const char* get_match_result_desc(u_int32_t code) {
129 @@ -384,6 +389,7 @@ static const char* get_match_result_desc
135 static int32_t match_radar(
137 @@ -775,7 +781,10 @@ static HAL_BOOL rp_analyse_short_pulse(
138 struct ath_softc *sc, struct ath_rp *last_pulse,
139 u_int32_t *index, u_int32_t *pri, u_int32_t *matching_pulses,
140 u_int32_t *missed_pulses, u_int32_t *noise_pulses)
141 -{ struct net_device *dev = sc->sc_dev;
144 + struct net_device *dev = sc->sc_dev;
148 unsigned int best_matched = 0;
149 @@ -1217,6 +1226,7 @@ static HAL_BOOL rp_analyse_short_pulse(
150 return (-1 != best_index) ? AH_TRUE : AH_FALSE;
154 static u_int32_t interval_to_frequency(u_int32_t interval)
156 /* Calculate BRI from PRI */
157 @@ -1224,6 +1234,7 @@ static u_int32_t interval_to_frequency(u
158 /* Round to nearest multiple of 50 */
159 return frequency + ((frequency % 50) >= 25 ? 50 : 0) - (frequency % 50);
163 #ifdef ATH_RADAR_LONG_PULSE
164 static const char* get_longpulse_desc(int lp) {
165 @@ -1580,7 +1591,9 @@ void ath_rp_done(struct ath_softc *sc)
166 void ath_rp_record(struct ath_softc *sc, u_int64_t tsf, u_int8_t rssi,
167 u_int8_t width, HAL_BOOL is_simulated)
170 struct net_device *dev = sc->sc_dev;
172 struct ath_rp *pulse;
174 DPRINTF(sc, ATH_DEBUG_DOTHPULSES, "%s: ath_rp_record: "
175 --- a/ath_rate/minstrel/minstrel.c
176 +++ b/ath_rate/minstrel/minstrel.c
177 @@ -931,7 +931,9 @@ ath_proc_read_nodes(struct ieee80211vap
178 (struct ieee80211_node_table *) &vap->iv_ic->ic_sta;
180 unsigned int this_tp, this_prob, this_eprob;
182 struct ath_softc *sc = vap->iv_ic->ic_dev->priv;;
185 IEEE80211_NODE_TABLE_LOCK_IRQ(nt);
186 TAILQ_FOREACH(ni, &nt->nt_node, ni_list) {
187 --- a/net80211/ieee80211_scan_ap.c
188 +++ b/net80211/ieee80211_scan_ap.c
189 @@ -731,6 +731,7 @@ pick_channel(struct ieee80211_scan_state
191 sort(chans, ss_last, sizeof(*chans), pc_cmp, pc_swap);
193 +#ifdef IEEE80211_DEBUG
194 for (i = 0; i < ss_last; i++) {
195 int chan = ieee80211_chan2ieee(ic, chans[i].chan);
197 @@ -742,6 +743,7 @@ pick_channel(struct ieee80211_scan_state
198 !!IEEE80211_ARE_CHANS_SAME_MODE(chans[i].chan,
204 best_rssi = 0xff; /* If signal is bigger than 0xff, we'd be melting. */