On Wed, Sep 14, 2011 at 09:03:56AM +0100, Dani Camps wrote: > > The problem, I think, is that the function is called with the second > parameter being NULL, and in that case "ieee80211_generic_frame_duration()" > always assumes 11b and long preamble, which was not correct in our case. Here > you can see the code of "ieee80211_generic_frame_duration()":
Yeah I saw this, but we also do in ath5k_hw_get_frame_duration(): /* subtract difference between long and short preamble */ dur = le16_to_cpu(raw_dur); if (shortpre) dur -= 96; I assume (I didn't write this code) that it was done this way because we don't always have a vif to pass into the generic code. -- Bob Copeland %% www.bobcopeland.com _______________________________________________ ath5k-devel mailing list ath5k-devel@lists.ath5k.org https://lists.ath5k.org/mailman/listinfo/ath5k-devel