Lines Matching defs:ac

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