]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/mac80211/tx.c
mac80211: pass AP vif pointer for VLANs
[linux-2.6-omap-h63xx.git] / net / mac80211 / tx.c
index 7468495d6f9ce943b7b0cbb661182605dd180310..698c8233e6b3d5604016ee21452e2ac1ee293b01 100644 (file)
@@ -1351,6 +1351,10 @@ int ieee80211_master_start_xmit(struct sk_buff *skb,
                return 0;
        }
 
+       if (osdata->vif.type == NL80211_IFTYPE_AP_VLAN)
+               osdata = container_of(osdata->bss,
+                                     struct ieee80211_sub_if_data,
+                                     u.ap);
        info->control.vif = &osdata->vif;
        ret = ieee80211_tx(odev, skb);
        dev_put(odev);