-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
Description
Issue by silverjam from Thursday Apr 24, 2014 at 23:22 GMT
Originally opened as cozybit/wpa_s_mesh_android#30
+void
+wpa_mesh_new_mesh_peer(struct wpa_supplicant *wpa_s, const u8 *addr,
+{struct ieee802_11_elems *elems)struct hostapd_sta_add_params params;/\* struct wmm_information_element *wmm; */struct mesh_conf *conf = wpa_s->ifmsh->mconf;struct hostapd_data *data = wpa_s->ifmsh->bss[0];struct sta_info *sta;int ret = 0;
sta = ap_get_sta(data, addr);if (!sta) {sta = ap_sta_add(data, addr);if (!sta)return;}
/\* initialize sta */if (copy_supp_rates(wpa_s, sta, elems))return;
/\* TODO: our beacons currently don't include this *//*if (!elems->wmm) {wpa_msg(wpa_s, MSG_ERROR, "all mesh STAs should have a QoS IE!");return;}wmm = (struct wmm_information_element *) elems->wmm;sta->qosinfo = wmm->qos_info;*/