Skip to content

Add WMM support to wpa_mesh_new_mesh_peer / beacons #12

@silverjam

Description

@silverjam

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;
    
  •   */
    

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions