]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/mac80211/sta_info.c
mac80211: use nl80211 interface types
[mirror_ubuntu-bionic-kernel.git] / net / mac80211 / sta_info.c
index 3370b262563378a76f5ca6a43d821e21301de0b4..31246d8e53274d10c5eeaef04d4785080252928c 100644 (file)
@@ -319,7 +319,7 @@ int sta_info_insert(struct sta_info *sta)
 
        /* notify driver */
        if (local->ops->sta_notify) {
-               if (sdata->vif.type == IEEE80211_IF_TYPE_VLAN)
+               if (sdata->vif.type == NL80211_IFTYPE_AP_VLAN)
                        sdata = container_of(sdata->bss,
                                             struct ieee80211_sub_if_data,
                                             u.ap);
@@ -456,7 +456,7 @@ static void __sta_info_unlink(struct sta_info **sta)
        local->num_sta--;
 
        if (local->ops->sta_notify) {
-               if (sdata->vif.type == IEEE80211_IF_TYPE_VLAN)
+               if (sdata->vif.type == NL80211_IFTYPE_AP_VLAN)
                        sdata = container_of(sdata->bss,
                                             struct ieee80211_sub_if_data,
                                             u.ap);