Changeset 35145


Ignore:
Timestamp:
2013-01-13T23:10:14+01:00 (5 years ago)
Author:
nbd
Message:

mac80211: fix monitor mode injection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/mac80211/patches/300-pending_work.patch

    r35139 r35145  
    19161916        struct ar5416IniArray iniAddac; 
    19171917        struct ar5416IniArray iniPcieSerdes; 
     1918--- a/net/mac80211/tx.c 
     1919+++ b/net/mac80211/tx.c 
     1920@@ -1677,10 +1677,10 @@ netdev_tx_t ieee80211_monitor_start_xmit 
     1921                        chanctx_conf = 
     1922                                rcu_dereference(tmp_sdata->vif.chanctx_conf); 
     1923        } 
     1924-       if (!chanctx_conf) 
     1925-               goto fail_rcu; 
     1926- 
     1927-       chan = chanctx_conf->def.chan; 
     1928+       if (chanctx_conf) 
     1929+               chan = chanctx_conf->def.chan; 
     1930+       else 
     1931+               chan = local->_oper_channel; 
     1932  
     1933        /* 
     1934         * Frame injection is not allowed if beaconing is not allowed 
Note: See TracChangeset for help on using the changeset viewer.