Date: Fri, 28 Mar 2008 22:49:03 GMT From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 138863 for review Message-ID: <200803282249.m2SMn30L044162@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=138863 Change 138863 by sam@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803282249.m2SMn30L044162>