1IEEE80211_GENERIC_FR(9) The basic mac80211 driver inte IEEE80211_GENERIC_FR(9)
2
3
4

NAME

6       ieee80211_generic_frame_duration - Calculate the duration field for a
7       frame
8

SYNOPSIS

10       __le16 ieee80211_generic_frame_duration(struct ieee80211_hw * hw,
11                                               struct ieee80211_vif * vif,
12                                               enum nl80211_band band,
13                                               size_t frame_len,
14                                               struct ieee80211_rate * rate);
15

ARGUMENTS

17       hw
18           pointer obtained from ieee80211_alloc_hw.
19
20       vif
21           struct ieee80211_vif pointer from the add_interface callback.
22
23       band
24           the band to calculate the frame duration on
25
26       frame_len
27           the length of the frame.
28
29       rate
30           the rate at which the frame is going to be transmitted.
31

DESCRIPTION

33       Calculate the duration field of some generic frame, given its length
34       and transmission rate (in 100kbps).
35

RETURN

37       The duration.
38

AUTHOR

40       Johannes Berg <johannes@sipsolutions.net>
41           Author.
42
44Kernel Hackers Manual 3.10         June 2019           IEEE80211_GENERIC_FR(9)
Impressum