mirror of
https://github.com/proski/madwifi
synced 2024-11-21 22:11:32 +03:00
Reference the VAP's node in injection/raw output frames. Makes injection work.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3720 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
parent
3318745855
commit
a3c603b875
@ -129,7 +129,7 @@ ieee80211_monitor_encap(struct ieee80211vap *vap, struct sk_buff *skb)
|
||||
{
|
||||
struct ieee80211_phy_params *ph = &(SKB_CB(skb)->phy);
|
||||
SKB_CB(skb)->flags = M_RAW;
|
||||
SKB_NI(skb) = NULL;
|
||||
SKB_NI(skb) = ieee80211_ref_node(vap->iv_bss);
|
||||
|
||||
/* send at a static rate if it is configured */
|
||||
ph->rate[0] = vap->iv_fixed_rate > 0 ? vap->iv_fixed_rate : 2;
|
||||
@ -182,7 +182,7 @@ ieee80211_monitor_encap(struct ieee80211vap *vap, struct sk_buff *skb)
|
||||
|
||||
/* skip the chain of additional bitmaps following it_present */
|
||||
while (present_ext & (1 << IEEE80211_RADIOTAP_EXT)) {
|
||||
if (p+4 > end) {
|
||||
if (p + 4 > end) {
|
||||
/* An extended bitmap would now follow, but there is
|
||||
* no place for it. Stop parsing. */
|
||||
present = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user