[PATCH] WPS: Can't clear WPS IE with madwifi driver
Masashi Honma
honma
Mon Feb 9 20:51:42 PST 2009
Hello.
On WPS init/deinit process, the hostapd clears it's own WPS IE
with 0 length WPS IE. But it fails. Because the parameter to
ioctl is too short. Then hostapd prints a below message.
ioctl[IEEE80211_IOCTL_SET_APPIEBUF]: Invalid argument
Below patch will solve this.
diff --git a/hostapd/driver_madwifi.c b/hostapd/driver_madwifi.c
index 6238976..a532ee2 100644
--- a/hostapd/driver_madwifi.c
+++ b/hostapd/driver_madwifi.c
@@ -97,6 +97,8 @@ set80211priv(struct madwifi_driver_data *drv, int op, void *data, int len)
if (op == IEEE80211_IOCTL_FILTERFRAME)
do_inline = 0;
#endif /* IEEE80211_IOCTL_FILTERFRAME */
+ if (op == IEEE80211_IOCTL_SET_APPIEBUF)
+ do_inline = 0;
if (do_inline) {
/*
* Argument data fits inline; put it there.
Regards,
Masashi Honma.
More information about the Hostap
mailing list