Lines Matching refs:tf

573 	struct ieee80211_tdls_data *tf;  in ieee80211_tdls_add_chan_switch_req_ies()  local
580 tf = (void *)skb->data; in ieee80211_tdls_add_chan_switch_req_ies()
581 tf->u.chan_switch_req.target_channel = in ieee80211_tdls_add_chan_switch_req_ies()
583 tf->u.chan_switch_req.oper_class = oper_class; in ieee80211_tdls_add_chan_switch_req_ies()
676 struct ieee80211_tdls_data *tf; in ieee80211_prep_tdls_encap_data() local
678 tf = (void *)skb_put(skb, offsetof(struct ieee80211_tdls_data, u)); in ieee80211_prep_tdls_encap_data()
680 memcpy(tf->da, peer, ETH_ALEN); in ieee80211_prep_tdls_encap_data()
681 memcpy(tf->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_prep_tdls_encap_data()
682 tf->ether_type = cpu_to_be16(ETH_P_TDLS); in ieee80211_prep_tdls_encap_data()
683 tf->payload_type = WLAN_TDLS_SNAP_RFTYPE; in ieee80211_prep_tdls_encap_data()
690 tf->category = WLAN_CATEGORY_TDLS; in ieee80211_prep_tdls_encap_data()
691 tf->action_code = WLAN_TDLS_SETUP_REQUEST; in ieee80211_prep_tdls_encap_data()
693 skb_put(skb, sizeof(tf->u.setup_req)); in ieee80211_prep_tdls_encap_data()
694 tf->u.setup_req.dialog_token = dialog_token; in ieee80211_prep_tdls_encap_data()
695 tf->u.setup_req.capability = in ieee80211_prep_tdls_encap_data()
700 tf->category = WLAN_CATEGORY_TDLS; in ieee80211_prep_tdls_encap_data()
701 tf->action_code = WLAN_TDLS_SETUP_RESPONSE; in ieee80211_prep_tdls_encap_data()
703 skb_put(skb, sizeof(tf->u.setup_resp)); in ieee80211_prep_tdls_encap_data()
704 tf->u.setup_resp.status_code = cpu_to_le16(status_code); in ieee80211_prep_tdls_encap_data()
705 tf->u.setup_resp.dialog_token = dialog_token; in ieee80211_prep_tdls_encap_data()
706 tf->u.setup_resp.capability = in ieee80211_prep_tdls_encap_data()
711 tf->category = WLAN_CATEGORY_TDLS; in ieee80211_prep_tdls_encap_data()
712 tf->action_code = WLAN_TDLS_SETUP_CONFIRM; in ieee80211_prep_tdls_encap_data()
714 skb_put(skb, sizeof(tf->u.setup_cfm)); in ieee80211_prep_tdls_encap_data()
715 tf->u.setup_cfm.status_code = cpu_to_le16(status_code); in ieee80211_prep_tdls_encap_data()
716 tf->u.setup_cfm.dialog_token = dialog_token; in ieee80211_prep_tdls_encap_data()
719 tf->category = WLAN_CATEGORY_TDLS; in ieee80211_prep_tdls_encap_data()
720 tf->action_code = WLAN_TDLS_TEARDOWN; in ieee80211_prep_tdls_encap_data()
722 skb_put(skb, sizeof(tf->u.teardown)); in ieee80211_prep_tdls_encap_data()
723 tf->u.teardown.reason_code = cpu_to_le16(status_code); in ieee80211_prep_tdls_encap_data()
726 tf->category = WLAN_CATEGORY_TDLS; in ieee80211_prep_tdls_encap_data()
727 tf->action_code = WLAN_TDLS_DISCOVERY_REQUEST; in ieee80211_prep_tdls_encap_data()
729 skb_put(skb, sizeof(tf->u.discover_req)); in ieee80211_prep_tdls_encap_data()
730 tf->u.discover_req.dialog_token = dialog_token; in ieee80211_prep_tdls_encap_data()
733 tf->category = WLAN_CATEGORY_TDLS; in ieee80211_prep_tdls_encap_data()
734 tf->action_code = WLAN_TDLS_CHANNEL_SWITCH_REQUEST; in ieee80211_prep_tdls_encap_data()
736 skb_put(skb, sizeof(tf->u.chan_switch_req)); in ieee80211_prep_tdls_encap_data()
739 tf->category = WLAN_CATEGORY_TDLS; in ieee80211_prep_tdls_encap_data()
740 tf->action_code = WLAN_TDLS_CHANNEL_SWITCH_RESPONSE; in ieee80211_prep_tdls_encap_data()
742 skb_put(skb, sizeof(tf->u.chan_switch_resp)); in ieee80211_prep_tdls_encap_data()
743 tf->u.chan_switch_resp.status_code = cpu_to_le16(status_code); in ieee80211_prep_tdls_encap_data()
1275 struct ieee80211_tdls_data *tf; in ieee80211_tdls_find_sw_timing_ie() local
1283 tf = container_of(skb->data + skb_network_offset(skb), in ieee80211_tdls_find_sw_timing_ie()
1285 ie_start = tf->u.chan_switch_req.variable; in ieee80211_tdls_find_sw_timing_ie()
1487 struct ieee80211_tdls_data *tf = (void *)skb->data; in ieee80211_process_tdls_channel_switch_resp() local
1490 int baselen = offsetof(typeof(*tf), u.chan_switch_resp.variable); in ieee80211_process_tdls_channel_switch_resp()
1504 sta = sta_info_get(sdata, tf->sa); in ieee80211_process_tdls_channel_switch_resp()
1507 tf->sa); in ieee80211_process_tdls_channel_switch_resp()
1513 params.status = le16_to_cpu(tf->u.chan_switch_resp.status_code); in ieee80211_process_tdls_channel_switch_resp()
1519 ieee802_11_parse_elems(tf->u.chan_switch_resp.variable, in ieee80211_process_tdls_channel_switch_resp()
1557 tf->sa, params.status); in ieee80211_process_tdls_channel_switch_resp()
1579 struct ieee80211_tdls_data *tf = (void *)skb->data; in ieee80211_process_tdls_channel_switch_req() local
1581 int baselen = offsetof(typeof(*tf), u.chan_switch_req.variable); in ieee80211_process_tdls_channel_switch_req()
1594 target_channel = tf->u.chan_switch_req.target_channel; in ieee80211_process_tdls_channel_switch_req()
1595 oper_class = tf->u.chan_switch_req.oper_class; in ieee80211_process_tdls_channel_switch_req()
1630 ieee802_11_parse_elems(tf->u.chan_switch_req.variable, in ieee80211_process_tdls_channel_switch_req()
1643 sta = sta_info_get(sdata, tf->sa); in ieee80211_process_tdls_channel_switch_req()
1646 tf->sa); in ieee80211_process_tdls_channel_switch_req()
1698 tf->sa, params.chandef->chan->center_freq, in ieee80211_process_tdls_channel_switch_req()
1709 struct ieee80211_tdls_data *tf = (void *)skb->data; in ieee80211_process_tdls_channel_switch() local
1723 switch (tf->action_code) { in ieee80211_process_tdls_channel_switch()