diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-10-26 13:47:12 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2010-10-26 13:47:12 +0000 |
commit | dc3eefc2b3c8646dc4a68c6c15b6f6ac5adbd244 (patch) | |
tree | d565a64e59114b3ac64bd51a7d9bd70cfe9c92de /package | |
parent | f40416daf3fe52dc86ce292543c4c47c561d9192 (diff) | |
download | upstream-dc3eefc2b3c8646dc4a68c6c15b6f6ac5adbd244.tar.gz upstream-dc3eefc2b3c8646dc4a68c6c15b6f6ac5adbd244.tar.bz2 upstream-dc3eefc2b3c8646dc4a68c6c15b6f6ac5adbd244.zip |
hostapd: backport a fix for setting the IFF_RUNNING flag on AP mode interfaces
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23641 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r-- | package/hostapd/patches/460-oper_state_fix.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/package/hostapd/patches/460-oper_state_fix.patch b/package/hostapd/patches/460-oper_state_fix.patch new file mode 100644 index 0000000000..5a685a23ef --- /dev/null +++ b/package/hostapd/patches/460-oper_state_fix.patch @@ -0,0 +1,25 @@ +From: Jouni Malinen <jouni.malinen@atheros.com> +Date: Tue, 26 Oct 2010 13:30:28 +0000 (+0300) +Subject: hostapd: Set operstate UP when initializing AP mode +X-Git-Url: http://w1.fi/gitweb/gitweb.cgi?p=hostap.git;a=commitdiff_plain;h=e11f5a2cbc333113a3a1cc1aeea7f698c3936ca3 + +hostapd: Set operstate UP when initializing AP mode + +This is needed to avoid problems with other applications setting and +leaving the interface to IF_OPER_DORMANT state. In AP mode, the interface +is ready immediately after the keys are set, so we better make sure the +DORMANT state does not prevent normal operations after that. +--- + +--- a/src/ap/hostapd.c ++++ b/src/ap/hostapd.c +@@ -622,6 +622,9 @@ static int hostapd_setup_bss(struct host + + ieee802_11_set_beacon(hapd); + ++ if (hapd->driver && hapd->driver->set_operstate) ++ hapd->driver->set_operstate(hapd->drv_priv, 1); ++ + return 0; + } + |