Commit Graph

70 Commits (fa69553900516944fc43cf7b377105ea1f6d3db0)

Author SHA1 Message Date
John Crispin fa69553900 branding: add LEDE branding
Signed-off-by: John Crispin <blogic@openwrt.org>
8 years ago
Felix Fietkau 145a6e9db9 mac80211: only strip the platform/ prefix from path for pci devices
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48440
8 years ago
Felix Fietkau d13a1ce9d7 mac80211: fix check for existing config section from r48426
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48439
8 years ago
Felix Fietkau d9b20a6f35 mac80211: strip platform/ prefix from device path to improve compatibility between kernel versions
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48426
8 years ago
Felix Fietkau 95965cd813 mac80211: make the path phy lookup more robust regarding config upgrades, allow partial path matching
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48425
8 years ago
Imre Kaloz 2a170e4086 mac80211: resync regulatory db with master-2015-12-14
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 48219
8 years ago
Jo-Philipp Wich 3041fbb4d2 mac80211: fix passing of VHT80 in IBSS mode
The "iw" utility expects the VHT80 to be specified as uppercase "80MHZ",
change the script to reflect that.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47814
9 years ago
Jo-Philipp Wich 713f698bd4 mac80211: fix disabling HT in IBSS mode (#21340)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47813
9 years ago
Felix Fietkau 028666e75f mac80211: Allow to select VHT80 in IBSS mode
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 47781
9 years ago
Felix Fietkau d293f33558 mac80211: restricted automatic channel selection
Add a new config option "channels" for mac80211 wifi devices. It's only
valid if automatic channel selection is used and restricts the channel
selection to one of the given channels.

config wifi-device
	list channels	1
	list channels	6
	list channels	11

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

SVN-Revision: 47427
9 years ago
Felix Fietkau 08f1e1b3ac mac80211: set mcast-rate for mesh point interfaces
In order to set the multicast rate for mesh point interfaces the "mesh join"
was made explicit and moved to mac80211_setup_vif(), similar to how it is
done for IBSS interfaces.

Previously, the mesh join was made implicit in case authentication (i.e.
$key) was not used when creating the interface in mac80211_prepare_vif(),
while using authentication would create the interface first, then join
later in mac80211_setup_vif() by starting authsae.

Signed-off-by: Nils Schneider <nils@nilsschneider.net>

SVN-Revision: 47408
9 years ago
Felix Fietkau 8babf4654c mac80211: update regulatory database to master-2015-10-22
Signed-off-by: Andrej Vlasic <andrej.vlasic0@gmail.com>

SVN-Revision: 47297
9 years ago
Steven Barth e07959cade package: replace ifconfig-usage with ip
Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 46832
9 years ago
Felix Fietkau eaf33c36bf mac80211: update regulatory database to master-2015-06-05
Signed-off-by: Petko Bordjukov <bordjukov@gmail.com>

SVN-Revision: 46209
9 years ago
Felix Fietkau ecaacad14d hostapd: move ht_coex variable to mac80211.sh, guarded by 802.11n support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45917
9 years ago
Felix Fietkau fa2dfdb74b mac80211: make netifd script create AP interface directly
Before starting hostapd we create interface for it. The problem is we
try to create STA interface just to let hostapd change it to AP later.

It may fail if device doesn't support STA interfaces or if we already
hit a limit. Consider following phy (it's from BCM43602 and brcmfmac):
$ iw phy phy0 info | tail
        valid interface combinations:
                 * #{ IBSS, managed } <= 1, #{ AP } <= 4, #{ P2P-client, P2P-GO } <= 1, #{ P2P-device } <= 1,
                   total <= 3, #channels <= 1

Trying to setup 2 interfaces: STA + AP results in:
radio0 (1101): command failed: Operation not supported (-95)
radio0 (1101): command failed: Operation not supported (-95)
radio0 (1101): command failed: Operation not supported (-95)
radio0 (1101): command failed: Operation not supported (-95)
radio0 (1101): Configuration file: /var/run/hostapd-phy0.conf
radio0 (1101): Could not read interface wlan0-1 flags: No such device

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45856
9 years ago
Felix Fietkau 29f8f90de4 mac80211: apply mesh parameters after starting authsae/wpa_supplicant (#16697)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45651
9 years ago
Felix Fietkau e2e2fb168b mac80211: fallback to wpa_supplicant to setup encrypted mesh
instead of failing when authsae is not installed, also try using
wpa_supplicant as the newly added -mesh variants support mesh mode
and SAE encryption.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 45520
9 years ago
Felix Fietkau daaed6f251 netifd: fix start_disabled 'sh: bad number' in mac80211 setup (bug #19345)
Two errors "netifd: radio0: sh: bad number" have recently surfaced in system
log in trunk when wifi interfaces come up. I tracked the errors to checking
numerical values of some config options without ensuring that the option has
any value.

The errors I see have apparently been introduced by r45051 (ieee80211r in
hostapd) and r45326 (start_disabled in mac80211). My patches fix two
instances of "bad number", but there may be a third one, as the original
report in bug 19345 pre-dates r45326 and already has two "bad number" errors
for radio0.

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

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>

SVN-Revision: 45379
9 years ago
John Crispin d564779563 mac80211: add start_disabled option
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45326
9 years ago
Imre Kaloz 211a4484a1 mac80211: fix 5ghz variable name
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 44907
9 years ago
Imre Kaloz 8f91c80ea1 mac80211: when looking for VHT, check 5GHz support as well
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 44906
9 years ago
John Crispin a0cc6803c8 mac80211: Revert adding SM Power Save capability to hostapd configuration
Part of rev 44173 added setting the SM Power Save capability in the hostapd.conf
file if the driver indicated that it was supported. It appears this was
incorrect, because the field in the actual HT Capabilities field in the AP
configuration is really a state indication. Just copying the state from the
capability resulted in the AP indicating that it had SMPS enabled all the time
if it supported SMPS. This effectively just disables all clients from sending
packets to the AP with more than one spatial stream, for no good reason.
So remove this part of the change.

Signed-off-by: Robert Hancock <hancockrwd@gmail.com>

SVN-Revision: 44239
9 years ago
John Crispin 04f104e74d mac80211: Add some missing 802.11n capabilities to hostapd configuration
Add some missing 802.11n capabilities to the hostapd ht_capab string when
supported by the hardware: Spatial Multiplexing Power-Save and 7935-byte AMSDUs.

Signed-off-by: Robert Hancock <hancockrwd@gmail.com>

SVN-Revision: 44173
9 years ago
John Crispin e0aaac8434 mac80211: fix fallback to macaddr
If '/sys/class/ieee80211/phyN' is not a symlink, the call to readlink
produces either an empty path (if /sys/class/ieee80211/phyN/device doesn't
exist) or a path that begins with '/sys/class/ieee80211' (which does not
work with the subsequent line to strip '/sys/devices' from the beginning of
the path).  Modify the checks to detect these conditions, and fallback to
using the macaddr.

Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>

SVN-Revision: 44172
9 years ago
Felix Fietkau 768d09be87 mac80211/hostapd: fix HT mode setup for RSN ad-hoc networks
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 44100
9 years ago
Felix Fietkau b898695bdd mac80211: fix ad-hoc basic/multicast rate regression from r43782
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43853
10 years ago
Felix Fietkau ff3464eb30 mac80211: fix HT mode selection for ad-hoc
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43769
10 years ago
Felix Fietkau 22b42b4233 mac80211: update regdb to master-2014-11-18
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43408
10 years ago
Felix Fietkau 4d99db168c mac80211: try to get interface addresses from wiphy sysfs 'addresses' if no mask is set
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43326
10 years ago
John Crispin 20940138ac scripts: fix wrong usage of '==' operator
[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
10 years ago
Felix Fietkau 2e9157a866 mac80211: remove NO-IR from channel 36-48
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 42882
10 years ago
Felix Fietkau fbe1b7ecdf mac80211: remove error from detect script
Signed-off-by: Michel Stam <m.stam@fugro.nl>

SVN-Revision: 42861
10 years ago
Jo-Philipp Wich 1c0557cfa8 mac80211: support wildcard paths when matching phys
This change introduces support for wildcard patterns in "option path"
of section "wifi-device".

Objective is to allow paths like "*/usb[0-9]/*/*" in order to claim
any usb device using the same backend type, regardless of its bus
address or phy name.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 41873
10 years ago
Felix Fietkau f34cbdcf61 mac80211: Fix config variable name for dtim_period
The vif option dtim_period was accidently renamed dtim_interval in r38988
("netifd: add wireless configuration support and port mac80211 to the new
framework"). This is wrong and makes the dtim_period/dtim_interval a dead
option because the rest of the config generation code still uses dtim_period.

Reported-by: Jeppe Ledet-Pedersen <jlp@steinwurf.com>
Signed-off-by: Sven Eckelmann <sven@narfation.org>

SVN-Revision: 41557
10 years ago
Hauke Mehrtens eef5698535 mac80211: update regulatory database to master-2014-06-13
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 41489
10 years ago
Felix Fietkau 2c9c7ada6e mac80211: disable greenfield by default
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 41300
10 years ago
Felix Fietkau 867ba199f8 mac80211: fix disabling of 802.11n features
r40682 ("mac80211: clean up ht capability handling, drop the use of the
ht_capab list, use individual variables instead") removed the ht_capab list and
replaced it with optional variables to disable features for a phy. But these
variables weren't added in drv_mac80211_init_device_config and thus didn't make
any difference when modifying /etc/config/wireless.

Signed-off-by: Sven Eckelmann <sven@narfation.org>

SVN-Revision: 41180
10 years ago
John Crispin 43de2d08de mac80211: query driver for max A-MPDU length exponent
This patch enables netifd to query 802.11ac-driver for the maximum
supported A-MPDU length exponent, possibly increasing VHT throughput by
more aggressive frame aggregation.

v2: refreshed patch

Signed-off-by: Matti Laakso <malaakso at elisanet.fi>

SVN-Revision: 40938
10 years ago
Felix Fietkau 2ddcd59f16 mac80211: fix stbc configuration
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40783
10 years ago
Felix Fietkau 385b08d475 mac80211: fix ht capabilities for HT20
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40776
10 years ago
Felix Fietkau 8a75eac80b mac80211: fix VHT80 channel allocation (thx, SeG)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40770
10 years ago
Felix Fietkau 1268274b5d mac80211: reset ht_capab for each device
... or else "option htmode" is added multiple times to
the second and following device sections.

Signed-off-by: Reiner Herrmann <reiner@reiner-h.de>

SVN-Revision: 40711
10 years ago
Felix Fietkau 32a806cf8a mac80211: remove obsolete check for enable_ht
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40694
10 years ago
Felix Fietkau bc86119785 mac80211: remove mode_11n variable for hwmode - the option only selects the band now
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40693
10 years ago
Felix Fietkau 8897093981 mac80211: add support for htmode=VHT20
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40686
10 years ago
Felix Fietkau a9aee857de mac80211: force upper channel for HT40 when autochannel is enabled
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40685
10 years ago
Felix Fietkau 4bd862a300 mac80211: add automatic ht40 mode handling for 2.4 ghz
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40684
10 years ago
Felix Fietkau 54625965c4 mac80211: clean up vht capability processing
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40683
10 years ago
Felix Fietkau 58bda3a0e1 mac80211: clean up ht capability handling, drop the use of the ht_capab list, use individual variables instead
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40682
10 years ago