Commit Graph

419 Commits (0f7de49fa37859b46de8d4e25163cfebe3db3a96)

Author SHA1 Message Date
Felix Fietkau 08c594bf5a mac80211: restore AP scan patch
Signed-off-by: Dmitry Ivanov <dima@ubnt.com>

SVN-Revision: 46535
9 years ago
Felix Fietkau ad5cd9ec1d mac80211: fix an invalid read in minstrel rate sorting
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46533
9 years ago
Felix Fietkau 38646926a2 mac80211: fix data alignment of management frames / beacons
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46532
9 years ago
Hauke Mehrtens 91bdcc65e9 mac80211: do not add debugfs_create_devm_seqfile() on recent kernel versions
An #ifdef for the kernel version was missing around the header of
debugfs_create_devm_seqfile() and the LINUX_BACKPORT() was also not
done.

This closes #20181

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 46492
9 years ago
Felix Fietkau 5b76e57dc2 kernel: remove kmod-crypto-aes, AES crypto support is always built into the kernel
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46483
9 years ago
John Crispin 38991bf90b mac80211: Clarify ath9k & ath10k debug selection
Ath debug mode applies to ath10k as well as ath9k.
Update Makefile help text to clarify.

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>

SVN-Revision: 46468
9 years ago
Felix Fietkau 9384cc5951 mac80211: update to wireless-testing 2015-07-21
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46436
9 years ago
Felix Fietkau 621dd13590 cfg80211: fix a locking issue (#20098)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46413
9 years ago
John Crispin c54b1be7c2 mac80211: make ath10k firmware v2 selectable
Added option for old firmware version (10.1 API v2). It seems that recent
firmware versions are constantly crashing (at least on a QCA9880-BR4A-R) and
this provides the option to select an older version instead.

Signed-off-by: Günther Kelleter <guenther.kelleter@devolo.de>

SVN-Revision: 46340
9 years ago
Rafał Miłecki aee7bf2fca mac80211: add brcmfmac patch fixing user space picked MACs
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 46288
9 years ago
Rafał Miłecki 4587e39fe7 mac80211: try to workaround some brcmfmac bug with handling interfaces
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 46278
9 years ago
John Crispin cb52ede81d mac80211: Drop ath10k workaround for providing calibration data
Ath10k has now a proper method of providing calibration data via
the kernel firmware API. This patch can be dropped as all boards
now use the proper method.

Signed-off-by: Matti Laakso <malaakso@elisanet.fi>

SVN-Revision: 46245
9 years ago
John Crispin aab3ecdfd8 mac80211: ath9k: fix qca956x name also
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 46243
9 years ago
Felix Fietkau eaf33c36bf mac80211: update regulatory database to master-2015-06-05
Signed-off-by: Petko Bordjukov <bordjukov@gmail.com>

SVN-Revision: 46209
9 years ago
Hauke Mehrtens 6097f550e0 mac80211: fix compile warning in rt2800lib.c
reorder some parts of the patch to remove the declaration-after-
statement warning.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 46205
9 years ago
Hauke Mehrtens 10bb005aa1 mac80211: add kernel 4.1 support again
The new version now works with kernel 4.1

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 46204
9 years ago
Hauke Mehrtens cbe0b6800e mac80211: remove useless patch
unregister_netdevice_many() was extended in this commit to also delete unreg_list:
https://git.kernel.org/cgit/linux/kernel/git/backports/backports.git/commit/?id=97666f936e0656a1b28c40cc33981a8db65e1a11

This patch is no longer needed.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 46203
9 years ago
Hauke Mehrtens 1b2d8f79fd mac80211: remove useless patch
This patch was already applied upstream, linux/device.h gets included 2
lines above this change.

This was done in this commit:
https://git.kernel.org/cgit/linux/kernel/git/backports/backports.git/commit/?id=fd6bb301116d48c50722b0a4399e26ab0237e563

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 46202
9 years ago
Felix Fietkau ba94a9309a mac80211: add missing patch chunk
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46201
9 years ago
Felix Fietkau b30e092de6 mac80211: update to version 2015-06-22
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46198
9 years ago
Felix Fietkau 32549f52cb ath10k: remove support for the obsolete STA firmware
Current firmware should work for station mode as well, and the older
firmware will usually behave worse and become unsupported over time.
Also, the MAC address handling on ar71xx is only implemented on one
firmware version.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46197
9 years ago
Felix Fietkau 12903c2697 mac80211: Update QCA9880 firmware to 10.2.4.70-2
This firmware adds support for management frames over normal
packet transport interface instead of over the WMI management
interface.

Signed-off-by: Matti Laakso <malaakso@elisanet.fi>

SVN-Revision: 46195
9 years ago
Felix Fietkau 872729c325 mac80211: Backport ath10k firmware API v5 support
These patches add support for the new version 5 firmware API.

Signed-off-by: Matti Laakso <malaakso@elisanet.fi>

SVN-Revision: 46194
9 years ago
Felix Fietkau ddfaee36ba ath9k: make DMA stop related messages debug-only (#11862, #9654)
A long time ago, ath9k had issues during reset where the DMA engine
would stay active and could potentially corrupt memory.
To debug those issues, the driver would print warnings whenever they
occur.

Nowadays, these issues are gone and the primary cause of these messages
is if the MAC is stuck during reset or busy processing a long
transmission. This is fairly harmless, yet these messages continue to
worry users.

To reduce the number of bogus bug reports, turn these messages into
debug messages and count their occurence in the "reset" debugfs file.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46158
9 years ago
Nicolas Thill 0aa351196a mac80211: fix build on UML
A duplicate include guard prevents inclusion of barrier.h in UML build and this prevents mac80211 from building.

This patch re-enables mac80211 hwsim and renames the include guard.

See https://lists.openwrt.org/pipermail/openwrt-devel/2015-June/033614.html for details.

Signed-off-by: Martin Tippmann <martin.tippmann@gmail.com>
Signed-off-by: Nicolas Thill <nico@openwrt.org>

SVN-Revision: 46133
9 years ago
Jonas Gorski c62ddc9b59 mac80211: disable for kernel 4.1 for now
Backports requires updates to compile successfully.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46110
9 years ago
Felix Fietkau 20b3f6683d ath9k: fix ar956x device detection
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46090
9 years ago
Rafał Miłecki 1909a42ad4 mac80211: backport some brcmfmac patches
There are two important patches in this patchset: updating read pointer
quicker & rework of .get_station().
There are few more upstream patches that are p2p-related and weren't
backported in this commit.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 46084
9 years ago
Felix Fietkau e952654f0b ath9k: add another fix for some rx/tx dma stop issues, refresh patches
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46008
9 years ago
Rafał Miłecki 1acfc775d6 kernel: mac80211: bcm53xx has bcma built-in
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45933
9 years ago
Rafał Miłecki 0fb87699bd mac80211: add brcmfmac patch for synchronous init
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45932
9 years ago
Rafał Miłecki 1756869a54 mac80211: add brcmfmac patch reading NVRAM from platform
This allows e.g. BCM43602 to work out of box, without dumping a proper
MTD partition to /lib/firmware/ NVRAM file.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45931
9 years ago
Rafał Miłecki 67159b7ea6 mac80211: fix b43 support for 14e4:4321 BCM4321 (band detection)
This fixes #19803

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45929
9 years ago
Rafał Miłecki da01dbff70 mac80211: backport today's brcmfmac changes
This adds support for SR400ac NVRAM and fixes
/sys/class/ieee80211/*/macaddress

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45928
9 years ago
Felix Fietkau ecaacad14d hostapd: move ht_coex variable to mac80211.sh, guarded by 802.11n support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45917
9 years ago
Felix Fietkau 913ca8200a ath9k: fix an issue with stopping rx/tx dma on AR93xx
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45874
9 years ago
Felix Fietkau fa2dfdb74b mac80211: make netifd script create AP interface directly
Before starting hostapd we create interface for it. The problem is we
try to create STA interface just to let hostapd change it to AP later.

It may fail if device doesn't support STA interfaces or if we already
hit a limit. Consider following phy (it's from BCM43602 and brcmfmac):
$ iw phy phy0 info | tail
        valid interface combinations:
                 * #{ IBSS, managed } <= 1, #{ AP } <= 4, #{ P2P-client, P2P-GO } <= 1, #{ P2P-device } <= 1,
                   total <= 3, #channels <= 1

Trying to setup 2 interfaces: STA + AP results in:
radio0 (1101): command failed: Operation not supported (-95)
radio0 (1101): command failed: Operation not supported (-95)
radio0 (1101): command failed: Operation not supported (-95)
radio0 (1101): command failed: Operation not supported (-95)
radio0 (1101): Configuration file: /var/run/hostapd-phy0.conf
radio0 (1101): Could not read interface wlan0-1 flags: No such device

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45856
9 years ago
Rafał Miłecki 68dc59d438 mac80211: backport one missed brcmfmac NVRAM-related patch
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45812
9 years ago
Rafał Miłecki c1cc2217c2 mac80211: backport today's brcmfmac changes
This fixes various problems with parsing platform NVRAM. It's required
to get BCM43602 working in most cases.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45802
9 years ago
Rafał Miłecki 565eac46b6 mac80211: backport today's brcmfmac changes
It should improve msgbuf throughput (PCIe devices like BCM43602).

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45767
9 years ago
Jonas Gorski 072937888e mac80211: make it work with 3.18.12+
3.18.12 backported 61ada528dea028331e99e8ceaed87c683ad25de2 ("sched/wait:
Provide infrastructure to deal with nested blocking") from 3.19, causing
the following error on load:

[   13.588000] compat: exports duplicate symbol woken_wake_function (owned by kernel)

Fix this by guarding it with a check for 3.18.11 or earlier instead of
3.19.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45710
9 years ago
Felix Fietkau 29f8f90de4 mac80211: apply mesh parameters after starting authsae/wpa_supplicant (#16697)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45651
9 years ago
Rafał Miłecki 84a3e668fc mac80211: backport brcmfmac to support multiple devices NVRAM
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45577
9 years ago
Rafał Miłecki c1a7e13587 mac80211: update brcmfmac to the wireless-drivers-next-for-davem-2015-04-09
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45576
9 years ago
Felix Fietkau e2e2fb168b mac80211: fallback to wpa_supplicant to setup encrypted mesh
instead of failing when authsae is not installed, also try using
wpa_supplicant as the newly added -mesh variants support mesh mode
and SAE encryption.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 45520
9 years ago
Felix Fietkau b5073ca2c8 mac80211: merge a number of upstream driver fixes/improvements
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45432
9 years ago
Felix Fietkau daaed6f251 netifd: fix start_disabled 'sh: bad number' in mac80211 setup (bug #19345)
Two errors "netifd: radio0: sh: bad number" have recently surfaced in system
log in trunk when wifi interfaces come up. I tracked the errors to checking
numerical values of some config options without ensuring that the option has
any value.

The errors I see have apparently been introduced by r45051 (ieee80211r in
hostapd) and r45326 (start_disabled in mac80211). My patches fix two
instances of "bad number", but there may be a third one, as the original
report in bug 19345 pre-dates r45326 and already has two "bad number" errors
for radio0.

https://dev.openwrt.org/ticket/19345

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>

SVN-Revision: 45379
9 years ago
John Crispin d564779563 mac80211: add start_disabled option
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 45326
9 years ago
Rafał Miłecki e4c35bd9fb mac80211: make b43 N-PHY default for brcm47xx legacy subtarget
Subtarget legacy is supposed to support all ssb SoC except for BCM4705.
There are few BCM4703 devices with 802.11n supprt (WRT160N v1.0, v1.1).
Few BCM4704 devices with 802.11n: ASUS WL-500W, Linksys WRT150N v1.0 &
v1.1, Linksys WRT300N v1.0, Netgear WNDR3300 v1, WNR834B v1 & v2.

It seems we have to enable N-PHY for legacy as well to support above.
Unfortunately it increases root.squashfs size by 48 460 B.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45309
9 years ago
Felix Fietkau 94850b0068 mac80211: get rid of tx power related log spam
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45271
9 years ago