mac80211 / ath9k / Monitor Mode

From: Thomas Graf <hidden>
Date: 2017-01-03 09:39:41

Hello Everyone,

Since I updated my Kernel to the current version 4.9 I don't get my tx 
packets dumped in monitor mode. That worked at least with the old 4.1 
Kernel.
That problem seems to have to do with IEEE80211_TX_CTL_REQ_TX_STATUS. In 
the xmit.c of the ath9k driver only packets with that flag are passed on 
to ieee80211_tx_status and otherwise to ieee80211_tx_status_noskb.
So if that flag is not set that packet won't get to the monitor 
interface in mac80211.

My solution was to add that flag in ieee80211_xmit:

	if (local->monitors)
	{
	  info->flags |= IEEE80211_TX_CTL_REQ_TX_STATUS;
	}

I'm not sure if that is the right position or if I'm missing something else.

Thanks,
Thomas
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help