Commit graph

87 commits

Author SHA1 Message Date
Jo-Philipp Wich
3aa922d33c mac80211: use first available channel from current phy if channel is set to "auto"
SVN-Revision: 27976
2011-08-13 22:55:59 +00:00
Hauke Mehrtens
6474dbe86b mac80211: always store broadcom firmware in b43 and b43legacy dir
This is always used to build a firmware for linux systems also if we are on freebsd.

This is one patch from #9897

SVN-Revision: 27926
2011-08-06 17:07:42 +00:00
Felix Fietkau
b4cef327ff ath9k: add a temporary uci option for setting the channel bandwidth
SVN-Revision: 27563
2011-07-08 17:19:42 +00:00
Felix Fietkau
e087e678af mac80211: configure HT IBSS through uci
SVN-Revision: 27279
2011-06-24 19:53:31 +00:00
Felix Fietkau
be3deb5b14 mac80211: broadcast the country IE by default if the country code is configured (#9308)
SVN-Revision: 26765
2011-04-26 19:33:27 +00:00
Hauke Mehrtens
cda9981625 mac80211: b43: Add Firmware 5.10.56.27
Add the 5.10.56.27 firmware option. This includes updating b43-fwcutter to
its newest release 14 and updating the b43-fwsquash.py to recognise rev 16
n phy files.

Also rename the current options from STABLE/EXPERIMENTAL to their version
numbers.

Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>

SVN-Revision: 26733
2011-04-19 21:40:08 +00:00
Vasilis Tsiligiannis
f55fe56225 mac80211: Fix unique device autodetection
SVN-Revision: 26165
2011-03-15 00:44:02 +00:00
Felix Fietkau
3494bdc59a 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>

SVN-Revision: 25837
2011-03-02 21:08:28 +00:00
Felix Fietkau
718645d581 mac80211: ignore errors in the command to set the rx/tx antenna - many drivers do not support this yet
SVN-Revision: 25192
2011-01-28 12:01:54 +00:00
Jo-Philipp Wich
a580764a9f mac80211: fix order of iw parameters, fix broken antenna config call
SVN-Revision: 25152
2011-01-27 16:00:02 +00:00
Vasilis Tsiligiannis
e6a9e6875a mac80211: Fix antenna setting when only one of {rx,tx}antenna options is specified
SVN-Revision: 25136
2011-01-27 09:13:51 +00:00
Jo-Philipp Wich
3b0c90325e mac80211: add missing done to mac80211.sh (#8735)
SVN-Revision: 25131
2011-01-26 21:01:23 +00:00
Jo-Philipp Wich
49d060dc1b mac80211: add mising esac to mac80211.sh
SVN-Revision: 25122
2011-01-26 20:37:12 +00:00
Jo-Philipp Wich
4e369e5378 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)
SVN-Revision: 25116
2011-01-26 18:01:26 +00:00
Felix Fietkau
0cd2b87f95 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>

SVN-Revision: 25111
2011-01-26 11:34:15 +00:00
Felix Fietkau
cfdfc8c05b 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>

SVN-Revision: 25105
2011-01-26 11:33:54 +00:00
Jo-Philipp Wich
253f4d82f2 mac80211: support per-vif wmm option, defaults to 1 if unset
SVN-Revision: 24966
2011-01-11 13:19:53 +00:00
Jo-Philipp Wich
7526fd8627 mac80211: rename max_clients option to maxassoc, this brings it in line with broadcom
SVN-Revision: 24726
2010-12-19 13:33:55 +00:00
Felix Fietkau
3347f8e360 hostapd: add support for specifying the maximum number of clients
Signed-off-by: Alexander Couzens <lynxis@c-base.org>

SVN-Revision: 24725
2010-12-19 11:56:56 +00:00
Jo-Philipp Wich
4dcba42342 mac80211: use iw for txpower control (#8416)
SVN-Revision: 24441
2010-12-10 18:43:47 +00:00
Felix Fietkau
3e7589ce1a mac80211: set GF flag in hostapd config if supported
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>

SVN-Revision: 23673
2010-10-27 15:04:29 +00:00
Felix Fietkau
c173d41012 mac80211: add uci support for the ad-hoc multicast rate setting
SVN-Revision: 23637
2010-10-25 23:51:12 +00:00
Felix Fietkau
35cdc5d722 hostapd/mac80211: implement support for AP+STA
SVN-Revision: 23602
2010-10-23 23:39:54 +00:00
Felix Fietkau
b7204be37b wifi: change the default channel from 5 to 11, 5 was a really bad choice
SVN-Revision: 23423
2010-10-13 12:22:48 +00:00
Jo-Philipp Wich
8344c770fc mac80211: fix handling of frag and rts options, thanks stintel!
SVN-Revision: 22355
2010-07-22 16:01:17 +00:00
Felix Fietkau
e0751eb57e mac80211: fix interface teardown for kernels >= 2.6.33
SVN-Revision: 22078
2010-07-06 18:53:48 +00:00
Felix Fietkau
99757d3336 mac80211: use the nl80211 driver for wpa_supplicant
SVN-Revision: 21321
2010-05-02 22:03:54 +00:00
Felix Fietkau
ef710f7cf3 mac80211: enable rx/tx stbc by default if supported
SVN-Revision: 21319
2010-05-02 22:03:44 +00:00
Felix Fietkau
8b9afa6f75 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
SVN-Revision: 20106
2010-03-09 21:23:14 +00:00
Felix Fietkau
ddb6eb9d51 mac80211: add support for the noscan option for skipping the initial scan on hostapd startup
SVN-Revision: 20089
2010-03-09 17:36:04 +00:00
Felix Fietkau
ee2c54569f mac80211: fix essid setting for ad-hoc (thx, stintel)
SVN-Revision: 19916
2010-02-28 19:05:32 +00:00
Felix Fietkau
13cfa88855 mac80211: fix client mode
SVN-Revision: 19915
2010-02-28 19:02:05 +00:00
Felix Fietkau
1c8fbfbaa6 mac80211: fix interface startup order for AP+STA (patch by yann lopez)
SVN-Revision: 19912
2010-02-28 17:06:53 +00:00
Felix Fietkau
d692a2340c 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.

SVN-Revision: 19718
2010-02-19 01:07:21 +00:00
Felix Fietkau
e1efddf19b mac80211: use wpa_supplicant for unencrypted connections to improve client mode reliability (patch by Stijn Tintel from #6653)
SVN-Revision: 19550
2010-02-08 13:42:14 +00:00
Felix Fietkau
52c2e565dd mac80211: fix setup with more than 2 ap mode interfaces
SVN-Revision: 19494
2010-02-02 02:19:01 +00:00
Felix Fietkau
8d689fedac mac80211: restrict the killing of wpa_supplicant processes to the right interface (#5991)
SVN-Revision: 19334
2010-01-25 22:11:21 +00:00
Jo-Philipp Wich
789ec837e9 mac80211: make b43-fwsquash.py work with python 3.x
SVN-Revision: 19307
2010-01-24 02:26:57 +00:00
Felix Fietkau
26c953db20 mac80211: improve wifi interface cleanup
SVN-Revision: 19285
2010-01-23 08:28:20 +00:00
Jo-Philipp Wich
946291c8d5 mac80211: fix spurious error return codes in enable_mac80211()
SVN-Revision: 19265
2010-01-22 00:58:52 +00:00
Felix Fietkau
eb1190bb29 mac80211: fix hostapd wmm setting for multiple bss interfaces
SVN-Revision: 19264
2010-01-22 00:55:10 +00:00
Felix Fietkau
ba7bfddaae 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-
SVN-Revision: 19235
2010-01-20 02:26:05 +00:00
Felix Fietkau
8bdee4acf7 mac80211: fix mac address handling for multiple phy/vif
SVN-Revision: 19177
2010-01-17 01:52:45 +00:00
Felix Fietkau
b8ef670202 mac80211: fix ht capability detection (thx, stintel)
SVN-Revision: 19144
2010-01-15 02:55:29 +00:00
Felix Fietkau
b35e22bd24 mac80211: implement the distance setting
SVN-Revision: 19142
2010-01-15 01:16:52 +00:00
Jo-Philipp Wich
cb30b52ec1 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
SVN-Revision: 19118
2010-01-13 18:39:44 +00:00
Michael Büsch
bced3bd81b b43-fwsquash: ucode2.fw also supports core rev 3
SVN-Revision: 18948
2009-12-26 23:20:24 +00:00
Hauke Mehrtens
abade416d1 b43 and b43legacy: squash firmware
Only G and L-PHY are supportted by b43 driver
Add squash firmware for b43legacy

SVN-Revision: 18947
2009-12-26 23:15:16 +00:00
Hauke Mehrtens
f1e9fb687b 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

SVN-Revision: 18935
2009-12-26 01:06:36 +00:00
Felix Fietkau
0a24ec2e4a mac80211: fix handling of vif mac addresses in /lib/wifi/mac80211.sh (patch from #6401)
SVN-Revision: 18923
2009-12-24 11:05:04 +00:00