diff options
Diffstat (limited to 'drivers/net/wireless/rtl8180_dev.c')
-rw-r--r-- | drivers/net/wireless/rtl8180_dev.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/rtl8180_dev.c b/drivers/net/wireless/rtl8180_dev.c index 861c76a65d6a..abcd641c54be 100644 --- a/drivers/net/wireless/rtl8180_dev.c +++ b/drivers/net/wireless/rtl8180_dev.c | |||
@@ -615,7 +615,7 @@ static int rtl8180_start(struct ieee80211_hw *dev) | |||
615 | reg |= RTL818X_CMD_TX_ENABLE; | 615 | reg |= RTL818X_CMD_TX_ENABLE; |
616 | rtl818x_iowrite8(priv, &priv->map->CMD, reg); | 616 | rtl818x_iowrite8(priv, &priv->map->CMD, reg); |
617 | 617 | ||
618 | priv->mode = IEEE80211_IF_TYPE_MNTR; | 618 | priv->mode = NL80211_IFTYPE_MONITOR; |
619 | return 0; | 619 | return 0; |
620 | 620 | ||
621 | err_free_rings: | 621 | err_free_rings: |
@@ -633,7 +633,7 @@ static void rtl8180_stop(struct ieee80211_hw *dev) | |||
633 | u8 reg; | 633 | u8 reg; |
634 | int i; | 634 | int i; |
635 | 635 | ||
636 | priv->mode = IEEE80211_IF_TYPE_INVALID; | 636 | priv->mode = NL80211_IFTYPE_UNSPECIFIED; |
637 | 637 | ||
638 | rtl818x_iowrite16(priv, &priv->map->INT_MASK, 0); | 638 | rtl818x_iowrite16(priv, &priv->map->INT_MASK, 0); |
639 | 639 | ||
@@ -661,11 +661,11 @@ static int rtl8180_add_interface(struct ieee80211_hw *dev, | |||
661 | { | 661 | { |
662 | struct rtl8180_priv *priv = dev->priv; | 662 | struct rtl8180_priv *priv = dev->priv; |
663 | 663 | ||
664 | if (priv->mode != IEEE80211_IF_TYPE_MNTR) | 664 | if (priv->mode != NL80211_IFTYPE_MONITOR) |
665 | return -EOPNOTSUPP; | 665 | return -EOPNOTSUPP; |
666 | 666 | ||
667 | switch (conf->type) { | 667 | switch (conf->type) { |
668 | case IEEE80211_IF_TYPE_STA: | 668 | case NL80211_IFTYPE_STATION: |
669 | priv->mode = conf->type; | 669 | priv->mode = conf->type; |
670 | break; | 670 | break; |
671 | default: | 671 | default: |
@@ -688,7 +688,7 @@ static void rtl8180_remove_interface(struct ieee80211_hw *dev, | |||
688 | struct ieee80211_if_init_conf *conf) | 688 | struct ieee80211_if_init_conf *conf) |
689 | { | 689 | { |
690 | struct rtl8180_priv *priv = dev->priv; | 690 | struct rtl8180_priv *priv = dev->priv; |
691 | priv->mode = IEEE80211_IF_TYPE_MNTR; | 691 | priv->mode = NL80211_IFTYPE_MONITOR; |
692 | priv->vif = NULL; | 692 | priv->vif = NULL; |
693 | } | 693 | } |
694 | 694 | ||