]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: fix tracing when tx only is enabled
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 14 Jun 2017 09:21:05 +0000 (12:21 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 21 Jul 2017 09:26:38 +0000 (12:26 +0300)
commitb27b774990597525b763f79c72bf43042513a69a
tree7d4486582288b98952d25de64514105a7276d332
parent5e12a5d0692c2371cc5a12de628eea4cb72ffaf1
iwlwifi: fix tracing when tx only is enabled

iwl_trace_data is somewhat confusing. It returns a bool
that tells if the payload of the skb should be added to
the tx_data event. If it returns false, then the payload
of the skb is added to the tx event.

The purpose is to be able to start tracing with
-e iwlwifi
and record non-data packets only which saves bandwidth.

Since EAPOLs are important, seldom and not real data
packet (despite being WiFi data packets), they are
included in tx event and thus iwl_trace_data returns false
on those. This last part was buggy, and because of that,
all the data packets were included in the tx event.

Fix that.

Fixes: 77b4f1b2a996 ("iwlwifi: tracing: decouple from mac80211")
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-devtrace.h