lkml.org 
[lkml]   [2009]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 03/48] mac80211: restrict to AP in outgoing interface heuristic
    2.6.28-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: Johannes Berg <johannes@sipsolutions.net>

    commit f1b33cb1c25ac476cbf22783f9ca2016f99648ed upstream.

    We try to find the correct outgoing interface for injected frames
    based on the TA, but since this is a hack for hostapd 11w, restrict
    the heuristic to AP mode interfaces. At some point we'll add the
    ability to give an interface index in radiotap or so and just
    remove this heuristic again.

    Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    net/mac80211/tx.c | 2 ++
    1 file changed, 2 insertions(+)

    --- a/net/mac80211/tx.c
    +++ b/net/mac80211/tx.c
    @@ -1335,6 +1335,8 @@ int ieee80211_master_start_xmit(struct s
    list) {
    if (!netif_running(sdata->dev))
    continue;
    + if (sdata->vif.type != NL80211_IFTYPE_AP)
    + continue;
    if (compare_ether_addr(sdata->dev->dev_addr,
    hdr->addr2)) {
    dev_hold(sdata->dev);


    \
     
     \ /
      Last update: 2009-02-14 02:31    [W:0.020 / U:61.264 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site