Lines Matching refs:ac
76 u8 ac = up_to_ac[up]; in wmm_ac_add_ts() local
82 if (wpa_s->tspecs[ac][idx]) { in wmm_ac_add_ts()
85 ac, dir); in wmm_ac_add_ts()
106 wpa_s->tspecs[ac][idx] = _tspec; in wmm_ac_add_ts()
118 static void wmm_ac_del_ts_idx(struct wpa_supplicant *wpa_s, u8 ac, in wmm_ac_del_ts_idx() argument
121 struct wmm_tspec_element *tspec = wpa_s->tspecs[ac][dir]; in wmm_ac_del_ts_idx()
128 wpa_printf(MSG_DEBUG, "WMM AC: Del TS ac=%d tsid=%d", ac, tsid); in wmm_ac_del_ts_idx()
137 os_free(wpa_s->tspecs[ac][dir]); in wmm_ac_del_ts_idx()
138 wpa_s->tspecs[ac][dir] = NULL; in wmm_ac_del_ts_idx()
244 int ac; in wmm_ac_find_tsid() local
247 for (ac = 0; ac < WMM_AC_NUM; ac++) { in wmm_ac_find_tsid()
249 if (wpa_s->tspecs[ac][idx] && in wmm_ac_find_tsid()
250 wmm_ac_get_tsid(wpa_s->tspecs[ac][idx]) == tsid) { in wmm_ac_find_tsid()
253 return ac; in wmm_ac_find_tsid()
269 u8 ac = up_to_ac[params->user_priority]; in wmm_ac_build_addts_req() local
270 u8 uapsd = wpa_s->wmm_ac_assoc_info->ac_params[ac].uapsd; in wmm_ac_build_addts_req()
329 u8 tsid, u8 ac, u8 dir) in wmm_ac_should_replace_ts() argument
336 if (cur_ac != ac) { in wmm_ac_should_replace_ts()
348 if (wpa_s->tspecs[ac][idx]) in wmm_ac_should_replace_ts()
450 !!(wmm_params->ac[i].aci_aifsn & WMM_AC_ACM); in wmm_ac_process_param_elem()
467 u8 ac; in wmm_ac_init() local
490 for (ac = 0; ac < WMM_AC_NUM; ac++) { in wmm_ac_init()
491 assoc_data->ac_params[ac].uapsd = in wmm_ac_init()
492 !!(wmm_params->uapsd_queues & BIT(ac)); in wmm_ac_init()
500 static void wmm_ac_del_ts(struct wpa_supplicant *wpa_s, u8 ac, int dir_bitmap) in wmm_ac_del_ts() argument
508 wmm_ac_del_ts_idx(wpa_s, ac, idx); in wmm_ac_del_ts()
552 int ac; in wpas_wmm_ac_delts() local
561 ac = wmm_ac_find_tsid(wpa_s, tsid, &dir); in wpas_wmm_ac_delts()
562 if (ac < 0) { in wpas_wmm_ac_delts()
567 tspec = *wpa_s->tspecs[ac][dir]; in wpas_wmm_ac_delts()
569 wmm_ac_del_ts_idx(wpa_s, ac, dir); in wpas_wmm_ac_delts()
634 int ac; in wmm_ac_handle_delts() local
644 ac = wmm_ac_find_tsid(wpa_s, tsid, &idx); in wmm_ac_handle_delts()
645 if (ac < 0) { in wmm_ac_handle_delts()
651 wmm_ac_del_ts_idx(wpa_s, ac, idx); in wmm_ac_handle_delts()
664 u8 ac, tsid, up, dir; in wmm_ac_handle_addts_resp() local
670 ac = up_to_ac[up]; in wmm_ac_handle_addts_resp()
702 replace_tspecs = wmm_ac_should_replace_ts(wpa_s, tsid, ac, dir); in wmm_ac_handle_addts_resp()
709 wmm_ac_del_ts(wpa_s, ac, replace_tspecs); in wmm_ac_handle_addts_resp()
716 le_to_host16(tspec->medium_time), ac, dir); in wmm_ac_handle_addts_resp()
815 static const char * get_ac_str(u8 ac) in get_ac_str() argument
817 switch (ac) { in get_ac_str()
852 u8 ac, up; in wpas_wmm_ac_status() local
861 for (ac = 0; ac < WMM_AC_NUM; ac++) { in wpas_wmm_ac_status()
866 get_ac_str(ac), in wpas_wmm_ac_status()
867 assoc_info->ac_params[ac].acm, in wpas_wmm_ac_status()
868 assoc_info->ac_params[ac].uapsd); in wpas_wmm_ac_status()
875 tspec = wpa_s->tspecs[ac][idx]; in wpas_wmm_ac_status()
909 int ac, dir, tspecs_count = 0; in wmm_ac_get_tspecs_count() local
911 for (ac = 0; ac < WMM_AC_NUM; ac++) { in wmm_ac_get_tspecs_count()
913 if (wpa_s->tspecs[ac][dir]) in wmm_ac_get_tspecs_count()
924 int ac, dir, tspecs_count; in wmm_ac_save_tspecs() local
947 for (ac = 0; ac < WMM_AC_NUM; ac++) { in wmm_ac_save_tspecs()
949 if (!wpa_s->tspecs[ac][dir]) in wmm_ac_save_tspecs()
953 *wpa_s->tspecs[ac][dir]; in wmm_ac_save_tspecs()