2011-11-25 16:21:49

by Roberto Riggio

[permalink] [raw]
Subject: Changes in the radiotap parsing method


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.