aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/files/lib
Commit message (Collapse)AuthorAgeFilesLines
* mac80211: fix HT mode selection for ad-hocFelix Fietkau2014-12-221-3/+32
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43769 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mac80211: try to get interface addresses from wiphy sysfs 'addresses' if no ↵Felix Fietkau2014-11-191-1/+19
| | | | | | | | mask is set Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43326 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
* mac80211: remove error from detect scriptFelix Fietkau2014-10-091-4/+11
| | | | | | Signed-off-by: Michel Stam <m.stam@fugro.nl> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42861 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mac80211: support wildcard paths when matching physJo-Philipp Wich2014-07-292-6/+14
| | | | | | | | | | | | | 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41873 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mac80211: Fix config variable name for dtim_periodFelix Fietkau2014-07-101-1/+1
| | | | | | | | | | | | 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41557 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mac80211: disable greenfield by defaultFelix Fietkau2014-06-221-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41300 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mac80211: fix disabling of 802.11n featuresFelix Fietkau2014-06-131-0/+6
| | | | | | | | | | | | 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41180 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mac80211: query driver for max A-MPDU length exponentJohn Crispin2014-06-021-1/+20
| | | | | | | | | | | | 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40938 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mac80211: fix stbc configurationFelix Fietkau2014-05-191-2/+3
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40783 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mac80211: fix ht capabilities for HT20Felix Fietkau2014-05-181-1/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40776 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mac80211: fix VHT80 channel allocation (thx, SeG)Felix Fietkau2014-05-151-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40770 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mac80211: reset ht_capab for each deviceFelix Fietkau2014-05-061-0/+1
| | | | | | | | | ... or else "option htmode" is added multiple times to the second and following device sections. Signed-off-by: Reiner Herrmann <reiner@reiner-h.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40711 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mac80211: remove obsolete check for enable_htFelix Fietkau2014-05-031-178/+176
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40694 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mac80211: remove mode_11n variable for hwmode - the option only selects the ↵Felix Fietkau2014-05-031-2/+1
| | | | | | | | band now Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40693 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mac80211: add support for htmode=VHT20Felix Fietkau2014-05-031-1/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40686 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mac80211: force upper channel for HT40 when autochannel is enabledFelix Fietkau2014-05-031-0/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40685 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mac80211: add automatic ht40 mode handling for 2.4 ghzFelix Fietkau2014-05-031-3/+20
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40684 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mac80211: clean up vht capability processingFelix Fietkau2014-05-031-42/+22
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40683 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mac80211: clean up ht capability handling, drop the use of the ht_capab ↵Felix Fietkau2014-05-032-25/+52
| | | | | | | | list, use individual variables instead Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40682 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mac80211: disable 802.11n support if htmode is not set to HT* or VHT*Felix Fietkau2014-05-031-3/+7
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40681 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mac80211: simplify HT40 handling, derive lower/upper channel mode ↵Felix Fietkau2014-05-031-25/+12
| | | | | | | | automatically from channel index Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40680 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 802.11s: fix authsae support in netifdJohn Crispin2014-04-121-1/+14
| | | | | | | | | | 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
* mac80211: declare missing config parameter mesh_idFelix Fietkau2014-02-281-0/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39766 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mac80211: add validation rulesJohn Crispin2014-02-181-2/+2
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39622 3c298f89-4303-0410-b956-a3cf2f4a3e73
* wifi: Introduce 802.11ac supportFelix Fietkau2014-02-032-2/+179
| | | | | | | | | | | | | | | | 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
* mac80211: fix basic rate list processing in ad-hoc modeFelix Fietkau2014-02-021-2/+3
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39450 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mac80211: fix processing of the distance option (#14893)Felix Fietkau2014-02-021-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39447 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: fix mac80211.sh to respect setting of mcast_rateJohn Crispin2014-01-121-1/+1
| | | | | | | | | | | | | | 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39232 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mac80211: add missing set_default to fix stray "radio0: sh: bad number" messagesJo-Philipp Wich2013-12-101-0/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39028 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mac80211: fix using custom wifi-iface ifname option with netifdFelix Fietkau2013-12-081-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39003 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mac80211: fix ad-hoc network setup with netifd (#14564)Felix Fietkau2013-12-031-3/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38993 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: add wireless configuration support and port mac80211 to the new ↵Felix Fietkau2013-12-022-532/+443
| | | | | | | | framework Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38988 3c298f89-4303-0410-b956-a3cf2f4a3e73
* hostapd: add support for auto-channel selectionFelix Fietkau2013-11-251-6/+3
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38915 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mac80211: Handle concurrent AP/STA beaconing properlyFelix Fietkau2013-08-061-1/+6
| | | | | | | | | Use the "start_disabled" option in hostapd that was added in the earlier patch. Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37732 3c298f89-4303-0410-b956-a3cf2f4a3e73
* authsae: adapt uci scripts to use authsaeFelix Fietkau2013-07-261-6/+18
| | | | | | | | | | | | 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37554 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mac80211: tweak mac address allocationFelix Fietkau2013-07-131-1/+1
| | | | | | | | | | | 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37269 3c298f89-4303-0410-b956-a3cf2f4a3e73
* packages: clean up the package folderJohn Crispin2013-06-211-0/+641
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37007 3c298f89-4303-0410-b956-a3cf2f4a3e73