diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-12-23 07:15:45 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-12-28 16:55:07 -0500 |
commit | 1ed32e4fc8cfc9656cc1101e7f9617d485fcbe7b (patch) | |
tree | 81697637a36eb4776df39c81a77a9e09ec951a1a /drivers/net/wireless/wl12xx/wl1271_main.c | |
parent | 98b6218388e345064c3f2d3c161383a18274c638 (diff) |
mac80211: remove struct ieee80211_if_init_conf
All its members (vif, mac_addr, type) are now available
in the vif struct directly, so we can pass that instead
of the conf struct. I generated this patch (except the
mac80211 and header file changes) with this semantic
patch:
@@
identifier conf, fn, hw;
type tp;
@@
tp fn(struct ieee80211_hw *hw,
-struct ieee80211_if_init_conf *conf)
+struct ieee80211_vif *vif)
{
<...
(
-conf->type
+vif->type
|
-conf->mac_addr
+vif->addr
|
-conf->vif
+vif
)
...>
}
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_main.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_main.c b/drivers/net/wireless/wl12xx/wl1271_main.c index 4a997381a8d0..e4867b895c43 100644 --- a/drivers/net/wireless/wl12xx/wl1271_main.c +++ b/drivers/net/wireless/wl12xx/wl1271_main.c | |||
@@ -1039,13 +1039,13 @@ static void wl1271_op_stop(struct ieee80211_hw *hw) | |||
1039 | } | 1039 | } |
1040 | 1040 | ||
1041 | static int wl1271_op_add_interface(struct ieee80211_hw *hw, | 1041 | static int wl1271_op_add_interface(struct ieee80211_hw *hw, |
1042 | struct ieee80211_if_init_conf *conf) | 1042 | struct ieee80211_vif *vif) |
1043 | { | 1043 | { |
1044 | struct wl1271 *wl = hw->priv; | 1044 | struct wl1271 *wl = hw->priv; |
1045 | int ret = 0; | 1045 | int ret = 0; |
1046 | 1046 | ||
1047 | wl1271_debug(DEBUG_MAC80211, "mac80211 add interface type %d mac %pM", | 1047 | wl1271_debug(DEBUG_MAC80211, "mac80211 add interface type %d mac %pM", |
1048 | conf->type, conf->mac_addr); | 1048 | vif->type, vif->addr); |
1049 | 1049 | ||
1050 | mutex_lock(&wl->mutex); | 1050 | mutex_lock(&wl->mutex); |
1051 | if (wl->vif) { | 1051 | if (wl->vif) { |
@@ -1053,9 +1053,9 @@ static int wl1271_op_add_interface(struct ieee80211_hw *hw, | |||
1053 | goto out; | 1053 | goto out; |
1054 | } | 1054 | } |
1055 | 1055 | ||
1056 | wl->vif = conf->vif; | 1056 | wl->vif = vif; |
1057 | 1057 | ||
1058 | switch (conf->type) { | 1058 | switch (vif->type) { |
1059 | case NL80211_IFTYPE_STATION: | 1059 | case NL80211_IFTYPE_STATION: |
1060 | wl->bss_type = BSS_TYPE_STA_BSS; | 1060 | wl->bss_type = BSS_TYPE_STA_BSS; |
1061 | break; | 1061 | break; |
@@ -1075,7 +1075,7 @@ out: | |||
1075 | } | 1075 | } |
1076 | 1076 | ||
1077 | static void wl1271_op_remove_interface(struct ieee80211_hw *hw, | 1077 | static void wl1271_op_remove_interface(struct ieee80211_hw *hw, |
1078 | struct ieee80211_if_init_conf *conf) | 1078 | struct ieee80211_vif *vif) |
1079 | { | 1079 | { |
1080 | struct wl1271 *wl = hw->priv; | 1080 | struct wl1271 *wl = hw->priv; |
1081 | 1081 | ||