'\" t .\" Title: ieee80211_generic_frame_duration .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: The basic mac80211 driver interface .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "IEEE80211_GENERIC_FR" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "The basic mac80211 driver inte" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" ieee80211_generic_frame_duration \- Calculate the duration field for a frame .SH "SYNOPSIS" .HP \w'__le16\ ieee80211_generic_frame_duration('u .BI "__le16 ieee80211_generic_frame_duration(struct\ ieee80211_hw\ *\ " "hw" ", struct\ ieee80211_vif\ *\ " "vif" ", enum\ nl80211_band\ " "band" ", size_t\ " "frame_len" ", struct\ ieee80211_rate\ *\ " "rate" ");" .SH "ARGUMENTS" .PP \fIhw\fR .RS 4 pointer obtained from \fBieee80211_alloc_hw\fR\&. .RE .PP \fIvif\fR .RS 4 struct ieee80211_vif pointer from the add_interface callback\&. .RE .PP \fIband\fR .RS 4 the band to calculate the frame duration on .RE .PP \fIframe_len\fR .RS 4 the length of the frame\&. .RE .PP \fIrate\fR .RS 4 the rate at which the frame is going to be transmitted\&. .RE .SH "DESCRIPTION" .PP Calculate the duration field of some generic frame, given its length and transmission rate (in 100kbps)\&. .SH "RETURN" .PP The duration\&. .SH "AUTHOR" .PP \fBJohannes Berg\fR <\&johannes@sipsolutions.net\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br