Home
last modified time | relevance | path

Searched refs:bcn (Results 1 – 25 of 32) sorted by relevance

12

/openbmc/linux/net/mac80211/
H A Dmesh.c967 struct beacon_data *bcn; in ieee80211_mesh_build_beacon() local
1017 bcn = kzalloc(sizeof(*bcn) + head_len + tail_len, GFP_KERNEL); in ieee80211_mesh_build_beacon()
1021 if (!bcn || !skb) in ieee80211_mesh_build_beacon()
1028 bcn->head = ((u8 *) bcn) + sizeof(*bcn); in ieee80211_mesh_build_beacon()
1061 bcn->cntdwn_current_counter = csa->settings.count; in ieee80211_mesh_build_beacon()
1062 bcn->cntdwn_counter_offsets[0] = hdr_len + 6; in ieee80211_mesh_build_beacon()
1116 bcn->head_len = skb->len; in ieee80211_mesh_build_beacon()
1117 memcpy(bcn->head, skb->data, bcn->head_len); in ieee80211_mesh_build_beacon()
1121 bcn->tail = bcn->head + bcn->head_len; in ieee80211_mesh_build_beacon()
1140 bcn->tail_len = skb->len; in ieee80211_mesh_build_beacon()
[all …]
H A Dtx.c5337 ema = kzalloc(struct_size(ema, bcn, beacon->mbssid_ies->cnt), in ieee80211_beacon_get_ap_ema_list()
5343 ema->bcn[ema->cnt].skb = in ieee80211_beacon_get_ap_ema_list()
5345 &ema->bcn[ema->cnt].offs, in ieee80211_beacon_get_ap_ema_list()
5348 if (!ema->bcn[ema->cnt].skb) in ieee80211_beacon_get_ap_ema_list()
5531 kfree_skb(ema_beacons->bcn[i].skb); in ieee80211_beacon_free_ema_list()
5557 struct sk_buff *bcn = __ieee80211_beacon_get(hw, vif, &offs, false, in ieee80211_beacon_get_tim() local
5564 if (!bcn) in ieee80211_beacon_get_tim()
5565 return bcn; in ieee80211_beacon_get_tim()
5575 return bcn; in ieee80211_beacon_get_tim()
5578 copy = skb_copy(bcn, GFP_ATOMIC); in ieee80211_beacon_get_tim()
[all …]
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7915/
H A Dmcu.c1782 struct sk_buff *skb, struct bss_info_bcn *bcn, in mt7915_mcu_beacon_cntdwn() argument
1794 &bcn->sub_ntlv, &bcn->len); in mt7915_mcu_beacon_cntdwn()
1801 struct ieee80211_vif *vif, struct bss_info_bcn *bcn, in mt7915_mcu_beacon_mbss() argument
1812 sizeof(*mbss), &bcn->sub_ntlv, in mt7915_mcu_beacon_mbss()
1813 &bcn->len); in mt7915_mcu_beacon_mbss()
1857 struct bss_info_bcn *bcn, in mt7915_mcu_beacon_cont() argument
1868 len, &bcn->sub_ntlv, &bcn->len); in mt7915_mcu_beacon_cont()
1901 struct bss_info_bcn *bcn; in mt7915_mcu_add_inband_discov() local
1918 tlv = mt76_connac_mcu_add_tlv(rskb, BSS_INFO_OFFLOAD, sizeof(*bcn)); in mt7915_mcu_add_inband_discov()
1919 bcn = (struct bss_info_bcn *)tlv; in mt7915_mcu_add_inband_discov()
[all …]
/openbmc/linux/drivers/net/wireless/ath/ath10k/
H A Dwmi.c1864 struct sk_buff *bcn; in ath10k_wmi_tx_beacon_nowait() local
1871 bcn = arvif->beacon; in ath10k_wmi_tx_beacon_nowait()
1873 if (!bcn) in ath10k_wmi_tx_beacon_nowait()
1876 cb = ATH10K_SKB_CB(bcn); in ath10k_wmi_tx_beacon_nowait()
1890 bcn->data, bcn->len, in ath10k_wmi_tx_beacon_nowait()
3570 struct sk_buff *bcn, in ath10k_wmi_update_tim() argument
3573 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)bcn->data; in ath10k_wmi_update_tim()
3614 ies = bcn->data; in ath10k_wmi_update_tim()
3619 (u8 *)skb_tail_pointer(bcn) - ies); in ath10k_wmi_update_tim()
3632 int move_size = skb_tail_pointer(bcn) - (ie + 2 + ie_len); in ath10k_wmi_update_tim()
[all …]
H A Dwmi-ops.h123 const void *bcn, size_t bcn_len,
164 u32 tim_ie_offset, struct sk_buff *bcn,
168 struct sk_buff *bcn);
1029 const void *bcn, size_t bcn_len, in ath10k_wmi_beacon_send_ref_nowait() argument
1039 skb = ar->wmi.ops->gen_beacon_dma(ar, vdev_id, bcn, bcn_len, bcn_paddr, in ath10k_wmi_beacon_send_ref_nowait()
1275 struct sk_buff *bcn, u32 prb_caps, u32 prb_erp, in ath10k_wmi_bcn_tmpl() argument
1283 skb = ar->wmi.ops->gen_bcn_tmpl(ar, vdev_id, tim_ie_offset, bcn, in ath10k_wmi_bcn_tmpl()
H A Dwmi-tlv.c2912 const void *bcn, size_t bcn_len, in ath10k_wmi_tlv_op_gen_beacon_dma() argument
2927 hdr = (struct ieee80211_hdr *)bcn; in ath10k_wmi_tlv_op_gen_beacon_dma()
3315 u32 tim_ie_offset, struct sk_buff *bcn, in ath10k_wmi_tlv_op_gen_bcn_tmpl() argument
3331 sizeof(*tlv) + roundup(bcn->len, 4); in ath10k_wmi_tlv_op_gen_bcn_tmpl()
3343 cmd->buf_len = __cpu_to_le32(bcn->len); in ath10k_wmi_tlv_op_gen_bcn_tmpl()
3367 tlv->len = __cpu_to_le16(roundup(bcn->len, 4)); in ath10k_wmi_tlv_op_gen_bcn_tmpl()
3368 memcpy(tlv->value, bcn->data, bcn->len); in ath10k_wmi_tlv_op_gen_bcn_tmpl()
H A Dmac.c1567 struct sk_buff *bcn) in ath10k_mac_setup_bcn_p2p_ie() argument
1577 mgmt = (void *)bcn->data; in ath10k_mac_setup_bcn_p2p_ie()
1580 bcn->len - (mgmt->u.beacon.variable - in ath10k_mac_setup_bcn_p2p_ie()
1581 bcn->data)); in ath10k_mac_setup_bcn_p2p_ie()
1631 struct sk_buff *bcn; in ath10k_mac_setup_bcn_tmpl() local
1641 bcn = ieee80211_beacon_get_template(hw, vif, &offs, 0); in ath10k_mac_setup_bcn_tmpl()
1642 if (!bcn) { in ath10k_mac_setup_bcn_tmpl()
1647 ret = ath10k_mac_setup_bcn_p2p_ie(arvif, bcn); in ath10k_mac_setup_bcn_tmpl()
1650 kfree_skb(bcn); in ath10k_mac_setup_bcn_tmpl()
1658 ath10k_mac_remove_vendor_ie(bcn, WLAN_OUI_WFA, WLAN_OUI_TYPE_WFA_P2P, in ath10k_mac_setup_bcn_tmpl()
[all …]
/openbmc/linux/drivers/net/wireless/ralink/rt2x00/
H A Drt2x00mac.c208 struct data_queue *queue = rt2x00dev->bcn; in rt2x00mac_add_interface()
621 rt2x00queue_stop_queue(rt2x00dev->bcn); in rt2x00mac_bss_info_changed()
644 rt2x00queue_start_queue(rt2x00dev->bcn); in rt2x00mac_bss_info_changed()
H A Drt2x00queue.c1179 status = rt2x00queue_alloc_entries(rt2x00dev->bcn); in rt2x00queue_initialize()
1259 rt2x00dev->bcn = &queue[1 + rt2x00dev->ops->tx_queues]; in rt2x00queue_allocate()
1277 rt2x00queue_init(rt2x00dev, rt2x00dev->bcn, QID_BEACON); in rt2x00queue_allocate()
1289 rt2x00dev->bcn = NULL; in rt2x00queue_free()
H A Drt2x00dev.c104 rt2x00queue_stop_queue(rt2x00dev->bcn); in rt2x00lib_disable_radio()
1451 if (rt2x00dev->bcn->limit > 0) in rt2x00lib_probe_dev()
H A Drt2x00.h973 struct data_queue *bcn; member
H A Drt2500pci.c286 struct data_queue *queue = rt2x00dev->bcn; in rt2500pci_config_intf()
875 entry_priv = rt2x00dev->bcn->entries[0].priv_data; in rt2500pci_init_queues()
H A Drt2400pci.c790 entry_priv = rt2x00dev->bcn->entries[0].priv_data; in rt2400pci_init_queues()
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7996/
H A Dmcu.c2016 struct bss_bcn_content_tlv *bcn, in mt7996_mcu_beacon_cont() argument
2022 bcn->pkt_len = cpu_to_le16(MT_TXD_SIZE + skb->len); in mt7996_mcu_beacon_cont()
2023 bcn->tim_ie_pos = cpu_to_le16(offs->tim_offset); in mt7996_mcu_beacon_cont()
2029 bcn->csa_ie_pos = cpu_to_le16(offset - 4); in mt7996_mcu_beacon_cont()
2031 bcn->bcc_ie_pos = cpu_to_le16(offset - 3); in mt7996_mcu_beacon_cont()
2034 buf = (u8 *)bcn + sizeof(*bcn); in mt7996_mcu_beacon_cont()
2051 struct bss_bcn_content_tlv *bcn; in mt7996_mcu_add_beacon() local
2075 len = ALIGN(sizeof(*bcn) + MT_TXD_SIZE + skb->len, 4); in mt7996_mcu_add_beacon()
2077 bcn = (struct bss_bcn_content_tlv *)tlv; in mt7996_mcu_add_beacon()
2078 bcn->enable = en; in mt7996_mcu_add_beacon()
[all …]
/openbmc/linux/drivers/net/wireless/ath/ath11k/
H A Dmac.c1377 struct sk_buff *bcn) in ath11k_mac_set_nontx_vif_params() argument
1383 ies = bcn->data + ieee80211_get_hdrlen_from_skb(bcn); in ath11k_mac_set_nontx_vif_params()
1384 mgmt = (struct ieee80211_mgmt *)bcn->data; in ath11k_mac_set_nontx_vif_params()
1386 ies_len = skb_tail_pointer(bcn) - ies; in ath11k_mac_set_nontx_vif_params()
1429 struct sk_buff *bcn) in ath11k_mac_set_vif_params() argument
1434 ies = bcn->data + ieee80211_get_hdrlen_from_skb(bcn); in ath11k_mac_set_vif_params()
1435 mgmt = (struct ieee80211_mgmt *)bcn->data; in ath11k_mac_set_vif_params()
1438 if (cfg80211_find_ie(WLAN_EID_RSN, ies, (skb_tail_pointer(bcn) - ies))) in ath11k_mac_set_vif_params()
1445 ies, (skb_tail_pointer(bcn) - ies))) in ath11k_mac_set_vif_params()
1471 ath11k_mac_set_vif_params(tx_arvif, beacons->bcn[0].skb); in ath11k_mac_setup_bcn_tmpl_ema()
[all …]
H A Ddebugfs.c148 if (list_empty(&stats->bcn)) { in ath11k_debugfs_fw_stats_process()
157 list_splice_tail_init(&stats->bcn, in ath11k_debugfs_fw_stats_process()
158 &ar->fw_stats.bcn); in ath11k_debugfs_fw_stats_process()
431 ath11k_fw_stats_bcn_free(&ar->fw_stats.bcn); in ath11k_open_bcn_stats()
H A Dwmi.c1709 struct sk_buff *bcn, u32 ema_params) in ath11k_wmi_bcn_tmpl() argument
1718 size_t aligned_len = roundup(bcn->len, 4); in ath11k_wmi_bcn_tmpl()
1746 cmd->buf_len = bcn->len; in ath11k_wmi_bcn_tmpl()
1765 memcpy(tlv->value, bcn->data, bcn->len); in ath11k_wmi_bcn_tmpl()
6586 list_add_tail(&dst->list, &stats->bcn); in ath11k_wmi_tlv_fw_stats_data_parse()
6893 const struct ath11k_fw_stats_bcn *bcn, in ath11k_wmi_fw_bcn_stats_fill() argument
6898 struct ath11k_vif *arvif = ath11k_mac_get_arvif(ar, bcn->vdev_id); in ath11k_wmi_fw_bcn_stats_fill()
6903 bcn->vdev_id); in ath11k_wmi_fw_bcn_stats_fill()
6910 "VDEV ID", bcn->vdev_id); in ath11k_wmi_fw_bcn_stats_fill()
6916 "Num of beacon tx success", bcn->tx_bcn_succ_cnt); in ath11k_wmi_fw_bcn_stats_fill()
[all …]
H A Dcore.c748 INIT_LIST_HEAD(&ar->fw_stats.bcn); in ath11k_fw_stats_init()
757 ath11k_fw_stats_bcn_free(&stats->bcn); in ath11k_fw_stats_free()
H A Dcore.h552 struct list_head bcn; member
/openbmc/linux/net/wireless/
H A Dnl80211.c5538 struct cfg80211_beacon_data *bcn, in nl80211_parse_beacon() argument
5544 memset(bcn, 0, sizeof(*bcn)); in nl80211_parse_beacon()
5546 bcn->link_id = nl80211_link_id(attrs); in nl80211_parse_beacon()
5549 bcn->head = nla_data(attrs[NL80211_ATTR_BEACON_HEAD]); in nl80211_parse_beacon()
5550 bcn->head_len = nla_len(attrs[NL80211_ATTR_BEACON_HEAD]); in nl80211_parse_beacon()
5551 if (!bcn->head_len) in nl80211_parse_beacon()
5557 bcn->tail = nla_data(attrs[NL80211_ATTR_BEACON_TAIL]); in nl80211_parse_beacon()
5558 bcn->tail_len = nla_len(attrs[NL80211_ATTR_BEACON_TAIL]); in nl80211_parse_beacon()
5566 bcn->beacon_ies = nla_data(attrs[NL80211_ATTR_IE]); in nl80211_parse_beacon()
5567 bcn->beacon_ies_len = nla_len(attrs[NL80211_ATTR_IE]); in nl80211_parse_beacon()
[all …]
/openbmc/linux/drivers/net/wireless/ath/ath12k/
H A Dcore.h427 struct list_head bcn; member
H A Dmac.c1130 struct sk_buff *bcn; in ath12k_mac_setup_bcn_tmpl() local
1138 bcn = ieee80211_beacon_get_template(hw, vif, &offs, 0); in ath12k_mac_setup_bcn_tmpl()
1139 if (!bcn) { in ath12k_mac_setup_bcn_tmpl()
1144 ies = bcn->data + ieee80211_get_hdrlen_from_skb(bcn); in ath12k_mac_setup_bcn_tmpl()
1147 if (cfg80211_find_ie(WLAN_EID_RSN, ies, (skb_tail_pointer(bcn) - ies))) in ath12k_mac_setup_bcn_tmpl()
1152 ies, (skb_tail_pointer(bcn) - ies))) in ath12k_mac_setup_bcn_tmpl()
1155 ret = ath12k_wmi_bcn_tmpl(ar, arvif->vdev_id, &offs, bcn); in ath12k_mac_setup_bcn_tmpl()
1157 kfree_skb(bcn); in ath12k_mac_setup_bcn_tmpl()
H A Dwmi.c1714 struct sk_buff *bcn) in ath12k_wmi_bcn_tmpl() argument
1723 size_t aligned_len = roundup(bcn->len, 4); in ath12k_wmi_bcn_tmpl()
1738 cmd->buf_len = cpu_to_le32(bcn->len); in ath12k_wmi_bcn_tmpl()
1753 memcpy(tlv->value, bcn->data, bcn->len); in ath12k_wmi_bcn_tmpl()
/openbmc/linux/drivers/net/wireless/broadcom/b43legacy/
H A Dmain.c944 const struct ieee80211_mgmt *bcn; in b43legacy_write_beacon_template() local
952 bcn = (const struct ieee80211_mgmt *)(dev->wl->current_beacon->data); in b43legacy_write_beacon_template()
957 b43legacy_write_template_common(dev, (const u8 *)bcn, len, ram_offset, in b43legacy_write_beacon_template()
976 ie = bcn->u.beacon.variable; in b43legacy_write_beacon_template()
/openbmc/linux/drivers/net/wireless/broadcom/b43/
H A Dmain.c1610 const struct ieee80211_mgmt *bcn; in b43_write_beacon_template() local
1633 bcn = (const struct ieee80211_mgmt *)(beacon_skb->data); in b43_write_beacon_template()
1637 b43_write_template_common(dev, (const u8 *)bcn, in b43_write_beacon_template()
1657 ie = bcn->u.beacon.variable; in b43_write_beacon_template()

12