diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-09-10 18:01:58 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-09-15 16:48:23 -0400 |
commit | 05c914fe330fa8e1cc67870dc0d3809dfd96c107 (patch) | |
tree | df53bcab47335f3361c09478d6b1447b7d298536 /drivers/net/wireless/zd1211rw | |
parent | 96dd22ac06b0dbfb069fdf530c72046a941e9694 (diff) |
mac80211: use nl80211 interface types
There's really no reason for mac80211 to be using its
own interface type defines. Use the nl80211 types and
simplify the configuration code a bit: there's no need
to translate them any more now.
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 | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/net/wireless/zd1211rw/zd_mac.c b/drivers/net/wireless/zd1211rw/zd_mac.c index 3005dd1fde42..a3da014f928d 100644 --- a/drivers/net/wireless/zd1211rw/zd_mac.c +++ b/drivers/net/wireless/zd1211rw/zd_mac.c | |||
@@ -716,15 +716,15 @@ static int zd_op_add_interface(struct ieee80211_hw *hw, | |||
716 | { | 716 | { |
717 | struct zd_mac *mac = zd_hw_mac(hw); | 717 | struct zd_mac *mac = zd_hw_mac(hw); |
718 | 718 | ||
719 | /* using IEEE80211_IF_TYPE_INVALID to indicate no mode selected */ | 719 | /* using NL80211_IFTYPE_UNSPECIFIED to indicate no mode selected */ |
720 | if (mac->type != IEEE80211_IF_TYPE_INVALID) | 720 | if (mac->type != NL80211_IFTYPE_UNSPECIFIED) |
721 | return -EOPNOTSUPP; | 721 | return -EOPNOTSUPP; |
722 | 722 | ||
723 | switch (conf->type) { | 723 | switch (conf->type) { |
724 | case IEEE80211_IF_TYPE_MNTR: | 724 | case NL80211_IFTYPE_MONITOR: |
725 | case IEEE80211_IF_TYPE_MESH_POINT: | 725 | case NL80211_IFTYPE_MESH_POINT: |
726 | case IEEE80211_IF_TYPE_STA: | 726 | case NL80211_IFTYPE_STATION: |
727 | case IEEE80211_IF_TYPE_IBSS: | 727 | case NL80211_IFTYPE_ADHOC: |
728 | mac->type = conf->type; | 728 | mac->type = conf->type; |
729 | break; | 729 | break; |
730 | default: | 730 | default: |
@@ -738,7 +738,7 @@ static void zd_op_remove_interface(struct ieee80211_hw *hw, | |||
738 | struct ieee80211_if_init_conf *conf) | 738 | struct ieee80211_if_init_conf *conf) |
739 | { | 739 | { |
740 | struct zd_mac *mac = zd_hw_mac(hw); | 740 | struct zd_mac *mac = zd_hw_mac(hw); |
741 | mac->type = IEEE80211_IF_TYPE_INVALID; | 741 | mac->type = NL80211_IFTYPE_UNSPECIFIED; |
742 | zd_set_beacon_interval(&mac->chip, 0); | 742 | zd_set_beacon_interval(&mac->chip, 0); |
743 | zd_write_mac_addr(&mac->chip, NULL); | 743 | zd_write_mac_addr(&mac->chip, NULL); |
744 | } | 744 | } |
@@ -757,8 +757,8 @@ static int zd_op_config_interface(struct ieee80211_hw *hw, | |||
757 | int associated; | 757 | int associated; |
758 | int r; | 758 | int r; |
759 | 759 | ||
760 | if (mac->type == IEEE80211_IF_TYPE_MESH_POINT || | 760 | if (mac->type == NL80211_IFTYPE_MESH_POINT || |
761 | mac->type == IEEE80211_IF_TYPE_IBSS) { | 761 | mac->type == NL80211_IFTYPE_ADHOC) { |
762 | associated = true; | 762 | associated = true; |
763 | if (conf->changed & IEEE80211_IFCC_BEACON) { | 763 | if (conf->changed & IEEE80211_IFCC_BEACON) { |
764 | struct sk_buff *beacon = ieee80211_beacon_get(hw, vif); | 764 | struct sk_buff *beacon = ieee80211_beacon_get(hw, vif); |
@@ -955,7 +955,7 @@ struct ieee80211_hw *zd_mac_alloc_hw(struct usb_interface *intf) | |||
955 | spin_lock_init(&mac->lock); | 955 | spin_lock_init(&mac->lock); |
956 | mac->hw = hw; | 956 | mac->hw = hw; |
957 | 957 | ||
958 | mac->type = IEEE80211_IF_TYPE_INVALID; | 958 | mac->type = NL80211_IFTYPE_UNSPECIFIED; |
959 | 959 | ||
960 | memcpy(mac->channels, zd_channels, sizeof(zd_channels)); | 960 | memcpy(mac->channels, zd_channels, sizeof(zd_channels)); |
961 | memcpy(mac->rates, zd_rates, sizeof(zd_rates)); | 961 | memcpy(mac->rates, zd_rates, sizeof(zd_rates)); |