Lines Matching refs:tf
439 struct ieee80211_tdls_data *tf; in mwifiex_prep_tdls_encap_data() local
447 tf = (void *)skb_put(skb, offsetof(struct ieee80211_tdls_data, u)); in mwifiex_prep_tdls_encap_data()
448 memcpy(tf->da, peer, ETH_ALEN); in mwifiex_prep_tdls_encap_data()
449 memcpy(tf->sa, priv->curr_addr, ETH_ALEN); in mwifiex_prep_tdls_encap_data()
450 tf->ether_type = cpu_to_be16(ETH_P_TDLS); in mwifiex_prep_tdls_encap_data()
451 tf->payload_type = WLAN_TDLS_SNAP_RFTYPE; in mwifiex_prep_tdls_encap_data()
455 tf->category = WLAN_CATEGORY_TDLS; in mwifiex_prep_tdls_encap_data()
456 tf->action_code = WLAN_TDLS_SETUP_REQUEST; in mwifiex_prep_tdls_encap_data()
457 skb_put(skb, sizeof(tf->u.setup_req)); in mwifiex_prep_tdls_encap_data()
458 tf->u.setup_req.dialog_token = dialog_token; in mwifiex_prep_tdls_encap_data()
459 tf->u.setup_req.capability = cpu_to_le16(capab); in mwifiex_prep_tdls_encap_data()
492 tf->category = WLAN_CATEGORY_TDLS; in mwifiex_prep_tdls_encap_data()
493 tf->action_code = WLAN_TDLS_SETUP_RESPONSE; in mwifiex_prep_tdls_encap_data()
494 skb_put(skb, sizeof(tf->u.setup_resp)); in mwifiex_prep_tdls_encap_data()
495 tf->u.setup_resp.status_code = cpu_to_le16(status_code); in mwifiex_prep_tdls_encap_data()
496 tf->u.setup_resp.dialog_token = dialog_token; in mwifiex_prep_tdls_encap_data()
497 tf->u.setup_resp.capability = cpu_to_le16(capab); in mwifiex_prep_tdls_encap_data()
530 tf->category = WLAN_CATEGORY_TDLS; in mwifiex_prep_tdls_encap_data()
531 tf->action_code = WLAN_TDLS_SETUP_CONFIRM; in mwifiex_prep_tdls_encap_data()
532 skb_put(skb, sizeof(tf->u.setup_cfm)); in mwifiex_prep_tdls_encap_data()
533 tf->u.setup_cfm.status_code = cpu_to_le16(status_code); in mwifiex_prep_tdls_encap_data()
534 tf->u.setup_cfm.dialog_token = dialog_token; in mwifiex_prep_tdls_encap_data()
558 tf->category = WLAN_CATEGORY_TDLS; in mwifiex_prep_tdls_encap_data()
559 tf->action_code = WLAN_TDLS_TEARDOWN; in mwifiex_prep_tdls_encap_data()
560 skb_put(skb, sizeof(tf->u.teardown)); in mwifiex_prep_tdls_encap_data()
561 tf->u.teardown.reason_code = cpu_to_le16(status_code); in mwifiex_prep_tdls_encap_data()
565 tf->category = WLAN_CATEGORY_TDLS; in mwifiex_prep_tdls_encap_data()
566 tf->action_code = WLAN_TDLS_DISCOVERY_REQUEST; in mwifiex_prep_tdls_encap_data()
567 skb_put(skb, sizeof(tf->u.discover_req)); in mwifiex_prep_tdls_encap_data()
568 tf->u.discover_req.dialog_token = dialog_token; in mwifiex_prep_tdls_encap_data()