Lines Matching defs:vif

23 	if (!ctx->vif) {
26 switch (ctx->vif->type) {
49 ctx->vif->type);
66 iwl_set_flags_for_band(priv, ctx, priv->band, ctx->vif);
71 if (ctx->vif)
72 memcpy(ctx->staging.node_addr, ctx->vif->addr, ETH_ALEN);
181 struct ieee80211_vif *vif)
186 priv->beacon_skb = ieee80211_beacon_get(priv->hw, vif, 0);
279 struct ieee80211_vif *vif = ctx->vif;
290 beacon_int = vif ? vif->bss_conf.beacon_int : 0;
299 (!ctx->vif || ctx->vif->type != NL80211_IFTYPE_STATION) &&
301 priv->contexts[IWL_RXON_CTX_BSS].vif &&
302 priv->contexts[IWL_RXON_CTX_BSS].vif->bss_conf.beacon_int) {
308 priv->contexts[IWL_RXON_CTX_PAN].vif &&
309 priv->contexts[IWL_RXON_CTX_PAN].vif->bss_conf.beacon_int &&
310 (!iwl_is_associated_ctx(ctx) || !ctx->vif ||
311 !ctx->vif->bss_conf.beacon_int)) {
328 ctx->timing.dtim_period = vif ? (vif->bss_conf.dtim_period ?: 1) : 1;
352 if (ctx->vif) {
462 if (ctx->vif && (ctx->vif->type == NL80211_IFTYPE_AP)) {
463 ret = iwlagn_update_beacon(priv, ctx->vif);
488 if (ctx->vif && (ctx->vif->type == NL80211_IFTYPE_ADHOC))
489 if (iwlagn_update_beacon(priv, ctx->vif))
543 if (ctx_bss->vif && ctx_pan->vif) {
545 int dtim = ctx_pan->vif->bss_conf.dtim_period ?: 1;
550 if (ctx_pan->vif->type == NL80211_IFTYPE_AP &&
565 (!ctx_bss->vif->cfg.idle &&
566 !ctx_bss->vif->cfg.assoc)) {
569 } else if (!ctx_pan->vif->cfg.idle &&
570 !ctx_pan->vif->cfg.assoc) {
574 } else if (ctx_pan->vif) {
576 slot1 = max_t(int, 1, ctx_pan->vif->bss_conf.dtim_period) *
719 struct ieee80211_vif *vif)
728 if (vif && vif->bss_conf.use_short_slot)
922 if (ctx->vif) {
924 unsigned long basic = ctx->vif->bss_conf.basic_rates;
1054 if ((ctx->vif && ctx->vif->bss_conf.use_short_slot) ||
1222 ctx->vif);
1258 struct ieee80211_vif *vif = ctx->vif;
1267 switch (vif->type) {
1270 sta = ieee80211_find_sta(vif, bss_conf->bssid);
1336 if (!tmp->vif)
1384 struct ieee80211_vif *vif,
1389 struct iwl_rxon_context *ctx = iwl_rxon_ctx_from_vif(vif);
1395 if (changes & BSS_CHANGED_IDLE && vif->cfg.idle) {
1409 if (unlikely(!ctx->vif)) {
1410 IWL_DEBUG_MAC80211(priv, "leave - vif is NULL\n");
1423 ctx->staging.assoc_id = cpu_to_le16(vif->cfg.aid);
1424 if (vif->bss_conf.use_short_preamble)
1430 if (vif->cfg.assoc) {
1466 if (vif->type == NL80211_IFTYPE_AP ||
1467 vif->type == NL80211_IFTYPE_ADHOC) {
1468 if (vif->bss_conf.enable_beacon) {
1485 if (vif->type == NL80211_IFTYPE_STATION) {
1486 if (!vif->cfg.assoc)
1496 if (changes & BSS_CHANGED_ASSOC && vif->cfg.assoc) {
1511 ret = iwlagn_manage_ibss_station(priv, vif,
1512 vif->cfg.ibss_joined);
1515 vif->cfg.ibss_joined ? "add" : "remove",
1520 if (iwlagn_update_beacon(priv, vif))