]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
WPS: Fix clearing of WPS IE with madwifi driver
authorMasashi Honma <honma@ictec.co.jp>
Tue, 10 Feb 2009 09:23:59 +0000 (11:23 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 10 Feb 2009 09:23:59 +0000 (11:23 +0200)
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

hostapd/driver_madwifi.c

index 623897683e494dcdd4e50e694986c969eb624a1e..a532ee2e6a278af38b65614809c4cf3f29e2fbf8 100644 (file)
@@ -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.