aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/hostapd
Commit message (Collapse)AuthorAgeFilesLines
* hostapd: Add wpa_psk_file option to netifd.shJohn Crispin2014-10-201-1/+7
| | | | | | | | | | | | | | | | | | The wpa_psk_file option offers the possibility to use a different WPA-PSK key for each client. The directive points to a file with the following syntax: mac_address wpa_passphrase_or_hex_key Example: 00:11:22:33:44:55 passphrase_for_client_1 00:11:22:33:44:67 passphrase_for_client_2 00:11:22:33:44:89 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef So it is possible to specify both ASCII passphrases and raw 64-chars hex keys. Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43001 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: CVE-2014-3686 fixesSteven Barth2014-10-179-11/+229
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42942 3c298f89-4303-0410-b956-a3cf2f4a3e73
* scripts: fix wrong usage of '==' operatorJohn Crispin2014-10-141-1/+1
| | | | | | | | | | | | | | [base-files] shell-scripting: fix wrong usage of '==' operator normally the '==' is used for invoking a regex parser and is a bashism. all of the fixes just want to compare a string. the used busybox-ash will silently "ignore" this mistake, but make it portable/clean at least. this patch does not change the behavior/logic of the scripts. Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42911 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: read missing parameter for dynamic VLANsJohn Crispin2014-10-061-1/+1
| | | | | | | | | | In r41872 Dynamic VLAN support was reintroduced, but the vlan_naming parameter is not read while setting up the config, so it always defaults to 1. Signed-off-by: Reiner Herrmann <reiner@reiner-h.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42787 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: add conflicts with wpad(-mini) to hostapd and wpa_supplicantFelix Fietkau2014-10-051-0/+5
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42772 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: allow using iapp for any encryption type (fixes #18022)Felix Fietkau2014-10-051-2/+3
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42764 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: merge an upstream patch for pmksa cacheFelix Fietkau2014-10-051-0/+32
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42762 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: do not remove foreign wpa_supplicant socketsJohn Crispin2014-09-171-1/+1
| | | | | | | | https://dev.openwrt.org/ticket/17886 Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42586 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: remove bogus default setting for wps_pin (#17873)Felix Fietkau2014-09-152-4/+3
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42553 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: add ubus bindings for wpsFelix Fietkau2014-09-101-3/+38
| | | | | | | | | | With this patch WPS discovery can be started or canceled over ubus if WPS is enabled in wireless configuration. This is equivalent of 'hostapd_cli wps_pbc' and 'hostapd_cli wps_cancel' commands. Signed-off-by: Petar Koretic <petar.koretic@sartura.hr> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42459 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: fix some whitespacesLuka Perkov2014-08-111-3/+3
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42111 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: revert bogus version that was added in r41872Felix Fietkau2014-08-031-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41960 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: Reintroduce Full Dynamic VLAN supportJo-Philipp Wich2014-07-292-3/+16
| | | | | | | | | | This patch brings full dynamic vlan support to netifd that existed in hostapd.sh in Attitude Adjustment. Signed-off-by: Joseph CG Walker <Joe@ChubbyPenguin.net> [jow@openwrt.org: changed commit message, rebased on top of current hostapd.sh] Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41872 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: add more missing ifdefsFelix Fietkau2014-07-281-1/+18
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41863 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: add missing ifdefFelix Fietkau2014-07-281-0/+11
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41855 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: prevent spurious 20/40 mhz channel bandwidth switches if noscan is ↵Felix Fietkau2014-07-251-0/+22
| | | | | | | | enabled Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41828 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: add a require_mode option in wifi-device sections to select the ↵Felix Fietkau2014-07-151-1/+7
| | | | | | | | minimum hardware mode that the AP requires from clients Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41665 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: fix wpad-mini compile error (#16700)Felix Fietkau2014-06-056-8/+22
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41023 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: update to 2014-06-03Felix Fietkau2014-06-0516-282/+80
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41022 3c298f89-4303-0410-b956-a3cf2f4a3e73
* wpa_supplicant: fix locking hostapd to 20MHz (#12720)Felix Fietkau2014-06-051-9/+24
| | | | | | | | | Fixed wpa_supplicant when the radio is in 40MHz mode so that it no longer restarts hostapd with the second channel disabled. Signed-off-by: Lance Chaney <furryfur1@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41019 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: move reading of rsn_preauth out of auth_type=eap contextFelix Fietkau2014-06-051-3/+3
| | | | | | | | | | rsn_preauth is used outside of "case $auth_type", so if it is set for an EAP-enabled SSID, it would also be set for the following non-EAP-enabled SSIDs, because it would not be read again. Signed-off-by: Reiner Herrmann <reiner@reiner-h.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41012 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: replace undefined $bridge with $network_bridgeFelix Fietkau2014-06-041-3/+3
| | | | | | Signed-off-by: Reiner Herrmann <reiner@reiner-h.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41002 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: Add optional support for hostapd own_ip_addr in wireless configJohn Crispin2014-06-022-1/+5
| | | | | | | | | | | | `own_ip_addr` is used by hostapd as NAS-IP-Address. This is used to identify the AP that is requesting the authentication of the user and could be used to define which AP's can authenticate users. Some vendors implement only NAS-Identifier or NAS-IP-Address and not both. This patch adds ownip as an optional parameter in /etc/config/wireless. Signed-off-by: Thomas Wouters <thomaswouters@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40934 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: add a package for eapol_testFelix Fietkau2014-05-192-0/+56
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40782 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: add an option for 802.11h (enabled by default)Felix Fietkau2014-05-031-2/+6
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40690 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: fix eglibc 2.15 supportFelix Fietkau2014-04-271-1/+2
| | | | | | | | This patch fixes compilation failure for hostapd when using eglibc 2.15. Signed-off-by: Zachery Stoddard <zacherystoddard@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40575 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: update to version 2014-04-24, fixes some dfs related issuesFelix Fietkau2014-04-2616-75/+53
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40571 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 802.11s: fix authsae support in netifdJohn Crispin2014-04-121-1/+1
| | | | | | | | | | This patch implements support for 802.11s protected mesh wireless networks (using authsae) in the netifd framework. Until meshd-nl80211 implements a proper -P option for the PID file, this uses shell backgrounding in order to be able to get the PID for the process. Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40497 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: fix "bad number" error due to missing wps_pbc_in_m1 option (since ↵Felix Fietkau2014-04-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | r39995) r39995 introduced a new parameter wps_pbc_in_m1 to wifi wps config, but apparently did not provide a default value 0. When that option's non-existing value is later evaluated in /lib/netifd/hostapd.sh, it causes the "bad number" error to be logged in syslog if user has not set the wps_pbc_in_m1 option. The error materialises only if user has enabled wps. Sat Apr 12 13:25:01 2014 daemon.notice netifd: radio1 (1254): sh: bad number Sat Apr 12 13:25:01 2014 daemon.notice netifd: radio0 (1253): sh: bad number Discussion in bug 15508: https://dev.openwrt.org/ticket/15508#comment:3 Error is caused by line 282: https://dev.openwrt.org/browser/trunk/package/network/services/hostapd/files/netifd.sh#L282 My patch sets the parameter's default value to 0, which does nothing. The default might also be set a bit later in the function, but this felt like the most clear place to do that. Signed-off-by hnyman <hannu.nyman@iki.fi> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40469 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: update to version 2014-04-04Felix Fietkau2014-04-0631-604/+290
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40394 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: add pbc_in_m1 optionFelix Fietkau2014-03-211-2/+3
| | | | | | | | | | | | Option pbc_in_m1 is being used as a WPS capability discovery workaround for PBC with Windows 7. Add possibility to enable this workaround from UCI. To enable it, turn on wps and set wps_pbc_in_m1 parameter to 1. Signed-off-by: Pawel Kulakowski <pawel.kulakowski@tieto.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39995 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: fix deletion of wds sta interfaces in AP modeFelix Fietkau2014-02-281-0/+13
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39765 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: link against librt if eglibc is usedFelix Fietkau2014-02-241-0/+4
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39741 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: add validation rules to wireless handlerJohn Crispin2014-02-181-6/+6
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39620 3c298f89-4303-0410-b956-a3cf2f4a3e73
* wifi: Introduce 802.11ac supportFelix Fietkau2014-02-032-0/+6
| | | | | | | | | | | | | | | | This patch introduces 802.11ac support to mac80211 and hostapd. The split of VHT160 in two 80 MHz bands is not yet supported, since it requires an additional user supplied parameter for the channel of the second band. Signed-off-by: Matti Laakso <malaakso@elisanet.fi> Signed-off-by: Simon Wunderlich <simon@open-mesh.com> [sven@open-mesh.com: Rebased patch, merged htmode and vhtmode, removed special hwmode, replaced uci vht_capab list with overwritable autoconfig, fixed hostapd integration, fixed commit description, add HT40+/- for VHT modes, add VHT40 center_freq autoconfig, refactored major parts] Signed-off-by: Sven Eckelmann <sven@open-mesh.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39456 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: do not get basic_rate as a simple string variableFelix Fietkau2014-02-021-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39448 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: fix basic rate list handling with netifdFelix Fietkau2014-01-311-1/+7
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39431 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: fix frequency selection for ap+staFelix Fietkau2014-01-304-13/+23
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39426 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: Fix 80211w setup with netifdJo-Philipp Wich2014-01-281-1/+1
| | | | | | Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39412 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: Fix basic_rate setup with netifdJo-Philipp Wich2014-01-281-0/+1
| | | | | | Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39411 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: fix mcast_rate settingJohn Crispin2014-01-141-1/+1
| | | | | | | | | | Introduced by ("netifd: add wireless configuration support and port mac80211 to the new framework") Reported-by: René van Weert <r.vanweert@sowifi.com> Signed-off-by: Antonio Quartulli <antonio@meshcoding.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39288 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: fix frequency setting for IBSS/RSNJohn Crispin2014-01-121-2/+4
| | | | | | | | | | Introduced by ("netifd: add wireless configuration support and port mac80211 to the new framework") Reported-by: René van Weert <rene@sowifi.com> Signed-off-by: Antonio Quartulli <antonio@meshcoding.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39231 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: fix mixed wep/wpa with netifdFelix Fietkau2013-12-281-0/+1
| | | | | | Signed-off-by: Catalin Patulea <cat@vv.carleton.ca> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39174 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: fix the uci option name for ap isolateFelix Fietkau2013-12-281-5/+5
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39173 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: fix wep with netifdFelix Fietkau2013-12-231-4/+4
| | | | | | Signed-off-by: Catalin Patulea <cat@vv.carleton.ca> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39156 3c298f89-4303-0410-b956-a3cf2f4a3e73
* wpa_supplicant: fix interface combination parsing issuesFelix Fietkau2013-12-211-0/+18
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39155 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: move old wifi setup scripts to hostapd-common-oldFelix Fietkau2013-12-161-4/+13
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39103 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: fix short_preamble optionJo-Philipp Wich2013-12-101-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39027 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: properly parse wmm and hidden uci options (#14589)Jo-Philipp Wich2013-12-081-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39005 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: fix maclist processing with netifdFelix Fietkau2013-12-031-2/+3
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38991 3c298f89-4303-0410-b956-a3cf2f4a3e73