aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/sbin/wifi
Commit message (Collapse)AuthorAgeFilesLines
* base-files: wifi: add support for 802.11adDaniel Golle2021-01-051-0/+1
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* base-files: include 'reconf' in help output of 'wifi' commandDaniel Golle2019-11-181-1/+1
| | | | | Reported-by: Dirk Brenken <dev@brenken.org> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* base-files: add 'wifi reconf'John Crispin2019-11-121-0/+5
| | | | | | | | Now that netifd and hostapd allow dynamic reconfiguration, add a command to trigger it. Signed-off-by: John Crispin <john@phrozen.org> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* base-files: make wifi report unknown commandThibaut VARÈNE2018-08-101-2/+3
| | | | | | | | | | | Avoid having /sbin/wifi silently ignore unknown keywords and execute "up"; instead display the help message and exit with an error. Spell out the "up" keyword (which has users), add it to usage output, and preserve the implicit assumption that runing /sbin/wifi without argument performs "up". Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
* base-files: Added a deprecation notice on wifi detectDavid Pinilla Caparrós2017-02-131-1/+7
| | | | | | | | When running wifi detect, the user will be told on error output that wifi detect is deprecated, that wifi config must be used instead. Also the commit that changes it is referenced for further info. Signed-off-by: David Pinilla Caparrós <dpinitux@gmail.com>
* base-files: Add wifi config to wifi command usageDavid Pinilla Caparrós2017-02-131-2/+2
| | | | | | | | | | Since commit 5f8f8a366136a07df661e31decce2458357c167a wifi detect does not longer work and wifi config it's used to configure not yet configured wireless devices. This commit changes command usage to reflect that change. Signed-off-by: David Pinilla Caparrós <dpinitux@gmail.com>
* base-files, mac80211, broadcom-wl: wifi detection and configurationChristian Lamparter2016-11-031-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, the wifi detection script is executed as part of the (early) boot process. Pluggable wifi USB devices, which are inserted at a later time are not automatically detected and therefore they don't show up in LuCI. A user has to deal with wifi detection manually, or restart the router. However, the current "sleep 1" window - which the boot process waits for wifi devices to "settle down" - is too short to detect wifi devices for some routers anyway. For example, this can happen with USB WLAN devices on the WNDR4700. This is because the usb controller needs to load its firmware from UBI and initialize, before it can operate. The issue can be seen on a BT HomeHub 5A as well as soon as the caldata are on an ubi volume. This is because the ath9k card has to be initialized by owl-loader first. Which has to wait for the firmware extraction script to retrieve the pci initialization values inside the caldata. This patch moves the wifi configuration to hotplug scripts. For mac80211, the wifi configuration will now automatically run any time a "ieee80211" device is added. Likewise broadcom-wl's script checks for new "net" devices which have the "wl$NUMBER" moniker. Issues with spawning multiple interface configuration - in case the detection script is run concurrently - have been resolved by using a named section for the initial configuration. Concurrent configuration scripts will now simply overwrite the same existing configuration. A workaround which preserves the "sleep 1" window for just the first boot has been added. This allows the existing brcm47xx boot and mvebu uci-default scripts to correctly setup the initial mac addresses and regulatory domain. And finally, the patch renames the "wifi detect" into "wifi config". As the script no longer produces any output that has to be redirected or appended to the configuration file. Thanks to Martin Blumenstingl for helping with the implementation and testing of the patch. Acked-by: Jo-Philipp Wich <jo@mein.io> Signed-off-by: Mathias Kresin <dev@kresin.me> Signed-off-by: Christian Lamparter <chunkeey@gmail.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
* base-files: generate /etc/config/wireless, if it doesn't existMathias Kresin2016-11-031-0/+2
| | | | | | | | | | | | This patch adds a check in "wifi detect" to test if the wireless configuration file does exist. If it doesn't exist, an empty /etc/config/wireless file will be created. This is necessary because uci doesn't create new files, instead the tool just exits with "uci: Entry not found". Signed-off-by: Mathias Kresin <dev@kresin.me> Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* base-files: remove non-working filter option for wifi detectChristian Lamparter2016-10-041-2/+2
| | | | | | | | | | | This patch removes the non-working wifi driver filter for the wifi detection script. I figured that rather than replacing ${2:-$DRIVERS} with ${1:-$DRIVERS}, it would be better to remove it. Nobody needed it in the previous years. Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* 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> SVN-Revision: 42911
* /sbin/wifi: reload network/wireless on wifi restartFelix Fietkau2013-12-111-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 39036
* base-files: fix whitespacesLuka Perkov2013-12-091-3/+3
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 39006
* wifi: restart netifd wifi interfaces on the "up" command like the old variantFelix Fietkau2013-12-021-0/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 38990
* wifi: rename the "reload" (restarting non-netifd wifi) command to ↵Felix Fietkau2013-12-021-1/+7
| | | | | | | | | | "reload_legacy" Add a new "reload" command that reloads the netifd config as well Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 38989
* netifd: add wireless configuration support and port mac80211 to the new ↵Felix Fietkau2013-12-021-7/+32
| | | | | | | | framework Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 38988
* base-files: allow wireless ifaces to be part of multiple networksJo-Philipp Wich2012-06-261-4/+9
| | | | SVN-Revision: 32503
* /etc/functions.sh => /lib/functions.shJo-Philipp Wich2012-06-051-1/+1
| | | | SVN-Revision: 32062
* base-files: properly handle wifi ifaces with no network attached, useful for ↵Jo-Philipp Wich2011-11-081-3/+5
| | | | | | unmanaged interfaces like used for batman or monitoring SVN-Revision: 28860
* netifd: ensure that a bridge gets created before hostapd needs it, hostapd ↵Felix Fietkau2011-11-041-0/+1
| | | | | | must not attempt to create the bridge by itself SVN-Revision: 28745
* adds a --help option to /sbin/wifiFlorian Fainelli2010-12-051-0/+9
| | | | | | Signed-off-by: Sebastian Philipp <sebastian@spawnhost.de> SVN-Revision: 24258
* wifi: fix duplicate ht capabilities in the hostapd config file by clearing ↵Felix Fietkau2010-07-081-4/+13
| | | | | | the list at config load time SVN-Revision: 22099
* /sbin/wifi: improve reliability of restarts by resetting the state properlyFelix Fietkau2010-02-021-2/+7
| | | | SVN-Revision: 19495
* fix a typo in the hwmode handling in /sbin/wifi (thx, maddes)Felix Fietkau2010-01-241-1/+1
| | | | SVN-Revision: 19313
* base-files, mac80211 (#6491) - fix wep key handling in iw with mac80211 ↵Jo-Philipp Wich2010-01-131-0/+13
| | | | | | based drivers - sanitize keys where necessary - put a procedure prepare_key_wep() into /sbin/wifi for use by other driver backends SVN-Revision: 19118
* In wifi_fixup_hwmode the value 11bg for hwmode was not transfered to bg.Hauke Mehrtens2009-04-091-0/+1
| | | | SVN-Revision: 15180
* wifi: fix hostapd + autochannelFelix Fietkau2009-03-271-0/+34
| | | | SVN-Revision: 15055
* - fix mac assignment for broadcom vifs in bridging mode - thanks abramoff1 ↵Jo-Philipp Wich2009-03-251-1/+2
| | | | | | for spotting this - fix possible regression with different interface protocols - bump PKG_RELEASE SVN-Revision: 15042
* sync macs with vif bssids in broadcom.sh, fixes multi-ssid with wpaJo-Philipp Wich2009-03-241-1/+1
| | | | SVN-Revision: 15028
* use pidfiles for hostapd/wpa_supplicant instead of killing all processes ↵Felix Fietkau2008-10-291-0/+2
| | | | | | when bringing an interface down - fixes an issue with random hostapd death SVN-Revision: 13078
* make sure that the dhcp client (or other processes necessary to get a ↵Felix Fietkau2008-10-231-0/+1
| | | | | | connection) gets restarted when the wifi is restarted SVN-Revision: 13026
* Here comes the new UCI. Enjoy :)Felix Fietkau2008-02-031-7/+4
| | | | SVN-Revision: 10367
* tab/whitespace fixFelix Fietkau2007-08-041-5/+5
| | | | SVN-Revision: 8338
* fix an error messageFelix Fietkau2007-07-221-0/+2
| | | | SVN-Revision: 8109
* keep track of the wifi interface state in /var/state/wirelessFelix Fietkau2007-07-221-0/+19
| | | | SVN-Revision: 8108
* add a workaround for the hostapd killed issue when using more than one wifi ↵Felix Fietkau2007-07-201-0/+1
| | | | | | card (#1928, #2040) SVN-Revision: 8077
* more fixesFelix Fietkau2007-06-151-1/+1
| | | | SVN-Revision: 7639
* small cleanupFelix Fietkau2007-03-241-14/+18
| | | | SVN-Revision: 6663
* add a new 'option disabled' to wifi-deviceMike Baker2007-03-161-17/+10
| | | | SVN-Revision: 6576
* move config_get_bool from /sbin/wifi to /etc/functions.shFelix Fietkau2007-02-271-11/+0
| | | | SVN-Revision: 6407
* fix typo in /sbin/wifi (#1016 - thanks, dairiki)Felix Fietkau2006-12-041-1/+1
| | | | SVN-Revision: 5689
* rename default/ to files/Felix Fietkau2006-11-221-0/+116
SVN-Revision: 5622