Add Interworking configuration in set_ap() driver_ops
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 17 Oct 2011 18:35:41 +0000 (21:35 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 17 Oct 2011 18:35:41 +0000 (21:35 +0300)
Drivers that implement SME/MLME may find it easier to use separated
information to configure Interworking related parameters.

src/ap/beacon.c
src/drivers/driver.h

index 23a852d..f15467f 100644 (file)
@@ -573,6 +573,10 @@ void ieee802_11_set_beacon(struct hostapd_data *hapd)
        else
                params.ht_opmode = hapd->iface->ht_op_mode;
 #endif /* NEED_AP_MLME */
+       params.interworking = hapd->conf->interworking;
+       if (hapd->conf->interworking &&
+           !is_zero_ether_addr(hapd->conf->hessid))
+               params.hessid = hapd->conf->hessid;
        if (hostapd_drv_set_ap(hapd, &params))
                wpa_printf(MSG_ERROR, "Failed to set beacon parameters");
        hostapd_free_ap_extra_ies(hapd, beacon, proberesp, assocresp);
index dd731b0..dd36db9 100644 (file)
@@ -650,6 +650,16 @@ struct wpa_driver_ap_params {
         * ht_opmode - HT operation mode or -1 if HT not in use
         */
        int ht_opmode;
+
+       /**
+        * interworking - Whether Interworking is enabled
+        */
+       int interworking;
+
+       /**
+        * hessid - Homogeneous ESS identifier or %NULL if not set
+        */
+       const u8 *hessid;
 };
 
 /**