Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115705708
D38805.id118001.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D38805.id118001.diff
View Options
diff --git a/contrib/wpa/src/drivers/driver_bsd.c b/contrib/wpa/src/drivers/driver_bsd.c
--- a/contrib/wpa/src/drivers/driver_bsd.c
+++ b/contrib/wpa/src/drivers/driver_bsd.c
@@ -526,6 +526,9 @@
__func__);
return -1;
}
+#ifdef __FreeBSD__
+ ((bsd_driver_data *)priv)->ifr_flags |= IFF_UP;
+#endif
return 0;
}
@@ -1033,6 +1036,10 @@
if (bsd_get_iface_flags(drv) < 0)
goto bad;
+#ifdef __FreeBSD__
+ drv->ifr_flags &= ~IFF_UP;
+#endif
+
if (bsd_set_mediaopt(drv, IFM_OMASK, IFM_IEEE80211_HOSTAP) < 0) {
wpa_printf(MSG_ERROR, "%s: failed to set operation mode",
__func__);
@@ -1688,6 +1695,10 @@
if (drv->ifindex != 0 && !drv->if_removed) {
wpa_driver_bsd_set_wpa(drv, 0);
+#ifdef __FreeBSD__
+ drv->ifr_flags &= ~IFF_UP;
+#endif
+
wpa_driver_bsd_set_wpa_internal(drv, drv->prev_wpa,
drv->prev_privacy);
diff --git a/libexec/rc/rc.d/wpa_supplicant b/libexec/rc/rc.d/wpa_supplicant
--- a/libexec/rc/rc.d/wpa_supplicant
+++ b/libexec/rc/rc.d/wpa_supplicant
@@ -12,7 +12,6 @@
name="wpa_supplicant"
desc="WPA/802.11i Supplicant for wireless network devices"
-start_postcmd="wpa_poststart"
rcvar=
ifn="$2"
@@ -20,11 +19,6 @@
return 1
fi
-wpa_poststart() {
- ifconfig ${ifn} down
- ifconfig ${ifn} up
-}
-
if is_wired_interface ${ifn} ; then
driver="wired"
else
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 28, 10:32 AM (8 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17824808
Default Alt Text
D38805.id118001.diff (1 KB)
Attached To
Mode
D38805: wpa: Address upstream regression committed in ec080394e218
Attached
Detach File
Event Timeline
Log In to Comment