diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2009-08-08 17:53:04 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-14 09:13:51 -0400 |
commit | bdfa500b8b8ca87dfe7a311f569fe8b39746c299 (patch) | |
tree | 4b49d31360d0a335154c30165efc422d1e856459 /drivers/net/wireless/rt2x00/rt2x00dev.c | |
parent | 4d30d309a3be84dfb01743ceb4652405204a80a0 (diff) |
rt2x00: Remove usage of deprecated radio_enabled & IEEE80211_CONF_CHANGE_RADIO_ENABLED
In the config() callback function the fields radio_enabled and
the change flag IEEE80211_CONF_CHANGE_RADIO_ENABLED have been
deprecated. This removes the usage of those fields by improving
antenna change detection in the antenna configuration function.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00dev.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00dev.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c index db54fcc94c8f..e0348cc22d16 100644 --- a/drivers/net/wireless/rt2x00/rt2x00dev.c +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c | |||
@@ -785,6 +785,13 @@ int rt2x00lib_start(struct rt2x00_dev *rt2x00dev) | |||
785 | rt2x00dev->intf_sta_count = 0; | 785 | rt2x00dev->intf_sta_count = 0; |
786 | rt2x00dev->intf_associated = 0; | 786 | rt2x00dev->intf_associated = 0; |
787 | 787 | ||
788 | /* Enable the radio */ | ||
789 | retval = rt2x00lib_enable_radio(rt2x00dev); | ||
790 | if (retval) { | ||
791 | rt2x00queue_uninitialize(rt2x00dev); | ||
792 | return retval; | ||
793 | } | ||
794 | |||
788 | set_bit(DEVICE_STATE_STARTED, &rt2x00dev->flags); | 795 | set_bit(DEVICE_STATE_STARTED, &rt2x00dev->flags); |
789 | 796 | ||
790 | return 0; | 797 | return 0; |