1IEEE80211_GENERIC_FR(9) The basic mac80211 driver inte IEEE80211_GENERIC_FR(9)
2
3
4
6 ieee80211_generic_frame_duration - Calculate the duration field for a
7 frame
8
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
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
33 Calculate the duration field of some generic frame, given its length
34 and transmission rate (in 100kbps).
35
37 The duration.
38
40 Johannes Berg <johannes@sipsolutions.net>
41 Author.
42
44Kernel Hackers Manual 3.10 June 2019 IEEE80211_GENERIC_FR(9)