提交 2489e4ea 编写于 作者: C Christian Lamparter 提交者: John W. Linville

ar9170: remove deprecated code

This patch removes code (deprecated by "cfg80211: add rfkill support" )

main.c: In function 'ar9170_op_config':
main.c:1306: warning: '__IEEE80211_CONF_CHANGE_RADIO_ENABLED'
is deprecated (declared at include/net/mac80211.h:551)

and a useless device state.
Signed-off-by: NChristian Lamparter <chunkeey@web.de>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 c18bd87b
...@@ -102,7 +102,6 @@ enum ar9170_device_state { ...@@ -102,7 +102,6 @@ enum ar9170_device_state {
AR9170_STOPPED, AR9170_STOPPED,
AR9170_IDLE, AR9170_IDLE,
AR9170_STARTED, AR9170_STARTED,
AR9170_ASSOCIATED,
}; };
struct ar9170_rxstream_mpdu_merge { struct ar9170_rxstream_mpdu_merge {
......
...@@ -1303,11 +1303,6 @@ static int ar9170_op_config(struct ieee80211_hw *hw, u32 changed) ...@@ -1303,11 +1303,6 @@ static int ar9170_op_config(struct ieee80211_hw *hw, u32 changed)
mutex_lock(&ar->mutex); mutex_lock(&ar->mutex);
if (changed & IEEE80211_CONF_CHANGE_RADIO_ENABLED) {
/* TODO */
err = 0;
}
if (changed & IEEE80211_CONF_CHANGE_LISTEN_INTERVAL) { if (changed & IEEE80211_CONF_CHANGE_LISTEN_INTERVAL) {
/* TODO */ /* TODO */
err = 0; err = 0;
...@@ -1490,8 +1485,6 @@ static void ar9170_op_bss_info_changed(struct ieee80211_hw *hw, ...@@ -1490,8 +1485,6 @@ static void ar9170_op_bss_info_changed(struct ieee80211_hw *hw,
} }
if (changed & BSS_CHANGED_ASSOC) { if (changed & BSS_CHANGED_ASSOC) {
ar->state = bss_conf->assoc ? AR9170_ASSOCIATED : ar->state;
#ifndef CONFIG_AR9170_LEDS #ifndef CONFIG_AR9170_LEDS
/* enable assoc LED. */ /* enable assoc LED. */
err = ar9170_set_leds_state(ar, bss_conf->assoc ? 2 : 0); err = ar9170_set_leds_state(ar, bss_conf->assoc ? 2 : 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册