Commit graph

639 commits

Author SHA1 Message Date
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
Michael Büsch
7b44be03d8 2.6.38: Let mac80211 select CONFIG_AVERAGE
SVN-Revision: 25818
2011-03-01 18:55:00 +00:00
Felix Fietkau
1f08de0a7e mac80211: improve ath9k AP A-MPDU PS buffering
SVN-Revision: 25779
2011-02-27 21:46:15 +00:00
Felix Fietkau
e21f69d640 mac80211: override CONFIG_IWLWIFI_LEGACY
SVN-Revision: 25778
2011-02-27 21:46:08 +00:00
Felix Fietkau
c7677a6e5e mac80211: set CONFIG_RTLWIFI
SVN-Revision: 25776
2011-02-27 21:37:21 +00:00
Felix Fietkau
ba5bfe48c3 p54: fix a null pointer dereference bug
SVN-Revision: 25775
2011-02-27 20:50:45 +00:00
Felix Fietkau
39570be248 mac80211: update to 2011-02-25
SVN-Revision: 25749
2011-02-27 11:22:26 +00:00
Felix Fietkau
b1b8cf1870 ath9k: fix interrupt enable/disable issues
SVN-Revision: 25575
2011-02-18 18:16:48 +00:00
Felix Fietkau
240b10673d make all wext wifi drivers select DRIVER_WEXT_SUPPORT, so that hostapd/wpa_supplicant can make it optional
SVN-Revision: 25518
2011-02-13 14:18:13 +00:00
Felix Fietkau
34e87dad4d mac80211: add a patch for keeping track of the rx bitrate of remote stations
SVN-Revision: 25441
2011-02-10 03:37:32 +00:00
Felix Fietkau
ebb2cdbea8 ath9k: remove an old tx stop workaround which conflicts with the powersave fixes
SVN-Revision: 25439
2011-02-10 03:37:23 +00:00
Felix Fietkau
6ff025f306 ath9k: improve the power save fix by closing another remaining race condition for setting the TIM bit
SVN-Revision: 25428
2011-02-08 23:35:20 +00:00
Felix Fietkau
c6996a7d7d ath9k: add fixes for AP side powersave frame buffering
SVN-Revision: 25426
2011-02-08 19:31:50 +00:00
Felix Fietkau
d807f70e47 mac80211: update to wireless-testing 2010-02-07
SVN-Revision: 25425
2011-02-08 19:31:43 +00:00
Felix Fietkau
32d08d2dea ath: fix world regulatory domain fix-up so that all regulatory rules are processed
r24503 (trunk) and r24505 (backfire) revised the regulatory rules used
for the ath drivers' world regulatory domains in the 5GHz band by
opening up channels 36, 40, 44, and 48 to being used without the
*_PASSIVE_SCAN and *_NO_IBSS flags set. This was done by breaking
ATH9K_5GHZ_5150_5350 into two REG_RULES. The various struct
ieee80211_regdomains that reference these rules in their reg_rules
fields need to have their n_reg_rules fields updated accordingly.

SVN-Revision: 25418
2011-02-08 12:36:25 +00:00
Felix Fietkau
55bd66663d mac80211: fix the check for cloned skbs in the tx path
SVN-Revision: 25398
2011-02-07 10:42:40 +00:00
Felix Fietkau
2ed844f6a5 mac80211: when operating as a 4-addr station, do not pick up 4-addr frames meant for other stations, as this would confuse the bridge layer
SVN-Revision: 25378
2011-02-05 22:38:23 +00:00
Felix Fietkau
2a17a1dd1d ath9k: reduce false positives in the baseband hang check
SVN-Revision: 25359
2011-02-04 12:16:41 +00:00
Felix Fietkau
2d5c6da16a mac80211: drop retransmitted data frames from the cooked monitor interface - reduces CPU usage
SVN-Revision: 25358
2011-02-04 12:16:36 +00:00
Felix Fietkau
e00933b6d6 cfg80211: revert the max power patch - it seems to be limiting tx power too much on some devices
SVN-Revision: 25258
2011-01-30 23:35:00 +00:00
Felix Fietkau
e146d9b386 cfg80211: do not overwrite the hardware max power setting in the regulatory code, fixes reported tx power values
SVN-Revision: 25238
2011-01-29 13:51:33 +00:00
Felix Fietkau
04628c88d4 ath9k: reduce allocation size, common->cachelz is already added to the buffer size elsewhere
SVN-Revision: 25205
2011-01-28 16:58:08 +00:00
Felix Fietkau
0a54236bea ath9k: fix a compile error in the debug stubs (fixes #8737, #8745)
SVN-Revision: 25204
2011-01-28 16:58:05 +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
10923cff7e ath9k: optimize memory allocations - improves performance and reduces ath9k RAM usage by 2 MB per device
SVN-Revision: 25115
2011-01-26 17:28:12 +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
Felix Fietkau
5903f4a167 mac80211: Improve ath5k/ar71xx PCI bug WAR
It has been confirmed by Atheros that this PCI bug affects the RX side only,
so we can keep the 128B DMA size for TX.

With this change we can double the thruput of ath5k from 15Mps to 30Mbps.

We have been using this patch since more than 6 month in a production
environment without problems and a significant performance improvement.

It has also been said to fix HW encryption:
http://www.mail-archive.com/ath5k-devel@lists.ath5k.org/msg04311.html

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

SVN-Revision: 25104
2011-01-26 11:33:50 +00:00
Felix Fietkau
998da1234f ath9k: fix tx queue debug counters
SVN-Revision: 25099
2011-01-26 11:33:27 +00:00
Felix Fietkau
9b34dfb571 mac80211: update to wireless-testing 2011-01-24
SVN-Revision: 25093
2011-01-24 18:54:16 +00:00
Felix Fietkau
fa542df6e1 ath9k: kmod-ath9k has no extra menuconfig options, remove MENU:=1 (#8695)
SVN-Revision: 25060
2011-01-21 18:32:06 +00:00
Felix Fietkau
c646f205e2 ath9k: fix some ps wakeup/restore issues that led to crashes and other weird behavior
SVN-Revision: 25058
2011-01-21 17:54:44 +00:00
Felix Fietkau
02bf1599a3 ath9k: disable PA predistortion on AR93xx for now until it is properly fixed
SVN-Revision: 25056
2011-01-21 01:43:32 +00:00
Felix Fietkau
be39c9dc6e ath9k: remove virtual wiphy support - it was only experimental anyway and it is not going to be maintained anymore
SVN-Revision: 25055
2011-01-20 23:35:30 +00:00
Felix Fietkau
86a9bbe4ba mac80211: add a few tx related fixes
SVN-Revision: 25054
2011-01-20 23:35:26 +00:00
Felix Fietkau
4ee2365159 mac80211: update to wireless-testing 2010-01-19
SVN-Revision: 25053
2011-01-20 23:35:21 +00:00
Felix Fietkau
876dd50e11 mac80211: fix the br_port_exists compatibility macro for 2.6.38
SVN-Revision: 25051
2011-01-20 13:46:59 +00:00
Felix Fietkau
817ee250d7 mac80211: rework wds sta fix - check for the protocol of the incoming frame instead of just the authorized state
SVN-Revision: 25039
2011-01-18 14:43:58 +00:00
Felix Fietkau
6cf6302a78 mac80211: fix compile errors on powerpc
SVN-Revision: 25014
2011-01-16 01:24:48 +00:00
Felix Fietkau
1a7a36b0a4 mac80211: fix frames looping back to a wds station
SVN-Revision: 25008
2011-01-15 13:41:10 +00:00
Felix Fietkau
098e2d7ca1 ath9k: fix a few more aggregation related issues, should improve stability
SVN-Revision: 25007
2011-01-15 13:41:06 +00:00
Felix Fietkau
f05691af93 mac80211: include the kfifo backport in compat.ko if necessary (fixes libertas, rt2x00)
SVN-Revision: 24978
2011-01-13 23:28:22 +00:00
Felix Fietkau
2c0ac457ed ath9k: fix spurious decryption crc error regression
SVN-Revision: 24976
2011-01-13 23:07:58 +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
Felix Fietkau
a339e58d72 ath9k: reduce the number of false positives triggered by the baseband hang check by only running it when beacon transmission is blocked
SVN-Revision: 24954
2011-01-10 00:25:17 +00:00