aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/driver_madwifi.c
diff options
context:
space:
mode:
authorMasashi Honma <honma@ictec.co.jp>2009-02-10 09:23:59 (GMT)
committerJouni Malinen <j@w1.fi>2009-02-15 13:08:08 (GMT)
commit92f966e1bb55438de412e8bcc1d0ecafcdfd567e (patch)
tree103e99c6f16a7791e89d9febc02558124ffbba57 /hostapd/driver_madwifi.c
parenta6f5ec3d7fe41551746cdecfc57bf69ec6964e5d (diff)
downloadhostap-06-92f966e1bb55438de412e8bcc1d0ecafcdfd567e.zip
hostap-06-92f966e1bb55438de412e8bcc1d0ecafcdfd567e.tar.gz
hostap-06-92f966e1bb55438de412e8bcc1d0ecafcdfd567e.tar.bz2
WPS: Fix clearing of WPS IE with madwifi driver
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 (cherry picked from commit 34a6c94178a1d0c26d6eaf9e2dc0c848a798afd2)
Diffstat (limited to 'hostapd/driver_madwifi.c')
-rw-r--r--hostapd/driver_madwifi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hostapd/driver_madwifi.c b/hostapd/driver_madwifi.c
index dfdf79c..ae850b5 100644
--- a/hostapd/driver_madwifi.c
+++ b/hostapd/driver_madwifi.c
@@ -102,6 +102,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.