linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Changes in the radiotap parsing method
@ 2011-11-25 16:14 Roberto Riggio
  0 siblings, 0 replies; only message in thread
From: Roberto Riggio @ 2011-11-25 16:14 UTC (permalink / raw)
  To: linux-wireless


I'm trying to adapt a patch (for specifying the transmission rate for 
injected frames) to the latest changes in compat-wireless.

I saw that the signature of this function changed:

ieee80211_parse_tx_radiotap(struct sk_buff *skb)

While before it was:

__ieee80211_parse_tx_radiotap(struct ieee80211_tx_data *tx, struct 
sk_buff *skb)

is there a way to obtain info to translate the rate as specified into 
the radiotap header to the rate index require by the driver. The 
previous code was:

sband = info->local->hw.wiphy->bands[info->channel->band];

and then:

for (i = 0; i < sband->n_bitrates; i++)
	if (sband->bitrates[i].bitrate == rate) 	
	{
		idx = i;
		break;
	}

Thanks
R.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-11-25 16:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-25 16:14 Changes in the radiotap parsing method Roberto Riggio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).