Lines Matching refs:tf

650 	struct ieee80211_tdls_data *tf;  in ieee80211_tdls_add_chan_switch_req_ies()  local
656 tf = (void *)skb->data; in ieee80211_tdls_add_chan_switch_req_ies()
657 tf->u.chan_switch_req.target_channel = in ieee80211_tdls_add_chan_switch_req_ies()
659 tf->u.chan_switch_req.oper_class = oper_class; in ieee80211_tdls_add_chan_switch_req_ies()
749 struct ieee80211_tdls_data *tf; in ieee80211_prep_tdls_encap_data() local
751 tf = skb_put(skb, offsetof(struct ieee80211_tdls_data, u)); in ieee80211_prep_tdls_encap_data()
753 memcpy(tf->da, peer, ETH_ALEN); in ieee80211_prep_tdls_encap_data()
754 memcpy(tf->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_prep_tdls_encap_data()
755 tf->ether_type = cpu_to_be16(ETH_P_TDLS); in ieee80211_prep_tdls_encap_data()
756 tf->payload_type = WLAN_TDLS_SNAP_RFTYPE; in ieee80211_prep_tdls_encap_data()
763 tf->category = WLAN_CATEGORY_TDLS; in ieee80211_prep_tdls_encap_data()
764 tf->action_code = WLAN_TDLS_SETUP_REQUEST; in ieee80211_prep_tdls_encap_data()
766 skb_put(skb, sizeof(tf->u.setup_req)); in ieee80211_prep_tdls_encap_data()
767 tf->u.setup_req.dialog_token = dialog_token; in ieee80211_prep_tdls_encap_data()
768 tf->u.setup_req.capability = in ieee80211_prep_tdls_encap_data()
773 tf->category = WLAN_CATEGORY_TDLS; in ieee80211_prep_tdls_encap_data()
774 tf->action_code = WLAN_TDLS_SETUP_RESPONSE; in ieee80211_prep_tdls_encap_data()
776 skb_put(skb, sizeof(tf->u.setup_resp)); in ieee80211_prep_tdls_encap_data()
777 tf->u.setup_resp.status_code = cpu_to_le16(status_code); in ieee80211_prep_tdls_encap_data()
778 tf->u.setup_resp.dialog_token = dialog_token; in ieee80211_prep_tdls_encap_data()
779 tf->u.setup_resp.capability = in ieee80211_prep_tdls_encap_data()
784 tf->category = WLAN_CATEGORY_TDLS; in ieee80211_prep_tdls_encap_data()
785 tf->action_code = WLAN_TDLS_SETUP_CONFIRM; in ieee80211_prep_tdls_encap_data()
787 skb_put(skb, sizeof(tf->u.setup_cfm)); in ieee80211_prep_tdls_encap_data()
788 tf->u.setup_cfm.status_code = cpu_to_le16(status_code); in ieee80211_prep_tdls_encap_data()
789 tf->u.setup_cfm.dialog_token = dialog_token; in ieee80211_prep_tdls_encap_data()
792 tf->category = WLAN_CATEGORY_TDLS; in ieee80211_prep_tdls_encap_data()
793 tf->action_code = WLAN_TDLS_TEARDOWN; in ieee80211_prep_tdls_encap_data()
795 skb_put(skb, sizeof(tf->u.teardown)); in ieee80211_prep_tdls_encap_data()
796 tf->u.teardown.reason_code = cpu_to_le16(status_code); in ieee80211_prep_tdls_encap_data()
799 tf->category = WLAN_CATEGORY_TDLS; in ieee80211_prep_tdls_encap_data()
800 tf->action_code = WLAN_TDLS_DISCOVERY_REQUEST; in ieee80211_prep_tdls_encap_data()
802 skb_put(skb, sizeof(tf->u.discover_req)); in ieee80211_prep_tdls_encap_data()
803 tf->u.discover_req.dialog_token = dialog_token; in ieee80211_prep_tdls_encap_data()
806 tf->category = WLAN_CATEGORY_TDLS; in ieee80211_prep_tdls_encap_data()
807 tf->action_code = WLAN_TDLS_CHANNEL_SWITCH_REQUEST; in ieee80211_prep_tdls_encap_data()
809 skb_put(skb, sizeof(tf->u.chan_switch_req)); in ieee80211_prep_tdls_encap_data()
812 tf->category = WLAN_CATEGORY_TDLS; in ieee80211_prep_tdls_encap_data()
813 tf->action_code = WLAN_TDLS_CHANNEL_SWITCH_RESPONSE; in ieee80211_prep_tdls_encap_data()
815 skb_put(skb, sizeof(tf->u.chan_switch_resp)); in ieee80211_prep_tdls_encap_data()
816 tf->u.chan_switch_resp.status_code = cpu_to_le16(status_code); in ieee80211_prep_tdls_encap_data()
1475 struct ieee80211_tdls_data *tf; in ieee80211_tdls_find_sw_timing_ie() local
1483 tf = container_of(skb->data + skb_network_offset(skb), in ieee80211_tdls_find_sw_timing_ie()
1485 ie_start = tf->u.chan_switch_req.variable; in ieee80211_tdls_find_sw_timing_ie()
1691 struct ieee80211_tdls_data *tf = (void *)skb->data; in ieee80211_process_tdls_channel_switch_resp() local
1694 int baselen = offsetof(typeof(*tf), u.chan_switch_resp.variable); in ieee80211_process_tdls_channel_switch_resp()
1708 sta = sta_info_get(sdata, tf->sa); in ieee80211_process_tdls_channel_switch_resp()
1711 tf->sa); in ieee80211_process_tdls_channel_switch_resp()
1717 params.status = le16_to_cpu(tf->u.chan_switch_resp.status_code); in ieee80211_process_tdls_channel_switch_resp()
1723 elems = ieee802_11_parse_elems(tf->u.chan_switch_resp.variable, in ieee80211_process_tdls_channel_switch_resp()
1767 tf->sa, params.status); in ieee80211_process_tdls_channel_switch_resp()
1790 struct ieee80211_tdls_data *tf = (void *)skb->data; in ieee80211_process_tdls_channel_switch_req() local
1792 int baselen = offsetof(typeof(*tf), u.chan_switch_req.variable); in ieee80211_process_tdls_channel_switch_req()
1805 target_channel = tf->u.chan_switch_req.target_channel; in ieee80211_process_tdls_channel_switch_req()
1806 oper_class = tf->u.chan_switch_req.oper_class; in ieee80211_process_tdls_channel_switch_req()
1841 elems = ieee802_11_parse_elems(tf->u.chan_switch_req.variable, in ieee80211_process_tdls_channel_switch_req()
1885 sta = sta_info_get(sdata, tf->sa); in ieee80211_process_tdls_channel_switch_req()
1888 tf->sa); in ieee80211_process_tdls_channel_switch_req()
1928 tf->sa, params.chandef->chan->center_freq, in ieee80211_process_tdls_channel_switch_req()
1942 struct ieee80211_tdls_data *tf = (void *)skb->data; in ieee80211_process_tdls_channel_switch() local
1958 switch (tf->action_code) { in ieee80211_process_tdls_channel_switch()