Lines Matching refs:twt
2 * wpa_supplicant - TWT
19 * wpas_twt_send_setup - Send TWT Setup frame (Request) to our AP
24 * @min_twt: Minimum TWT wake duration in units of 256 usec
30 int mantissa, u8 min_twt, int setup_cmd, u64 twt,
41 "TWT: No connection - cannot send TWT Setup frame");
46 /* 17 = TWT element */
50 "TWT: Failed to allocate TWT Setup frame (Request)");
55 "TWT: Setup request, dtok: %d exponent: %d mantissa: %d min-twt: %d",
68 req_type |= BIT(0); /* This STA is a TWT Requesting STA */
69 /* TWT Setup Command field */
72 req_type |= BIT(4); /* TWT SP includes trigger frames */
74 req_type |= BIT(5); /* Implicit TWT */
76 req_type |= BIT(6); /* Flow Type: Unannounced TWT */
78 req_type |= (exponent & 0x1f) << 10; /* TWT Wake Interval Exponent */
82 wpabuf_put_le64(buf, twt);
83 wpabuf_put_u8(buf, min_twt); /* Nominal Minimum TWT Wake Duration */
84 wpabuf_put_le16(buf, mantissa); /* TWT Wake Interval Mantissa */
85 wpabuf_put_u8(buf, twt_channel); /* TWT Channel */
90 wpa_printf(MSG_DEBUG, "TWT: Failed to send TWT Setup Request");
100 * wpas_twt_send_teardown - Send TWT teardown request to our AP
102 * @flags: The byte that goes inside the TWT Teardown element
113 "TWT: No connection - cannot send TWT Teardown frame");
121 "TWT: Failed to allocate TWT Teardown frame");
125 wpa_printf(MSG_DEBUG, "TWT: Teardown request, flags: 0x%x", flags);
134 wpa_printf(MSG_DEBUG, "TWT: Failed to send TWT Teardown frame");