On Tue, Aug 6, 2013 at 12:57 PM, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote: > From: Johannes Berg <johannes.berg@xxxxxxxxx> > > A lot of drivers check the frame protocol for ETH_P_PAE, > for various reasons (like making those more reliable). > Add a new flags bitmap to the TX control info and a new > flag indicating the control port protocol is in use to > let all drivers also apply such logic to other control > port protocols, should they be configured. > > Change-Id: I292ba4865694142670f005856b6320f7f3fa05c8 > Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx> > --- [...] > diff --git a/drivers/net/wireless/iwlwifi/iwl-devtrace.h b/drivers/net/wireless/iwlwifi/iwl-devtrace.h > index 4491c1c..9f43fb9 100644 > --- a/drivers/net/wireless/iwlwifi/iwl-devtrace.h > +++ b/drivers/net/wireless/iwlwifi/iwl-devtrace.h > @@ -33,9 +33,10 @@ > static inline bool iwl_trace_data(struct sk_buff *skb) > { > struct ieee80211_hdr *hdr = (void *)skb->data; > + struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); > > if (ieee80211_is_data(hdr->frame_control)) > - return skb->protocol != cpu_to_be16(ETH_P_PAE); > + return info->control.flags & IEEE80211_TX_CTRL_PORT_CTRL_PROTO; > return false; > } this looks reversed... Eliad. -- 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