ieee80211_generic_frame_duration — Calculate the duration field for a frame
__le16 ieee80211_generic_frame_duration ( | struct ieee80211_hw * hw, |
| struct ieee80211_vif * vif, | |
| enum ieee80211_band band, | |
| size_t frame_len, | |
struct ieee80211_rate * rate); |
hw
pointer obtained from ieee80211_alloc_hw.
vifstruct ieee80211_vif pointer from the add_interface callback.
bandthe band to calculate the frame duration on
frame_lenthe length of the frame.
ratethe rate at which the frame is going to be transmitted.