Commit Graph

114 Commits (c7d9d7c9522a9dc612d917fd879a046e7b582295)

Author SHA1 Message Date
Felix Fietkau 8516ddb133 mac80211, hostapd: Fix macfilter for multi bssid setups
Previously only the first macfilter configuration would have been used
on all interfaces. However, the configuration was always done per vif
already. Hence, move the macfilter setup into hostapd.sh where and
create one mac list file per vif.

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

SVN-Revision: 34470
12 years ago
Felix Fietkau 07933a6644 mac80211: fix typo that broke specifying the phy name directly (deprecated)
SVN-Revision: 33853
12 years ago
Felix Fietkau e36eb8579f mac80211: store the device path as identifier in the config instead of the mac address, makes it more robust against card replacement or user errors
SVN-Revision: 33834
12 years ago
Hauke Mehrtens d14c6b29eb tools: add b43-tools
Move the b43-tools build from the mac80211 Makefile into an own package in tools and use the newest version of b43-tools.

SVN-Revision: 33668
12 years ago
Felix Fietkau a31bdfbea0 mac80211: add uci support for configuring antenna gain
SVN-Revision: 33587
12 years ago
Hauke Mehrtens 7401a7a672 mac80211: fiy typo in b43-fwsquash.py
Thanks Jonas

SVN-Revision: 33529
12 years ago
Hauke Mehrtens 8f0d711550 mac80211: fix b43 firmware squash for HT and LCN firmware, one file was missing for both.
SVN-Revision: 33505
12 years ago
John Crispin 7639c9b580 mac80211/hostapd: add support for HT capa in case of IBSS/RSN
Signed-off-by: Antonio Quartulli <ordex@autistici.org>

SVN-Revision: 32830
12 years ago
John Crispin 8b3882224a wpa_supplicant: add more parameters
Signed-off-by: Antonio Quartulli <ordex@autistici.org>

SVN-Revision: 32829
12 years ago
Travis Kemen 62d9f257a1 mac80211: make channel bandwidth setting generic
SVN-Revision: 32596
12 years ago
Felix Fietkau 809cc8a435 mac80211: remove the passive-scan/no-ibss flag of channels 36-48 in the world regd similar to the default regd in ath
SVN-Revision: 32126
12 years ago
Felix Fietkau ba73b67726 mac80211: use built-in regulatory database instead of crda to avoid various race conditions
SVN-Revision: 31954
12 years ago
Felix Fietkau 7c1c457855 mac80211: get rid of duplicate iw reg set command (thx, stintel)
SVN-Revision: 31859
12 years ago
Jo-Philipp Wich e83f30306c mac80211: allow NOHT for IBSS mode
SVN-Revision: 31137
12 years ago
Felix Fietkau 877c407ade mac80211: add hostapd socket option to wpa_supplicant for IBSS RSN as well
SVN-Revision: 31088
12 years ago
Felix Fietkau 2143633bd2 mac80211: modify mac80211.sh to in order to support IBSS-RSN
Signed-off-by: Antonio Quartulli <ordex@autistici.org>

SVN-Revision: 31083
12 years ago
John Crispin a0cd381e79 mac80211: Allow preamble configuration
Add a new wireless config parameter short_preamble=0|1 to enable
usage of short preambles. Default is to only allow long preambles
as before.

Even if short_preamble is set to 1 hostapd will take care that
short preambles are disabled as soon as a STA associates that
cannot handle short preambles.

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

SVN-Revision: 30539
13 years ago
Felix Fietkau e7c63048df mac80211: clean up init, remove some redundant checks, fix tx power init (#10113)
SVN-Revision: 29606
13 years ago
Felix Fietkau b62f4e0aa2 mac80211: fix powersave setting
SVN-Revision: 29569
13 years ago
Felix Fietkau fe8a3a36f0 mac80211: apply txpower after bringing up the interface, should fix #10113
SVN-Revision: 29566
13 years ago
Felix Fietkau 25540787ad mac80211: use iw instead of iwconfig to disable powersave
SVN-Revision: 29565
13 years ago
Hauke Mehrtens 542d1f1b61 mac80211: add support for firmware 666.2 for b43 devices
SVN-Revision: 29485
13 years ago
Jo-Philipp Wich d7205a9021 mac80211: change wireless ifname numbering schema Instead of simply counting up until we hit a free iface, group ifnames by wiphy so that the first wlanX on a phy gets the phy number and following ifaces an index-suffix, e.g. wlan0 for network 1 on phy 1 and wlan0-1 for network 2 on phy 1. This fixes state var confusion when operating multiple radios and allows to reliably take down and restart one radio only, even if the number of networks changes in between. This should, along with other changes in LuCI, fix #10335.
SVN-Revision: 28784
13 years ago
Felix Fietkau 2e94be02a8 mac80211: set the country code early to allow crda to settle
SVN-Revision: 28387
13 years ago
Jo-Philipp Wich 6addd50b9d mac80211: rework mac address generation for virtual interfaces; set locally administered bit on generated macs and change the last two bytes isntead of the first one
SVN-Revision: 28298
13 years ago
Jo-Philipp Wich fdfa6fdbcd mac80211: introduce "disabled" option for wifi-iface section to shutdown single networks on a radio
SVN-Revision: 28198
13 years ago
Jo-Philipp Wich 9d33a50cbb mac80211: configure hostapd logging options
SVN-Revision: 28057
13 years ago
Jo-Philipp Wich 3aa922d33c mac80211: use first available channel from current phy if channel is set to "auto"
SVN-Revision: 27976
13 years ago
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
13 years ago
Felix Fietkau b4cef327ff ath9k: add a temporary uci option for setting the channel bandwidth
SVN-Revision: 27563
13 years ago
Felix Fietkau e087e678af mac80211: configure HT IBSS through uci
SVN-Revision: 27279
13 years ago
Felix Fietkau be3deb5b14 mac80211: broadcast the country IE by default if the country code is configured (#9308)
SVN-Revision: 26765
13 years ago
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
13 years ago
Vasilis Tsiligiannis f55fe56225 mac80211: Fix unique device autodetection
SVN-Revision: 26165
14 years ago
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
14 years ago
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
14 years ago
Jo-Philipp Wich a580764a9f mac80211: fix order of iw parameters, fix broken antenna config call
SVN-Revision: 25152
14 years ago
Vasilis Tsiligiannis e6a9e6875a mac80211: Fix antenna setting when only one of {rx,tx}antenna options is specified
SVN-Revision: 25136
14 years ago
Jo-Philipp Wich 3b0c90325e mac80211: add missing done to mac80211.sh (#8735)
SVN-Revision: 25131
14 years ago
Jo-Philipp Wich 49d060dc1b mac80211: add mising esac to mac80211.sh
SVN-Revision: 25122
14 years ago
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
14 years ago
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
14 years ago
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
14 years ago
Jo-Philipp Wich 253f4d82f2 mac80211: support per-vif wmm option, defaults to 1 if unset
SVN-Revision: 24966
14 years ago
Jo-Philipp Wich 7526fd8627 mac80211: rename max_clients option to maxassoc, this brings it in line with broadcom
SVN-Revision: 24726
14 years ago
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
14 years ago
Jo-Philipp Wich 4dcba42342 mac80211: use iw for txpower control (#8416)
SVN-Revision: 24441
14 years ago
Felix Fietkau 3e7589ce1a mac80211: set GF flag in hostapd config if supported
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>

SVN-Revision: 23673
14 years ago
Felix Fietkau c173d41012 mac80211: add uci support for the ad-hoc multicast rate setting
SVN-Revision: 23637
14 years ago
Felix Fietkau 35cdc5d722 hostapd/mac80211: implement support for AP+STA
SVN-Revision: 23602
14 years ago