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/zd1211rw | |
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/zd1211rw')
-rw-r--r-- | drivers/net/wireless/zd1211rw/zd_mac.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/zd1211rw/zd_mac.c b/drivers/net/wireless/zd1211rw/zd_mac.c index 8a243732c519..c4f41d0016c5 100644 --- a/drivers/net/wireless/zd1211rw/zd_mac.c +++ b/drivers/net/wireless/zd1211rw/zd_mac.c | |||
@@ -872,7 +872,7 @@ int zd_mac_rx(struct ieee80211_hw *hw, const u8 *buffer, unsigned int length) | |||
872 | } | 872 | } |
873 | 873 | ||
874 | static int zd_op_add_interface(struct ieee80211_hw *hw, | 874 | static int zd_op_add_interface(struct ieee80211_hw *hw, |
875 | struct ieee80211_if_init_conf *conf) | 875 | struct ieee80211_vif *vif) |
876 | { | 876 | { |
877 | struct zd_mac *mac = zd_hw_mac(hw); | 877 | struct zd_mac *mac = zd_hw_mac(hw); |
878 | 878 | ||
@@ -880,22 +880,22 @@ static int zd_op_add_interface(struct ieee80211_hw *hw, | |||
880 | if (mac->type != NL80211_IFTYPE_UNSPECIFIED) | 880 | if (mac->type != NL80211_IFTYPE_UNSPECIFIED) |
881 | return -EOPNOTSUPP; | 881 | return -EOPNOTSUPP; |
882 | 882 | ||
883 | switch (conf->type) { | 883 | switch (vif->type) { |
884 | case NL80211_IFTYPE_MONITOR: | 884 | case NL80211_IFTYPE_MONITOR: |
885 | case NL80211_IFTYPE_MESH_POINT: | 885 | case NL80211_IFTYPE_MESH_POINT: |
886 | case NL80211_IFTYPE_STATION: | 886 | case NL80211_IFTYPE_STATION: |
887 | case NL80211_IFTYPE_ADHOC: | 887 | case NL80211_IFTYPE_ADHOC: |
888 | mac->type = conf->type; | 888 | mac->type = vif->type; |
889 | break; | 889 | break; |
890 | default: | 890 | default: |
891 | return -EOPNOTSUPP; | 891 | return -EOPNOTSUPP; |
892 | } | 892 | } |
893 | 893 | ||
894 | return zd_write_mac_addr(&mac->chip, conf->mac_addr); | 894 | return zd_write_mac_addr(&mac->chip, vif->addr); |
895 | } | 895 | } |
896 | 896 | ||
897 | static void zd_op_remove_interface(struct ieee80211_hw *hw, | 897 | static void zd_op_remove_interface(struct ieee80211_hw *hw, |
898 | struct ieee80211_if_init_conf *conf) | 898 | struct ieee80211_vif *vif) |
899 | { | 899 | { |
900 | struct zd_mac *mac = zd_hw_mac(hw); | 900 | struct zd_mac *mac = zd_hw_mac(hw); |
901 | mac->type = NL80211_IFTYPE_UNSPECIFIED; | 901 | mac->type = NL80211_IFTYPE_UNSPECIFIED; |