Commit Graph

33 Commits

Author SHA1 Message Date
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
2014-06-13 10:10:05 +00:00
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
2014-06-02 12:44:54 +00:00
Felix Fietkau
2ddcd59f16 mac80211: fix stbc configuration
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40783
2014-05-19 22:19:07 +00:00
Felix Fietkau
385b08d475 mac80211: fix ht capabilities for HT20
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40776
2014-05-18 21:13:03 +00:00
Felix Fietkau
8a75eac80b mac80211: fix VHT80 channel allocation (thx, SeG)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40770
2014-05-15 20:02:59 +00:00
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
2014-05-06 15:43:08 +00:00
Felix Fietkau
32a806cf8a mac80211: remove obsolete check for enable_ht
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40694
2014-05-03 21:18:53 +00:00
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
2014-05-03 21:14:59 +00:00
Felix Fietkau
8897093981 mac80211: add support for htmode=VHT20
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40686
2014-05-03 19:58:54 +00:00
Felix Fietkau
a9aee857de mac80211: force upper channel for HT40 when autochannel is enabled
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40685
2014-05-03 18:50:06 +00:00
Felix Fietkau
4bd862a300 mac80211: add automatic ht40 mode handling for 2.4 ghz
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40684
2014-05-03 18:44:32 +00:00
Felix Fietkau
54625965c4 mac80211: clean up vht capability processing
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40683
2014-05-03 18:38:24 +00:00
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
2014-05-03 18:38:20 +00:00
Felix Fietkau
52846f0ff5 mac80211: disable 802.11n support if htmode is not set to HT* or VHT*
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40681
2014-05-03 18:38:16 +00:00
Felix Fietkau
24791e0dd8 mac80211: simplify HT40 handling, derive lower/upper channel mode automatically from channel index
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40680
2014-05-03 18:38:09 +00:00
John Crispin
3bc77db5f5 802.11s: fix authsae support in netifd
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>

SVN-Revision: 40497
2014-04-12 21:22:17 +00:00
Imre Kaloz
23e3526dc4 update regulatory database to 2013-11-27
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 40293
2014-03-27 11:28:51 +00:00
Felix Fietkau
cec0f8420d mac80211: declare missing config parameter mesh_id
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39766
2014-02-28 18:08:16 +00:00
John Crispin
7d4103ddd4 mac80211: add validation rules
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39622
2014-02-18 13:34:08 +00:00
Felix Fietkau
38587f87ed wifi: Introduce 802.11ac support
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>

SVN-Revision: 39456
2014-02-03 13:31:44 +00:00
Felix Fietkau
6106bdd002 mac80211: fix basic rate list processing in ad-hoc mode
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39450
2014-02-02 14:25:09 +00:00
Felix Fietkau
c95698e596 mac80211: fix processing of the distance option (#14893)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39447
2014-02-02 14:02:56 +00:00
John Crispin
c1a2a87f3a netifd: fix mac80211.sh to respect setting of mcast_rate
This patch fixes a bug in /lib/netifd/wireless/mac80211.sh, where
the UCI setting of wireless multicast traffic (in uci: mcast_rate)
is not respected within netifd. Especially in Freifunk mesh networks
the olsr routing as effected by this, as only the lowest mcast_rate
was used, even when uci ncast_rate was set to something else.
In function mac80211_setup_adhoc() the value of mcast_rate is missing
in json_get_vars.

Signed-off-by: Thomas Huehn <thomas@net.t-labs.tu-berlin.de>

SVN-Revision: 39232
2014-01-12 12:07:15 +00:00
Jo-Philipp Wich
10972d9f02 mac80211: add missing set_default to fix stray "radio0: sh: bad number" messages
SVN-Revision: 39028
2013-12-10 16:24:52 +00:00
Felix Fietkau
be0395261b mac80211: fix using custom wifi-iface ifname option with netifd
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39003
2013-12-08 18:00:01 +00:00
Felix Fietkau
ee2cd0354c mac80211: fix ad-hoc network setup with netifd (#14564)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 38993
2013-12-03 16:22:56 +00:00
Felix Fietkau
498d84fc4e netifd: add wireless configuration support and port mac80211 to the new framework
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 38988
2013-12-02 16:41:03 +00:00
Felix Fietkau
15b4975925 hostapd: add support for auto-channel selection
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 38915
2013-11-25 15:43:30 +00:00
Hauke Mehrtens
c43d2285e0 mac80211: update regdb.txt
This was copied from wireless-regdb.git commit a14052b85e5d70e37a31962a9c56c0cdbb9acafc

The passive-scan/no-ibss flag of channels 36-48 in the world regd were
removed like it was done in r32126.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 38797
2013-11-13 22:36:12 +00:00
Felix Fietkau
39ab281fae mac80211: Handle concurrent AP/STA beaconing properly
Use the "start_disabled" option in hostapd that was added
in the earlier patch.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>

SVN-Revision: 37732
2013-08-06 17:59:09 +00:00
Felix Fietkau
4478c69b86 authsae: adapt uci scripts to use authsae
This patch modifies the uci scripts to be able to
start meshd-nl80211 for encrypted mesh networks,
therefor a new script (authsae.sh) is inserted.

Signed-off-by: Emanuel Taube <emanuel.taube@gmail.com>
[etienne.champetier@free.fr: just update mac80211.sh path]
Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>

SVN-Revision: 37554
2013-07-26 10:02:59 +00:00
Felix Fietkau
299c2ceafa mac80211: tweak mac address allocation
Apparently there are some broken devices out there that have the local
bit already set in the factory MAC address. Move the | 0x2 over to the
other side of the xor operation to fix this without affecting devices
with proper addresses.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 37269
2013-07-13 11:39:48 +00:00
John Crispin
4ebf19b48f packages: clean up the package folder
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37007
2013-06-21 16:54:37 +00:00