On Wednesday 07 March 2007 08:05, Andy Green wrote: > Also notice that packets cannot be sent by packetspammer until the > interface is brought up, which I guess is reasonable enough, but also I > found not until the interface was associated with a WPA network, which > is a problem if the plan is to use the injection action to do the work > of association in userspace. > There is a hostap/prism2 sub-ioctl to enable userspace mlme mode, which should fix that issue. Look around in ieee80211_ioctl.c for PRISM2_IOCTL_PRISM2_PARAM, ieee80211_ioctl_prism2_param, and PRISM2_PARAM_USER_SPACE_MLME for hints. These sub-ioctls are, of course, quite evil and need to be replaced, but it's a little better than hacking mac80211 to start with user_space_mlme enabled by default. -Michael Wu
Attachment:
pgpeHZXftm7VA.pgp
Description: PGP signature