Search Linux Wireless

Re: [PATCH 2/2] wifi: mac80211: VLAN unicast packets take 8023 xmit path

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

 



On Mon, 2024-05-06 at 14:20 -0700, Muna Sinada wrote:
> 
> +	if (sta && sdata->vif.type == NL80211_IFTYPE_AP_VLAN) {
> +		ap_sdata = container_of(sdata->bss,
> +					struct ieee80211_sub_if_data, u.ap);
> +		if (ap_sdata->vif.offload_flags & IEEE80211_OFFLOAD_ENCAP_ENABLED &&
> +		    !is_multicast_ether_addr(skb->data)) {
> +			key = rcu_dereference(sta->ptk[sta->ptk_idx]);

Why is that line there, and why is it necessary? Is it even correct?

I see you need a key pointer on the next line, but still... that doesn't
seem right.

johannes






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

  Powered by Linux