Allow advertising of U-APSD functionality in Beacon
[libeap.git] / src / ap / wpa_auth_glue.c
index 675c001..fdaf214 100644 (file)
@@ -47,6 +47,7 @@ static void hostapd_wpa_auth_conf(struct hostapd_bss_config *conf,
        wconf->eapol_version = conf->eapol_version;
        wconf->peerkey = conf->peerkey;
        wconf->wmm_enabled = conf->wmm_enabled;
+       wconf->wmm_uapsd = conf->wmm_uapsd;
        wconf->okc = conf->okc;
 #ifdef CONFIG_IEEE80211W
        wconf->ieee80211w = conf->ieee80211w;
@@ -429,7 +430,9 @@ int hostapd_setup_wpa(struct hostapd_data *hapd)
 
 #ifdef CONFIG_IEEE80211R
        if (!hostapd_drv_none(hapd)) {
-               hapd->l2 = l2_packet_init(hapd->conf->iface, NULL, ETH_P_RRB,
+               hapd->l2 = l2_packet_init(hapd->conf->bridge[0] ?
+                                         hapd->conf->bridge :
+                                         hapd->conf->iface, NULL, ETH_P_RRB,
                                          hostapd_rrb_receive, hapd, 0);
                if (hapd->l2 == NULL &&
                    (hapd->driver == NULL ||