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/rtl8187_dev.c | |
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/rtl8187_dev.c')
-rw-r--r-- | drivers/net/wireless/rtl8187_dev.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/rtl8187_dev.c b/drivers/net/wireless/rtl8187_dev.c index 8a42bfa6d4f0..e9902613e2ee 100644 --- a/drivers/net/wireless/rtl8187_dev.c +++ b/drivers/net/wireless/rtl8187_dev.c | |||
@@ -836,11 +836,11 @@ static int rtl8187_add_interface(struct ieee80211_hw *dev, | |||
836 | struct rtl8187_priv *priv = dev->priv; | 836 | struct rtl8187_priv *priv = dev->priv; |
837 | int i; | 837 | int i; |
838 | 838 | ||
839 | if (priv->mode != IEEE80211_IF_TYPE_MNTR) | 839 | if (priv->mode != NL80211_IFTYPE_MONITOR) |
840 | return -EOPNOTSUPP; | 840 | return -EOPNOTSUPP; |
841 | 841 | ||
842 | switch (conf->type) { | 842 | switch (conf->type) { |
843 | case IEEE80211_IF_TYPE_STA: | 843 | case NL80211_IFTYPE_STATION: |
844 | priv->mode = conf->type; | 844 | priv->mode = conf->type; |
845 | break; | 845 | break; |
846 | default: | 846 | default: |
@@ -865,7 +865,7 @@ static void rtl8187_remove_interface(struct ieee80211_hw *dev, | |||
865 | { | 865 | { |
866 | struct rtl8187_priv *priv = dev->priv; | 866 | struct rtl8187_priv *priv = dev->priv; |
867 | mutex_lock(&priv->conf_mutex); | 867 | mutex_lock(&priv->conf_mutex); |
868 | priv->mode = IEEE80211_IF_TYPE_MNTR; | 868 | priv->mode = NL80211_IFTYPE_MONITOR; |
869 | priv->vif = NULL; | 869 | priv->vif = NULL; |
870 | mutex_unlock(&priv->conf_mutex); | 870 | mutex_unlock(&priv->conf_mutex); |
871 | } | 871 | } |
@@ -1057,7 +1057,7 @@ static int __devinit rtl8187_probe(struct usb_interface *intf, | |||
1057 | dev->wiphy->bands[IEEE80211_BAND_2GHZ] = &priv->band; | 1057 | dev->wiphy->bands[IEEE80211_BAND_2GHZ] = &priv->band; |
1058 | 1058 | ||
1059 | 1059 | ||
1060 | priv->mode = IEEE80211_IF_TYPE_MNTR; | 1060 | priv->mode = NL80211_IFTYPE_MONITOR; |
1061 | dev->flags = IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING | | 1061 | dev->flags = IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING | |
1062 | IEEE80211_HW_RX_INCLUDES_FCS; | 1062 | IEEE80211_HW_RX_INCLUDES_FCS; |
1063 | 1063 | ||