diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-10-07 06:04:34 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-10-31 18:06:00 -0400 |
commit | d73782fdde76554016abf73b46f843b29f520848 (patch) | |
tree | 9b57321ce60ba336dfea63501b1d23d21c700817 /net/mac80211/wext.c | |
parent | 3db594380b8452eda4d88b12844077809607caaa (diff) |
mac80211: clean up ieee80211_hw_config errors
Warn when ieee80211_hw_config returns an error, it shouldn't
happen; remove a number of printks that would happen in such
a case and one printk that is user-triggerable.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/wext.c')
-rw-r--r-- | net/mac80211/wext.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/mac80211/wext.c b/net/mac80211/wext.c index 742f811ca416..29c41040c8c9 100644 --- a/net/mac80211/wext.c +++ b/net/mac80211/wext.c | |||
@@ -689,12 +689,8 @@ static int ieee80211_ioctl_siwtxpower(struct net_device *dev, | |||
689 | ieee80211_led_radio(local, local->hw.conf.radio_enabled); | 689 | ieee80211_led_radio(local, local->hw.conf.radio_enabled); |
690 | } | 690 | } |
691 | 691 | ||
692 | if (need_reconfig) { | 692 | if (need_reconfig) |
693 | ieee80211_hw_config(local); | 693 | ieee80211_hw_config(local); |
694 | /* The return value of hw_config is not of big interest here, | ||
695 | * as it doesn't say that it failed because of _this_ config | ||
696 | * change or something else. Ignore it. */ | ||
697 | } | ||
698 | 694 | ||
699 | return 0; | 695 | return 0; |
700 | } | 696 | } |