PERFORCE change 138863 for review
Sam Leffler
sam at FreeBSD.org
Fri Mar 28 15:49:04 PDT 2008
http://perforce.freebsd.org/chv.cgi?CH=138863
Change 138863 by sam at sam_ebb on 2008/03/28 22:48:36
force ENETRESET work when plumbing the WPA ie's so if the ifnet
is UP the beacon frame will get rebuilt; this is really a workaround
for hostapd doing things in the wrong order
Affected files ...
.. //depot/projects/vap/sys/net80211/ieee80211_ioctl.c#48 edit
Differences ...
==== //depot/projects/vap/sys/net80211/ieee80211_ioctl.c#48 (text+ko) ====
@@ -2211,9 +2211,16 @@
appie->ie_len - (2 + data[1]));
}
if (vap->iv_opmode == IEEE80211_M_HOSTAP ||
- vap->iv_opmode == IEEE80211_M_IBSS)
- ieee80211_beacon_notify(vap,
- IEEE80211_BEACON_APPIE);
+ vap->iv_opmode == IEEE80211_M_IBSS) {
+ /*
+ * Must rebuild beacon frame as the update
+ * mechanism doesn't handle WPA/RSN ie's.
+ * Could extend it but it doesn't normally
+ * change; this is just to deal with hostapd
+ * plumbing the ie after the interface is up.
+ */
+ error = ENETRESET;
+ }
}
break;
default:
More information about the p4-projects
mailing list