mirror of https://github.com/proski/madwifi
allow the use of the ratiotap field IEEE80211_RADIOTAP_DATA_RETRIES to specify
the number of retries for injected frames git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2992 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
parent
79bf489a8d
commit
b76a3ed537
|
@ -246,6 +246,11 @@ ieee80211_monitor_encap(struct ieee80211vap *vap, struct sk_buff *skb)
|
|||
p = start + roundup(p - start, 8) + 8;
|
||||
break;
|
||||
|
||||
case IEEE80211_RADIOTAP_DATA_RETRIES:
|
||||
ph->try0 = *p;
|
||||
p++;
|
||||
break;
|
||||
|
||||
default:
|
||||
present = 0;
|
||||
break;
|
||||
|
@ -256,7 +261,8 @@ ieee80211_monitor_encap(struct ieee80211vap *vap, struct sk_buff *skb)
|
|||
/* Remove FCS from the end of frames to transmit */
|
||||
skb_trim(skb, skb->len - IEEE80211_CRC_LEN);
|
||||
wh = (struct ieee80211_frame *)skb->data;
|
||||
if ((wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) == IEEE80211_FC0_TYPE_CTL)
|
||||
if (!ph->try0 &&
|
||||
(wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) == IEEE80211_FC0_TYPE_CTL)
|
||||
ph->try0 = 1;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue