• Home
  • Raw
  • Download

Lines Matching refs:avp

201 	struct ath_vif *avp;  in ath_chanctx_check_active()  local
208 list_for_each_entry(avp, &ctx->vifs, list) { in ath_chanctx_check_active()
209 struct ieee80211_vif *vif = avp->vif; in ath_chanctx_check_active()
214 if (avp->assoc) in ath_chanctx_check_active()
310 struct ath_vif *avp = NULL; in ath_chanctx_event() local
316 avp = (struct ath_vif *) vif->drv_priv; in ath_chanctx_event()
327 if (avp->offchannel_duration) in ath_chanctx_event()
328 avp->offchannel_duration = 0; in ath_chanctx_event()
330 if (avp->chanctx != sc->cur_chan) { in ath_chanctx_event()
381 avp->noa_index++; in ath_chanctx_event()
382 avp->offchannel_start = tsf_time; in ath_chanctx_event()
383 avp->offchannel_duration = sc->sched.offchannel_duration; in ath_chanctx_event()
387 avp->offchannel_duration, in ath_chanctx_event()
388 avp->offchannel_start, in ath_chanctx_event()
389 avp->noa_index); in ath_chanctx_event()
396 if (ctx->active && avp->noa_duration) in ath_chanctx_event()
397 avp->noa_duration = 0; in ath_chanctx_event()
409 avp->noa_duration = 0; in ath_chanctx_event()
418 avp->noa_duration = 0; in ath_chanctx_event()
423 if (avp->noa_duration && tsf_time - avp->noa_start > BIT(30)) in ath_chanctx_event()
424 avp->noa_duration = 0; in ath_chanctx_event()
432 (!avp->noa_duration || sc->sched.force_noa_update)) { in ath_chanctx_event()
433 avp->noa_index++; in ath_chanctx_event()
434 avp->noa_start = tsf_time; in ath_chanctx_event()
437 avp->noa_duration = (3 * beacon_int / 2) + in ath_chanctx_event()
440 avp->noa_duration = in ath_chanctx_event()
446 avp->periodic_noa = false; in ath_chanctx_event()
448 avp->periodic_noa = true; in ath_chanctx_event()
452 avp->noa_duration, in ath_chanctx_event()
453 avp->noa_start, in ath_chanctx_event()
454 avp->noa_index, in ath_chanctx_event()
455 avp->periodic_noa); in ath_chanctx_event()
515 avp->chanctx != sc->cur_chan) in ath_chanctx_event()
915 ath_chanctx_send_vif_ps_frame(struct ath_softc *sc, struct ath_vif *avp, in ath_chanctx_send_vif_ps_frame() argument
918 struct ieee80211_vif *vif = avp->vif; in ath_chanctx_send_vif_ps_frame()
927 if (!avp->assoc) in ath_chanctx_send_vif_ps_frame()
964 struct ath_vif *avp; in ath_chanctx_send_ps_frame() local
968 list_for_each_entry(avp, &sc->cur_chan->vifs, list) { in ath_chanctx_send_ps_frame()
969 if (ath_chanctx_send_vif_ps_frame(sc, avp, powersave)) in ath_chanctx_send_ps_frame()
1237 static void ath9k_update_p2p_ps_timer(struct ath_softc *sc, struct ath_vif *avp) in ath9k_update_p2p_ps_timer() argument
1242 if (!avp || !avp->noa.has_next_tsf) in ath9k_update_p2p_ps_timer()
1249 target_tsf = avp->noa.next_tsf; in ath9k_update_p2p_ps_timer()
1250 if (!avp->noa.absent) in ath9k_update_p2p_ps_timer()
1261 struct ath_vif *avp = (void *)vif->drv_priv; in ath9k_update_p2p_ps() local
1270 sc->p2p_ps_vif = avp; in ath9k_update_p2p_ps()
1272 ieee80211_parse_p2p_noa(&vif->bss_conf.p2p_noa_attr, &avp->noa, tsf); in ath9k_update_p2p_ps()
1273 ath9k_update_p2p_ps_timer(sc, avp); in ath9k_update_p2p_ps()
1276 static u8 ath9k_get_ctwin(struct ath_softc *sc, struct ath_vif *avp) in ath9k_get_ctwin() argument
1290 ctwin = avp->vif->bss_conf.p2p_noa_attr.oppps_ctwindow; in ath9k_get_ctwin()
1300 void ath9k_beacon_add_noa(struct ath_softc *sc, struct ath_vif *avp, in ath9k_beacon_add_noa() argument
1317 if (!avp->offchannel_duration && !avp->noa_duration) in ath9k_beacon_add_noa()
1320 noa_desc = !!avp->offchannel_duration + !!avp->noa_duration; in ath9k_beacon_add_noa()
1331 noa->index = avp->noa_index; in ath9k_beacon_add_noa()
1332 noa->oppps_ctwindow = ath9k_get_ctwin(sc, avp); in ath9k_beacon_add_noa()
1334 if (avp->noa_duration) { in ath9k_beacon_add_noa()
1335 if (avp->periodic_noa) { in ath9k_beacon_add_noa()
1343 noa->desc[i].start_time = cpu_to_le32(avp->noa_start); in ath9k_beacon_add_noa()
1344 noa->desc[i].duration = cpu_to_le32(avp->noa_duration); in ath9k_beacon_add_noa()
1348 if (avp->offchannel_duration) { in ath9k_beacon_add_noa()
1350 noa->desc[i].start_time = cpu_to_le32(avp->offchannel_start); in ath9k_beacon_add_noa()
1351 noa->desc[i].duration = cpu_to_le32(avp->offchannel_duration); in ath9k_beacon_add_noa()
1358 struct ath_vif *avp = sc->p2p_ps_vif; in ath9k_p2p_ps_timer() local
1368 if (!avp || avp->chanctx != sc->cur_chan) in ath9k_p2p_ps_timer()
1372 if (!avp->noa.absent) in ath9k_p2p_ps_timer()
1375 if (!avp->noa.has_next_tsf || in ath9k_p2p_ps_timer()
1376 avp->noa.next_tsf - tsf > BIT(31)) in ath9k_p2p_ps_timer()
1377 ieee80211_update_p2p_noa(&avp->noa, tsf); in ath9k_p2p_ps_timer()
1379 ath9k_update_p2p_ps_timer(sc, avp); in ath9k_p2p_ps_timer()
1383 vif = avp->vif; in ath9k_p2p_ps_timer()
1384 sta = ieee80211_find_sta(vif, avp->bssid); in ath9k_p2p_ps_timer()
1389 if (an->sleeping == !!avp->noa.absent) in ath9k_p2p_ps_timer()
1392 an->sleeping = avp->noa.absent; in ath9k_p2p_ps_timer()
1424 struct ath_vif *avp = (void *)vif->drv_priv; in ath9k_p2p_remove_vif() local
1427 if (avp == sc->p2p_ps_vif) { in ath9k_p2p_remove_vif()