OSDN Git Service

Accumulative patch from commit dc013f1e37df3462085cf01a13f0c432f146ad7a
[android-x86/external-wpa_supplicant_8.git] / src / ap / ieee802_11_vht.c
index 7599ef8..f6cc5d6 100644 (file)
@@ -68,6 +68,8 @@ u8 * hostapd_eid_vht_operation(struct hostapd_data *hapd, u8 *eid)
         */
        oper->vht_op_info_chan_center_freq_seg0_idx =
                hapd->iconf->vht_oper_centr_freq_seg0_idx;
+       oper->vht_op_info_chan_center_freq_seg1_idx =
+               hapd->iconf->vht_oper_centr_freq_seg1_idx;
 
        oper->vht_op_info_chwidth = hapd->iconf->vht_oper_chwidth;
 
@@ -106,3 +108,14 @@ u16 copy_sta_vht_capab(struct hostapd_data *hapd, struct sta_info *sta,
 
        return WLAN_STATUS_SUCCESS;
 }
+
+void hostapd_get_vht_capab(struct hostapd_data *hapd,
+                          struct ieee80211_vht_capabilities *vht_cap,
+                          struct ieee80211_vht_capabilities *neg_vht_cap)
+{
+       if (vht_cap == NULL)
+               return;
+       os_memcpy(neg_vht_cap, vht_cap, sizeof(*neg_vht_cap));
+
+       /* TODO: mask own capabilities, like get_ht_capab() */
+}