---
name: "ieee80211_ctstoself_duration"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/ieee80211_ctstoself_duration"
---

# ieee80211\_ctstoself\_duration(9)

Get the duration field for a CTS-to-self frame

## NAME

ieee80211\_ctstoself\_duration - Get the duration field for a CTS-to-self frame

## SYNOPSIS

**\_\_le16 ieee80211\_ctstoself\_duration(struct ieee80211\_hw \*** *hw***, struct ieee80211\_vif \*** *vif***, size\_t** *frame\_len***, const struct ieee80211\_tx\_info \*** *frame\_txctl***);**

## ARGUMENTS

*hw*

pointer obtained from **ieee80211\_alloc\_hw**.

*vif*

struct ieee80211\_vif pointer from the add\_interface callback.

*frame\_len*

the length of the frame that is going to be protected by the CTS-to-self.

*frame\_txctl*

struct ieee80211\_tx\_info of the frame.

## DESCRIPTION

If the CTS-to-self is generated in firmware, but the host system must provide the duration field, the low-level driver uses this function to receive the duration field value in little-endian byteorder.

## RETURN

The duration.

## AUTHOR

**Johannes Berg** \<johannes@sipsolutions.net\>

Author.

## COPYRIGHT
