summaryrefslogtreecommitdiffstats
path: root/package/hostapd/patches/460-oper_state_fix.patch
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-10-31 13:49:34 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-10-31 13:49:34 +0000
commita1b087b6817e0d82b92ce55217c77ae7ed36f73e (patch)
treeaf0f65905081bfb12ebdfd9337d651b7d85af832 /package/hostapd/patches/460-oper_state_fix.patch
parent87baa2e83c4094af8a9e39e1ad63aaa8ede8d656 (diff)
hostapd: move the madwifi segfault fix to the right place
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23738 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/hostapd/patches/460-oper_state_fix.patch')
-rw-r--r--package/hostapd/patches/460-oper_state_fix.patch22
1 files changed, 0 insertions, 22 deletions
diff --git a/package/hostapd/patches/460-oper_state_fix.patch b/package/hostapd/patches/460-oper_state_fix.patch
index 8ea0e1236..5a685a23e 100644
--- a/package/hostapd/patches/460-oper_state_fix.patch
+++ b/package/hostapd/patches/460-oper_state_fix.patch
@@ -23,25 +23,3 @@ DORMANT state does not prevent normal operations after that.
return 0;
}
---- a/src/drivers/driver_wext.c
-+++ b/src/drivers/driver_wext.c
-@@ -2245,11 +2245,14 @@ int wpa_driver_wext_set_operstate(void *
- {
- struct wpa_driver_wext_data *drv = priv;
-
-- wpa_printf(MSG_DEBUG, "%s: operstate %d->%d (%s)",
-- __func__, drv->operstate, state, state ? "UP" : "DORMANT");
-- drv->operstate = state;
-- return netlink_send_oper_ifla(drv->netlink, drv->ifindex, -1,
-- state ? IF_OPER_UP : IF_OPER_DORMANT);
-+ if (drv != NULL)
-+ {
-+ wpa_printf(MSG_DEBUG, "%s: operstate %d->%d (%s)",
-+ __func__, drv->operstate, state, state ? "UP" : "DORMANT");
-+ drv->operstate = state;
-+ return netlink_send_oper_ifla(drv->netlink, drv->ifindex, -1,
-+ state ? IF_OPER_UP : IF_OPER_DORMANT);
-+ }
- }
-
-