diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-04-23 10:13:26 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-05-06 15:14:36 -0400 |
commit | 2d0ddec5b2b859f06116f631fc0ffe94fbceb556 (patch) | |
tree | 9bf3cdfcbbefcb34f5984e6d797f488ebe358196 /drivers/net/wireless/at76c50x-usb.c | |
parent | 57c4d7b4c4986037be51476b8e3025d5ba18d8b8 (diff) |
mac80211: unify config_interface and bss_info_changed
The config_interface method is a little strange, it contains the
BSSID and beacon updates, while bss_info_changed contains most
other BSS information for each interface. This patch removes
config_interface and rolls all the information it previously
passed to drivers into bss_info_changed.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/at76c50x-usb.c')
-rw-r--r-- | drivers/net/wireless/at76c50x-usb.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/drivers/net/wireless/at76c50x-usb.c b/drivers/net/wireless/at76c50x-usb.c index 55f947ac56d1..cea7f1466c54 100644 --- a/drivers/net/wireless/at76c50x-usb.c +++ b/drivers/net/wireless/at76c50x-usb.c | |||
@@ -1965,13 +1965,18 @@ static int at76_config(struct ieee80211_hw *hw, u32 changed) | |||
1965 | return 0; | 1965 | return 0; |
1966 | } | 1966 | } |
1967 | 1967 | ||
1968 | static int at76_config_interface(struct ieee80211_hw *hw, | 1968 | static void at76_bss_info_changed(struct ieee80211_hw *hw, |
1969 | struct ieee80211_vif *vif, | 1969 | struct ieee80211_vif *vif, |
1970 | struct ieee80211_if_conf *conf) | 1970 | struct ieee80211_bss_conf *conf, |
1971 | u32 changed) | ||
1971 | { | 1972 | { |
1972 | struct at76_priv *priv = hw->priv; | 1973 | struct at76_priv *priv = hw->priv; |
1973 | 1974 | ||
1974 | at76_dbg(DBG_MAC80211, "%s():", __func__); | 1975 | at76_dbg(DBG_MAC80211, "%s():", __func__); |
1976 | |||
1977 | if (!(changed & BSS_CHANGED_BSSID)) | ||
1978 | return; | ||
1979 | |||
1975 | at76_dbg_dump(DBG_MAC80211, conf->bssid, ETH_ALEN, "bssid:"); | 1980 | at76_dbg_dump(DBG_MAC80211, conf->bssid, ETH_ALEN, "bssid:"); |
1976 | 1981 | ||
1977 | mutex_lock(&priv->mtx); | 1982 | mutex_lock(&priv->mtx); |
@@ -1983,8 +1988,6 @@ static int at76_config_interface(struct ieee80211_hw *hw, | |||
1983 | at76_join(priv); | 1988 | at76_join(priv); |
1984 | 1989 | ||
1985 | mutex_unlock(&priv->mtx); | 1990 | mutex_unlock(&priv->mtx); |
1986 | |||
1987 | return 0; | ||
1988 | } | 1991 | } |
1989 | 1992 | ||
1990 | /* must be atomic */ | 1993 | /* must be atomic */ |
@@ -2076,7 +2079,7 @@ static const struct ieee80211_ops at76_ops = { | |||
2076 | .add_interface = at76_add_interface, | 2079 | .add_interface = at76_add_interface, |
2077 | .remove_interface = at76_remove_interface, | 2080 | .remove_interface = at76_remove_interface, |
2078 | .config = at76_config, | 2081 | .config = at76_config, |
2079 | .config_interface = at76_config_interface, | 2082 | .bss_info_changed = at76_bss_info_changed, |
2080 | .configure_filter = at76_configure_filter, | 2083 | .configure_filter = at76_configure_filter, |
2081 | .start = at76_mac80211_start, | 2084 | .start = at76_mac80211_start, |
2082 | .stop = at76_mac80211_stop, | 2085 | .stop = at76_mac80211_stop, |