diff options
Diffstat (limited to 'net/mac80211/rate.c')
-rw-r--r-- | net/mac80211/rate.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/net/mac80211/rate.c b/net/mac80211/rate.c index be04d46110fe..b0cc385bf989 100644 --- a/net/mac80211/rate.c +++ b/net/mac80211/rate.c | |||
@@ -207,7 +207,7 @@ static bool rc_no_data_or_no_ack(struct ieee80211_tx_rate_control *txrc) | |||
207 | 207 | ||
208 | fc = hdr->frame_control; | 208 | fc = hdr->frame_control; |
209 | 209 | ||
210 | return ((info->flags & IEEE80211_TX_CTL_NO_ACK) || !ieee80211_is_data(fc)); | 210 | return (info->flags & IEEE80211_TX_CTL_NO_ACK) || !ieee80211_is_data(fc); |
211 | } | 211 | } |
212 | 212 | ||
213 | static void rc_send_low_broadcast(s8 *idx, u32 basic_rates, u8 max_rate_idx) | 213 | static void rc_send_low_broadcast(s8 *idx, u32 basic_rates, u8 max_rate_idx) |
@@ -368,8 +368,8 @@ int ieee80211_init_rate_ctrl_alg(struct ieee80211_local *local, | |||
368 | 368 | ||
369 | ref = rate_control_alloc(name, local); | 369 | ref = rate_control_alloc(name, local); |
370 | if (!ref) { | 370 | if (!ref) { |
371 | printk(KERN_WARNING "%s: Failed to select rate control " | 371 | wiphy_warn(local->hw.wiphy, |
372 | "algorithm\n", wiphy_name(local->hw.wiphy)); | 372 | "Failed to select rate control algorithm\n"); |
373 | return -ENOENT; | 373 | return -ENOENT; |
374 | } | 374 | } |
375 | 375 | ||
@@ -380,9 +380,8 @@ int ieee80211_init_rate_ctrl_alg(struct ieee80211_local *local, | |||
380 | sta_info_flush(local, NULL); | 380 | sta_info_flush(local, NULL); |
381 | } | 381 | } |
382 | 382 | ||
383 | printk(KERN_DEBUG "%s: Selected rate control " | 383 | wiphy_debug(local->hw.wiphy, "Selected rate control algorithm '%s'\n", |
384 | "algorithm '%s'\n", wiphy_name(local->hw.wiphy), | 384 | ref->ops->name); |
385 | ref->ops->name); | ||
386 | 385 | ||
387 | return 0; | 386 | return 0; |
388 | } | 387 | } |