linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mac80211 + hostapd: EAPOL frames rate selection
@ 2011-07-29  9:14 Helmut Schaa
  2011-07-29 10:20 ` Mohammed Shafi
  2011-07-29 17:37 ` Jouni Malinen
  0 siblings, 2 replies; 8+ messages in thread
From: Helmut Schaa @ 2011-07-29  9:14 UTC (permalink / raw)
  To: linux-wireless, hostap

Hi,

I just noticed that EAPOL frames generated by hostapd during the 4-way
handshake are sent out by mac80211 using a rate as selected by the rc
algorithm for data frames. In my case minstrel_ht selects a MCS rate for
11n clients which sometimes results in a 4-way handshake timeout under
low signal conditions.

I haven't found anything in 802.11-2007 if EAPOL frames have to be sent
at a low rate but I'd argue that it makes sense to send them at a basic
rate just like it's done for management frames.

We've got a nice little helper in mac80211 (rate_control_send_low) that
allows the rc algorithm to check if a frame should be sent at a low rate.
I thought I'd hook in there and just check skb->protocol to force EAPOL
frames to the lowest rate. However, this didn't work out because in AP
mode the EAPOL frames are injected through a monitor interface and as
such skb->protocol is never initialized (ieee80211_monitor_start_xmit).

The injected frames however already have an 802.11 header and therefore
figuring out the ethertype of the injected frame is not as straightforward as
I liked it to be :(

Can I always be sure that an injected data frame (!=nullfunc) has a rfc1042
header following after the 802.11 header?

Another option would be to let hostapd specify a fixed tx rate in the radiotap
header (and extend mac80211 to understand it). However, since some drivers
also make use of skb->protocol (to forbid aggregation for example) it sounds
more sane to initialize it also for injected frames.

Any other ideas?

Thanks,
Helmut

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-12-17 17:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-29  9:14 mac80211 + hostapd: EAPOL frames rate selection Helmut Schaa
2011-07-29 10:20 ` Mohammed Shafi
2011-07-29 15:17   ` Mohammed Shafi
2011-07-29 15:52     ` Andreas Hartmann
2011-07-29 17:37 ` Jouni Malinen
2011-07-29 17:55   ` Helmut Schaa
2011-07-29 18:05     ` Felix Fietkau
2012-12-17 17:26       ` Paul Stewart

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).