Lines Matching defs:vif

222 static void wcn36xx_smd_set_bss_ht_params(struct ieee80211_vif *vif,
235 bss_params->ht_oper_mode = vif->bss_conf.ht_operation_mode;
237 !!(vif->bss_conf.ht_operation_mode &
247 wcn36xx_smd_set_bss_vht_params(struct ieee80211_vif *vif,
356 struct ieee80211_vif *vif,
360 struct wcn36xx_vif *vif_priv = wcn36xx_vif_to_priv(vif);
362 if (vif->type == NL80211_IFTYPE_ADHOC ||
363 vif->type == NL80211_IFTYPE_AP ||
364 vif->type == NL80211_IFTYPE_MESH_POINT) {
376 * contains our mac address. In AP mode we are bssid so vif
379 if (NL80211_IFTYPE_STATION == vif->type)
380 memcpy(&sta_params->mac, vif->addr, ETH_ALEN);
382 memcpy(&sta_params->bssid, vif->addr, ETH_ALEN);
398 if (NL80211_IFTYPE_STATION == vif->type)
701 struct ieee80211_vif *vif)
703 struct wcn36xx_vif *vif_priv = wcn36xx_vif_to_priv(vif);
803 struct ieee80211_vif *vif)
805 struct wcn36xx_vif *vif_priv = wcn36xx_vif_to_priv(vif);
843 int wcn36xx_smd_start_hw_scan(struct wcn36xx *wcn, struct ieee80211_vif *vif,
846 struct wcn36xx_vif *vif_priv = wcn36xx_vif_to_priv(vif);
866 memcpy(msg_body->mac, vif->addr, ETH_ALEN);
868 msg_body->p2p_search = vif->p2p;
959 struct ieee80211_vif *vif, int ch)
970 memcpy(msg_body.self_sta_mac_addr, vif->addr, ETH_ALEN);
1016 struct ieee80211_vif *vif, void *ptt_msg, size_t len,
1115 struct ieee80211_vif *vif,
1120 struct wcn36xx_vif *vif_priv = wcn36xx_vif_to_priv(vif);
1143 int wcn36xx_smd_add_sta_self(struct wcn36xx *wcn, struct ieee80211_vif *vif)
1151 memcpy(&msg_body.self_addr, vif->addr, ETH_ALEN);
1165 vif,
1252 int wcn36xx_smd_join(struct wcn36xx *wcn, const u8 *bssid, u8 *vif, u8 ch)
1261 memcpy(&msg_body.self_sta_mac_addr, vif, ETH_ALEN);
1373 struct ieee80211_vif *vif,
1380 wcn36xx_smd_set_sta_params(wcn, vif, sta, &sta_par_v0);
1430 struct ieee80211_vif *vif,
1445 wcn36xx_smd_set_sta_params_v1(wcn, vif, sta, sta_params);
1458 struct ieee80211_vif *vif,
1468 wcn36xx_smd_set_sta_params(wcn, vif, sta, sta_params);
1481 int wcn36xx_smd_config_sta(struct wcn36xx *wcn, struct ieee80211_vif *vif,
1489 ret = wcn36xx_smd_config_sta_v1(wcn, vif, sta);
1491 ret = wcn36xx_smd_config_sta_v0(wcn, vif, sta);
1511 struct ieee80211_vif *vif,
1517 struct wcn36xx_vif *vif_priv = wcn36xx_vif_to_priv(vif);
1523 memcpy(bss->self_mac_addr, vif->addr, ETH_ALEN);
1525 if (vif->type == NL80211_IFTYPE_STATION) {
1531 } else if (vif->type == NL80211_IFTYPE_AP ||
1532 vif->type == NL80211_IFTYPE_MESH_POINT) {
1538 } else if (vif->type == NL80211_IFTYPE_ADHOC) {
1544 wcn36xx_warn("Unknown type for bss config: %d\n", vif->type);
1547 if (vif->type == NL80211_IFTYPE_STATION)
1552 bss->short_slot_time_supported = vif->bss_conf.use_short_slot;
1557 bss->beacon_interval = vif->bss_conf.beacon_int;
1560 wcn36xx_smd_set_bss_ht_params(vif, sta, bss);
1580 bss->hidden_ssid = vif->bss_conf.hidden_ssid;
1599 struct ieee80211_vif *vif,
1626 wcn36xx_smd_set_bss_params(wcn, vif, sta_80211, bssid, update, &bss_v0);
1627 wcn36xx_smd_set_sta_params_v1(wcn, vif, sta_80211, sta);
1700 wcn36xx_smd_set_bss_vht_params(vif, sta_80211, bss);
1721 struct ieee80211_vif *vif,
1740 wcn36xx_smd_set_bss_params(wcn, vif, sta, bssid, update, bss);
1741 wcn36xx_smd_set_sta_params(wcn, vif, sta, sta_params);
1764 struct ieee80211_vif *vif,
1771 struct wcn36xx_vif *vif_priv = wcn36xx_vif_to_priv(vif);
1807 int wcn36xx_smd_config_bss(struct wcn36xx *wcn, struct ieee80211_vif *vif,
1816 ret = wcn36xx_smd_config_bss_v1(wcn, vif, sta, bssid, update);
1818 ret = wcn36xx_smd_config_bss_v0(wcn, vif, sta, bssid, update);
1825 vif,
1837 int wcn36xx_smd_delete_bss(struct wcn36xx *wcn, struct ieee80211_vif *vif)
1840 struct wcn36xx_vif *vif_priv = wcn36xx_vif_to_priv(vif);
1873 int wcn36xx_smd_send_beacon(struct wcn36xx *wcn, struct ieee80211_vif *vif,
1887 if (vif->type == NL80211_IFTYPE_MESH_POINT)
1901 memcpy(msg_body.bssid, vif->addr, ETH_ALEN);
1920 if (vif->type == NL80211_IFTYPE_MESH_POINT)
1948 struct ieee80211_vif *vif,
1967 memcpy(msg.bssid, vif->addr, ETH_ALEN);
2142 int wcn36xx_smd_enter_bmps(struct wcn36xx *wcn, struct ieee80211_vif *vif)
2145 struct wcn36xx_vif *vif_priv = wcn36xx_vif_to_priv(vif);
2152 msg_body.tbtt = vif->bss_conf.sync_tsf;
2172 int wcn36xx_smd_exit_bmps(struct wcn36xx *wcn, struct ieee80211_vif *vif)
2175 struct wcn36xx_vif *vif_priv = wcn36xx_vif_to_priv(vif);
2234 struct ieee80211_vif *vif,
2238 struct wcn36xx_vif *vif_priv = wcn36xx_vif_to_priv(vif);
2601 struct ieee80211_vif *vif = NULL;
2609 vif = wcn36xx_priv_to_vif(tmp);
2610 ieee80211_beacon_loss(vif);
2624 vif = wcn36xx_priv_to_vif(tmp);
2625 ieee80211_beacon_loss(vif);
2640 struct ieee80211_vif *vif;
2656 vif = wcn36xx_priv_to_vif(vif_priv);
2658 if (vif->type == NL80211_IFTYPE_STATION) {
2662 bss_conf = &vif->bss_conf;
2669 ieee80211_connection_loss(vif);
2672 sta = ieee80211_find_sta(vif, rsp->addr2);
2746 struct ieee80211_vif *vif,
2749 struct wcn36xx_vif *vif_priv = wcn36xx_vif_to_priv(vif);