Commit Graph

81 Commits (136f69bd2a026a0f1cafc8a5d60515b65c34a37a)

Author SHA1 Message Date
Vasilis Tsiligiannis 65e7aa8087 [package] mac80211: Fix unique device autodetection
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26165 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-15 00:44:02 +00:00
Felix Fietkau 5591ace0a6 mac80211: allow AP configuration of beacon interval, DTIM period, maximum permissible STA listen interval, and basic rates
This introduces beacon_int and basic_rate (per wifi-device), and
dtim_period and max_listen_int (per wifi-iface) for mac80211. These
configure the beacon interval, basic rate specification, DTIM period
(one DTIM per this many beacon frames), and maximum listen interval
that a STA will be permitted to associate with. All of the new
settings are optional; if they're absent, the existing hostapd (or, in
the case of basic_rate, driver) defaults will be used.

The existing bintval property only used for type adhoc is moved from
wifi-iface to wifi-device, and is renamed to beacon_interval because
bintval isn't a great name. The beacon interval is property of the
wifi-device; while the choice between wifi-device and wifi-iface may
not be relevant with an adhoc network, there's no reason to configure
the same property one way for type adhoc and another for type ap. This
change isn't expected to cause many problems, as bintval was added
recently, in r25111.

Similarly, the list of basic rates, also added for type adhoc in
r25111, is a property of the device and not the interface. Further, it
ought to be represented in UCI as a list, not a string dependent on
the format that iw uses. I’ve moved it onto the device, renamed it to
basic_rate, and made it configurable for APs via hostapd. Finally, I
adapted it to use the same kb/s representation as mcast_rate; there's
precedent for this format in that it's also how madwifi interprets
mcast_rate.

Neither bintval nor basicrates were ever documented in the UCI
wireless configuration page on the wiki. When this change is
committed, I'll update the documentation as needed.

Signed-off-by: Mark Mentovai <mark@moxienet.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25837 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-02 21:08:28 +00:00
Felix Fietkau bbcfba7a14 mac80211: ignore errors in the command to set the rx/tx antenna - many drivers do not support this yet
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25192 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-28 12:01:54 +00:00
Jo-Philipp Wich 0b6231764c [package] mac80211: fix order of iw parameters, fix broken antenna config call
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25152 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-27 16:00:02 +00:00
Vasilis Tsiligiannis 0d0e90ea5a [package] mac80211: Fix antenna setting when only one of {rx,tx}antenna options is specified
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25136 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-27 09:13:51 +00:00
Jo-Philipp Wich 7fcb5722b3 [package] mac80211: add missing done to mac80211.sh (#8735)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25131 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-26 21:01:23 +00:00
Jo-Philipp Wich b1a662ff4c [package] mac80211: add mising esac to mac80211.sh
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25122 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-26 20:37:12 +00:00
Jo-Philipp Wich e16cdee5c8 [package] mac80211: rework recent mac80211.sh additions:
- split antenna options into rxantenna and txantenna to bring it in line with broadcom and madwifi
	- get rid of temporary variables
	- follow the documented config protocol for wep keys (option key # + option key# [s:]data)


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25116 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-26 18:01:26 +00:00
Felix Fietkau 109fab6d63 mac80211: Add new parameters to mac80211.sh
Add new options 'bintval' (beacon interval), 'basicrates' (basic rates) and
'antenna' (antenna selection) for /etc/config/wireless to be used with
mac80211 drivers.

Enable WEP encryption for IBSS mode.

Patch from: kentarou matsuyama <matsuyama@thinktube.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25111 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-26 11:34:15 +00:00
Felix Fietkau d3e8689ee1 mac80211: Add mac address filter configuration for hostapd
Add support of mac address filter. Now 'macfilter' and 'maclist' options
can be used with mac80211.

Patch from: kentarou matsuyama <matsuyama@thinktube.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25105 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-26 11:33:54 +00:00
Jo-Philipp Wich a276aa5223 [package] mac80211: support per-vif wmm option, defaults to 1 if unset
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24966 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-11 13:19:53 +00:00
Jo-Philipp Wich 2b5c0fa988 [package] mac80211: rename max_clients option to maxassoc, this brings it in line with broadcom
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24726 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-19 13:33:55 +00:00
Felix Fietkau 3fb91bbae4 hostapd: add support for specifying the maximum number of clients
Signed-off-by: Alexander Couzens <lynxis@c-base.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24725 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-19 11:56:56 +00:00
Jo-Philipp Wich b0b20ac0a3 [package] mac80211: use iw for txpower control (#8416)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24441 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-10 18:43:47 +00:00
Felix Fietkau 6b9d594eea mac80211: set GF flag in hostapd config if supported
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23673 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-27 15:04:29 +00:00
Felix Fietkau a23760cc4b mac80211: add uci support for the ad-hoc multicast rate setting
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23637 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-25 23:51:12 +00:00
Felix Fietkau f0a8a11ddf hostapd/mac80211: implement support for AP+STA
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23602 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-23 23:39:54 +00:00
Felix Fietkau 7ec42bf72d wifi: change the default channel from 5 to 11, 5 was a really bad choice
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23423 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-13 12:22:48 +00:00
Jo-Philipp Wich 6f0e2ee88d [package] mac80211: fix handling of frag and rts options, thanks stintel!
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22355 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-22 16:01:17 +00:00
Felix Fietkau 940c4740a6 mac80211: fix interface teardown for kernels >= 2.6.33
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22078 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-06 18:53:48 +00:00
Felix Fietkau 07c4fcc4d4 mac80211: use the nl80211 driver for wpa_supplicant
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21321 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-02 22:03:54 +00:00
Felix Fietkau 686347eb55 mac80211: enable rx/tx stbc by default if supported
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21319 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-02 22:03:44 +00:00
Felix Fietkau e3754d3bad mac80211: fix interface setup for wds client
sometimes an interface does not get added to the bridge properly
this seems to be a race of interface setup vs wpa_supplicant
fix this by configuring the interface only after wpa_supplicant has been started

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20106 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-09 21:23:14 +00:00
Felix Fietkau 17efadd9ca mac80211: add support for the noscan option for skipping the initial scan on hostapd startup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20089 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-09 17:36:04 +00:00
Felix Fietkau 0c2d614860 mac80211: fix essid setting for ad-hoc (thx, stintel)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19916 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-28 19:05:32 +00:00
Felix Fietkau bbb7e33b6f mac80211: fix client mode
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19915 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-28 19:02:05 +00:00
Felix Fietkau 14376d2461 mac80211: fix interface startup order for AP+STA (patch by yann lopez)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19912 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-28 17:06:53 +00:00
Felix Fietkau 35458f9fd6 mac80211: always use wpa_supplicant for client connections (patch by Stijn Tintel)
Since client mode in mac80211is unreliable without using wpa_supplicant,
it would be better to enable wpa_supplicant by default.

With this patch, wpa_supplicant will always be used for mac80211-based
drivers in client mode. This will break client mode for images that
don't include wpa_supplicant or wpad, so maybe I need to add a check
somewhere to see if wpa_supplicant is available, and show the user a
warning if he tries client mode without wpa_supplicant. Suggestions on
where to add this check are welcome.

Tested with ath5k in client mode on open and wpa2-psk network, and
tested on my ath9k based AP as well to make sure it doesn't break AP mode.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19718 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-19 01:07:21 +00:00
Felix Fietkau 7be190edbd mac80211: use wpa_supplicant for unencrypted connections to improve client mode reliability (patch by Stijn Tintel from #6653)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19550 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-08 13:42:14 +00:00
Felix Fietkau 0596f724bb mac80211: fix setup with more than 2 ap mode interfaces
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19494 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-02 02:19:01 +00:00
Felix Fietkau f5c84a89d6 mac80211: restrict the killing of wpa_supplicant processes to the right interface (#5991)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19334 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-25 22:11:21 +00:00
Jo-Philipp Wich a21fd8b0a6 [package] mac80211: make b43-fwsquash.py work with python 3.x
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19307 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-24 02:26:57 +00:00
Felix Fietkau 1fe0eac4f4 mac80211: improve wifi interface cleanup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19285 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-23 08:28:20 +00:00
Jo-Philipp Wich cc6be25a60 [package] mac80211: fix spurious error return codes in enable_mac80211()
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19265 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-22 00:58:52 +00:00
Felix Fietkau d531b71f78 mac80211: fix hostapd wmm setting for multiple bss interfaces
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19264 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-22 00:55:10 +00:00
Felix Fietkau 7b22da898b mac80211: restructure /lib/wifi/mac80211.sh
use the new multi-bss single instance hostapd mode
move mac80211 specific bits out of /lib/wifi/hostapd.sh
add a new option 'htmode' for switching between HT20 and HT40+,HT40-

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19235 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-20 02:26:05 +00:00
Felix Fietkau de1350d8d9 mac80211: fix mac address handling for multiple phy/vif
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19177 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-17 01:52:45 +00:00
Felix Fietkau dd2a828462 mac80211: fix ht capability detection (thx, stintel)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19144 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-15 02:55:29 +00:00
Felix Fietkau 26ae0a26f9 mac80211: implement the distance setting
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19142 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-15 01:16:52 +00:00
Jo-Philipp Wich 5073e6db1e [package] base-files, mac80211 (#6491)
- fix wep key handling in iw with mac80211 based drivers
  - sanitize keys where necessary
  - put a procedure prepare_key_wep() into /sbin/wifi for use by other driver backends


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19118 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-13 18:39:44 +00:00
Michael Büsch 0a2797635d b43-fwsquash: ucode2.fw also supports core rev 3
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18948 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-26 23:20:24 +00:00
Hauke Mehrtens b1efecf94b [mac80211] b43 and b43legacy: squash firmware
Only G and L-PHY are supportted by b43 driver
Add squash firmware for b43legacy


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18947 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-26 23:15:16 +00:00
Hauke Mehrtens 37e5388bff [mac80211] b43: Add L-PHY firemware files to squash script
Use firmware 4.178.10.4 as default on.
Select firmware for all supported phy types and version as default.

Close ticket #5978


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18935 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-26 01:06:36 +00:00
Felix Fietkau 6887b9b476 mac80211: fix handling of vif mac addresses in /lib/wifi/mac80211.sh (patch from #6401)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18923 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-24 11:05:04 +00:00
Vasilis Tsiligiannis 75331950d0 [packages] mac80211: Don't echo missing physical device errors to wireless config file
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18896 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-22 21:45:08 +00:00
Felix Fietkau 12c45dea86 mac80211: fix RTS threshold not being set for mac80211 devices
A typo prevented it from working, tested with ar71xx and ath9k.

Signed-off-by: Otto Solares <solca@guug.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18719 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-09 17:22:25 +00:00
Felix Fietkau 2b3a751a63 mac80211: set the country code through iw reg, setting it only through hostapd apparently does not work
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18665 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-05 17:12:51 +00:00
Jo-Philipp Wich 92c4f4c6fb [package] mac80211: fix a shell syntax error
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18664 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-05 15:11:47 +00:00
Jo-Philipp Wich accf71c9a4 [package] mac80211: fix wpa handling in sta mode
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18662 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-05 15:08:25 +00:00
Felix Fietkau 480e0110b7 mac80211: rename autogenerated wifi-device sections from wifi* to radio* to prevent conflicts with madwifi interface naming
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18627 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-03 18:35:31 +00:00