Search Linux Wireless

Re: [PATCH 1/4] mac80211: don't look up destination station twice

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 20, 2015 at 5:24 PM, Johannes Berg
<johannes@xxxxxxxxxxxxxxxx> wrote:
> From: Johannes Berg <johannes.berg@xxxxxxxxx>
>
> There's no need to look up the destination station twice while
> building the 802.11 header for a given frame if the frame will
> actually be transmitted to the station we initially looked up.
>
> This happens for 4-addr VLAN interfaces and TDLS connections, which
> both directly send the frame to the station they looked up, though
> in the case of TDLS some station conditions need to be checked.
>
> To avoid that, add a variable indicating that we've looked up the
> station that the frame is going to be transmitted to, and avoid the
> lookup/flag checking if it already has been done.
>
> In the TDLS case, also move the authorized/wme_sta flag assignment
> to the correct place, i.e. only when that station is really used.
> Before this change, the new lookup should always have succeeded so
> that the potentially erroneous data would be overwritten.
>
> Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>

The TDLS parts look good.

Arik
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux