Commit Graph

90 Commits (fc96ba7411576da2232cf2cb7122c6440f3b8122)

Author SHA1 Message Date
Felix Fietkau f24b76d44c hostapd: add a config option for the inactivity timeout
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33412 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-09-15 10:21:18 +00:00
Felix Fietkau 025be2b842 hostapd: add an option for configuring the maximum number of connected clients
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33400 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-09-14 14:08:35 +00:00
Felix Fietkau 24d24495ad hostapd: enable disassoc on many consecutive excessive retries, improves AP mode reliability with many clients
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33399 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-09-14 13:45:29 +00:00
Jo-Philipp Wich cd70115a77 [package] hostapd: introduce new default-off option "auth_cache" which controls PMKSA and Opportunistic Key Caching (#12129)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33359 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-09-10 12:23:41 +00:00
Jo-Philipp Wich 8e7bd7eb2e [package] hostapd: fix ap/sta regression which got accidentally introduced by r32829 (#11914)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33053 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-08-08 11:13:12 +00:00
John Crispin 28bcb29a44 mac80211/hostapd: add support for HT capa in case of IBSS/RSN
Signed-off-by: Antonio Quartulli <ordex@autistici.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32830 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-24 23:07:25 +00:00
John Crispin fc04e98efd wpa_supplicant: add more parameters
Signed-off-by: Antonio Quartulli <ordex@autistici.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32829 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-24 23:07:15 +00:00
Jo-Philipp Wich dfedcc2bed [package] hostapd: change wpa_supplicant.sh to pass 64 byte hex psk unquoted and remove the undocumented usepasspharse option, this makes it match the logic of the hostapd setup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32614 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-05 12:25:29 +00:00
Felix Fietkau e11cca86ba hostapd: fix driver setting for wpa_s in IBSS/WPA-NONE
This fix is needed to correctly set the driver to use with wpa_s in case of
IBSS/WPA-NONE. The current setting is not made correctly.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32084 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-06 15:25:52 +00:00
Felix Fietkau 5b15d418b9 wpa_supplicant: make key_mgmt default to NONE
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31145 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-29 16:30:13 +00:00
Felix Fietkau 460e07bad9 wpa_supplicant: fix regressions introduced by the ibss-rsn changes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31087 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-27 13:38:08 +00:00
Felix Fietkau a7d4b59608 wpa_supplicant: add CONFIG_IBSS_RSN=y compilation option
Signed-off-by: Antonio Quartulli <ordex@autistici.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31086 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-27 13:29:51 +00:00
Felix Fietkau 3405a9bc22 wpa_supplicant: modify wpa_supplicant.sh in order to support IBSS-RSN/WPA-NONE
Based on patch by: Antonio Quartulli <ordex@autistici.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31085 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-27 13:29:41 +00:00
Felix Fietkau 06a0f71fcd hostapd: disable the state dump callback to save a few more kb
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30667 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-02-21 00:27:28 +00:00
Hamish Guthrie a4e1bbd82e [package] hostapd: correctly pass 64 char hex PSK to wpa_supplicant
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30504 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-02-13 16:07:53 +00:00
Jo-Philipp Wich a886b7ad0d [package] hostapd: introduce a client_cert option which is passed on to wpa_supplicant (#8876)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29901 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-24 20:54:13 +00:00
Jo-Philipp Wich 6905093fe4 [package] hostapd: add code to prevent accidentally bridging non-wds sta mode interfaces
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28858 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-08 14:22:56 +00:00
Jo-Philipp Wich fda7c3c00d [package] hostapd: introduce "wpa_pair_rekey" and "wpa_master_rekey" options, remove hardcoded wpa rekey intervals, remove hardcoded radius_acct_interim_interval as it might overrule the radius Acct-Interim-Interval attribute
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28207 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-09-09 18:19:18 +00:00
Jo-Philipp Wich 4b2acb71d3 [package] hostapd: introduce options to configure the logging behaviour.
The config wifi-device section gains the following settings:
	* log_level  (2)    - Defines the minimum message level
	* log_80211  (true) - Log 802.11 events
	* log_8021x  (true) - Log 802.1X events
	* log_radius (true) - Log RADIUS events
	* log_wpa    (true) - Log WPA events
	* log_driver (true) - Log driver interface messages
	* log_iapp   (true) - Log IAPP events
	* log_mlme   (true) - Log MLME events


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28056 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-08-20 00:13:58 +00:00
Felix Fietkau c9f66260cb wpa_supplicant: make sure that the common 802.11 code gets linked in (fixes #9299)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26764 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-26 19:16:25 +00:00
Vasilis Tsiligiannis 8c41f9f5a3 [package] hostapd: add accounting configuration to hostapd uci script
Hello

This patch add accounting configuration in hostapd.sh
It also change "server, port, key" to "auth_server, auth_port, auth_secret" but keep backward compatibility
Please patch backfire & trunk

Thanks in advance.

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26482 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-05 15:09:26 +00:00
Felix Fietkau 0f5d91cdb3 hostapd: add more wps config methods to the config
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26288 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-25 14:01:05 +00:00
Jo-Philipp Wich 9f1a6bc1fb [package] hostapd: allow mixed TKIP/CCMP for 11n
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25543 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-15 08:49:45 +00:00
Felix Fietkau 10bb2b1329 hostapd: Create one control interface per virtual bssid
Previously hostapd created one control interface /var/run/hostapd-phyX
which only contained the first virtual bssid (for example wlan0). In
order to access the other virtual bssids with hostapd_cli add all
virtual bssids to /var/run/hostapd-phyX by specifying the ctrl_interface
parameter per bssid.

Previously the control interface looked like:
	/var/run/hostapd-phyX/wlan0

Now, the control interface looks like this:
	/var/run/hostapd-phyX/wlan0
	/var/run/hostapd-phyX/wlan1
	...

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24985 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-14 10:52:54 +00:00
Felix Fietkau e1225a7328 hostapd: fix appending the iapp_interface variable to the config
Signed-off-by: Alexander Couzens <lynxis@c-base.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24724 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-19 11:56:49 +00:00
Felix Fietkau cc2240d92f hostapd: Add CONFIG_FULL_DYNAMIC_VLAN=y to hostapd-full.config
This allows hostapd to make use of the config option
"vlan_tagged_interface" to automatically create bridge and
VLAN interfaces in a fully dynamic way.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24722 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-19 11:48:38 +00:00
Felix Fietkau 21adab3df5 hostapd: Allow rsn_preauth configuration
Hostapd can allow preauthentication for WPA2-EAP networks when
the interfaces through which preauthentication is allowed are
configured.

Add a new param "rsn_preauth=0/1" to the configuration that enables
or disables preauthentication on the according bridge interface.

Preauthentication for unbridged networks is not considered in this
patch.

Cc: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24721 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-19 11:48:31 +00:00
Vasilis Tsiligiannis b848594c3c [package] hostapd: Add 'identity' config option when eap_type is 'tls' on wpa_supplicant (#8164)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23817 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-03 10:39:29 +00:00
Jo-Philipp Wich a90dcbc197 [PATCH] Set auth_algs in hostapd.conf, make it configurable for WEP
Always set auth_algs in hostapd.conf. For WEP, auth_algs is configurable
by setting the encryption parameter of a wifi-iface to contain "open"
(1, open system), "shared" (2, shared key), or "mixed" (3, permits both
open system and shared key.) For example, use "wep+shared" for shared
key authentication. The default is default is "open" as it is more
secure than "shared" (although WEP is pretty weak regardless.) For
non-WEP, "open" is always used.

https://dev.openwrt.org/ticket/8120

Signed-off-by: Mark Mentovai <mark@moxienet.com>



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23655 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-27 11:11:04 +00:00
Felix Fietkau f0a8a11ddf hostapd/mac80211: implement support for AP+STA
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23602 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-23 23:39:54 +00:00
Vasilis Tsiligiannis 3bad36fbaf [package] hostapd: Add support for 'iapp_interface' option, thanks stsp (#7719)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22527 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-08 10:46:24 +00:00
Felix Fietkau b94a8c0025 hostapd: add preliminary wps script support (push-button only, does not handle multi-bss yet)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22100 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-08 18:36:17 +00:00
Felix Fietkau f18b70de7c hostapd: enable WPS for the full version of hostapd/wpa_supplicant/wpad
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22098 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-08 18:36:07 +00:00
Jo-Philipp Wich 68d2ffe6c7 [package] hostapd: enforce CCMP WPA cipher if hwmode is 11ng or 11na
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22000 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-30 21:24:30 +00:00
Jo-Philipp Wich 38caa87e55 [package] hostapd: allow *ccmp+tkip and *aes+tkip as well for cipher override
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21998 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-30 21:03:56 +00:00
Jo-Philipp Wich 63f2a286ce [package] hostapd: forgot the actual change in previous commit
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21821 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-16 20:28:11 +00:00
Felix Fietkau ebf5ee501b hostapd: add ap isolate support for mac80211
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21179 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-26 23:08:03 +00:00
Jo-Philipp Wich bba1d4a53c [package] hostapd: fixup madwifi turbo modes (#7060)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20675 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-03 15:16:33 +00:00
Travis Kemen bbdbc3b43b When enabling MFP, hostapd will read assoc_sa_query_max_timeout and
assoc_sa_query_retry_timeout from it's config file. Make these options
configurable in /etc/config/wireless. To make it clear that these
options are 802.11w related, I named them ieee80211w_max_timeout and
ieee80211w_retry_timeout instead.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20397 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-24 00:23:10 +00:00
Travis Kemen 3f7af4ef3e Enable management frame protection in hostapd, and make it configurable
in /etc/config/wireless. Since ath9k is currently the only driver that
supports MFP, it will only be enabled when ath9k is enabled.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20396 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-24 00:22:19 +00:00
Travis Kemen 650507a240 Enable management frame protection in wpa_supplicant, and make it
configurable in /etc/config/wireless.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20395 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-24 00:21:28 +00:00
Travis Kemen fd9e31f189 Cleanup redundant psk handling code in wpa_supplicant.sh.
(I sent this one to openwrt-devel before, but I am resending it as part of
this series because the next patch will also edit wpa_supplicant.sh).

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20394 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-24 00:19:42 +00:00
Jo-Philipp Wich c456468ee3 [package] hostapd: always strip "11" from hwmode value
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20363 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-21 22:35:58 +00:00
Felix Fietkau d16b006295 hostapd: remove the hotplug script for adding wds station interfaces to a bridge - it suffers from race conditions. instead let hostapd add the interfaces to the bridge
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20104 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-09 21:16:38 +00:00
Felix Fietkau 0c1854f843 wpa_supplicant: fix bridging settings for wds
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20088 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-09 17:35:59 +00:00
Felix Fietkau 2ba4b4f580 hostapd: support creating WEP networks for mac80211 (patch by Stijn Tintel), fixes #6672
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19720 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-19 01:34:44 +00:00
Felix Fietkau 35458f9fd6 mac80211: always use wpa_supplicant for client connections (patch by Stijn Tintel)
Since client mode in mac80211is unreliable without using wpa_supplicant,
it would be better to enable wpa_supplicant by default.

With this patch, wpa_supplicant will always be used for mac80211-based
drivers in client mode. This will break client mode for images that
don't include wpa_supplicant or wpad, so maybe I need to add a check
somewhere to see if wpa_supplicant is available, and show the user a
warning if he tries client mode without wpa_supplicant. Suggestions on
where to add this check are welcome.

Tested with ath5k in client mode on open and wpa2-psk network, and
tested on my ath9k based AP as well to make sure it doesn't break AP mode.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19718 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-19 01:07:21 +00:00
Felix Fietkau 7be190edbd mac80211: use wpa_supplicant for unencrypted connections to improve client mode reliability (patch by Stijn Tintel from #6653)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19550 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-08 13:42:14 +00:00
Felix Fietkau 0f6446ce4c hostapd: add a build variant for wpa_supplicant and one for a multicall hostapd+supplicant program (wpad) and remove the old wpa_supplicant package
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19286 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-23 08:28:26 +00:00
Felix Fietkau 7b22da898b mac80211: restructure /lib/wifi/mac80211.sh
use the new multi-bss single instance hostapd mode
move mac80211 specific bits out of /lib/wifi/hostapd.sh
add a new option 'htmode' for switching between HT20 and HT40+,HT40-

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19235 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-20 02:26:05 +00:00