Commit graph

5445 commits

Author SHA1 Message Date
Felix Fietkau
2383a26168 broadcom-wl: fix wild ssb_device accesses as pci_dev for legacy pci dma api
broadcom-wl driver bound to ssb device with ssb driver probe
have osh handle struct pdev pointer value initialized with
ssb_device pointer. Later on pdev is used with legacy pci
dma api as pci_dev thus causing oops sometimes.

The patch replaces legacy pci dma api and pass relevant
device struct pointer to avoid crashes.
Signed-off-by: George Kashperko <george@znau.edu.ua>

SVN-Revision: 26949
2011-05-19 10:08:02 +00:00
Felix Fietkau
7c8564d7c5 broadcom-wl: fix uninitialized variable
It was causing an occasional kernel oops.

Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>

SVN-Revision: 26948
2011-05-19 10:07:57 +00:00
Felix Fietkau
512be5ce46 ath9k: fix some locking issues in the tx fifo cleanup patch
SVN-Revision: 26947
2011-05-19 09:33:45 +00:00
Felix Fietkau
9b228c181c ath9k: clean up tx fifo handling on ar9380 based hardware
SVN-Revision: 26934
2011-05-18 12:03:08 +00:00
Felix Fietkau
6400498b35 ath9k: fix a small race condition in the tx_last_beacon patch
SVN-Revision: 26933
2011-05-18 12:03:04 +00:00
Jo-Philipp Wich
ed8f726dab ipcalc.sh CIDR notation Hi,
the attached patch makes ipcalc.sh accept IP/Netmask combinations in
CIDR notation. Before you could only do:

# sh ipcalc.sh 192.168.0.0 255.255.255.0 1 10
IP=192.168.0.0
NETMASK=255.255.255.0
BROADCAST=192.168.0.255
NETWORK=192.168.0.0
PREFIX=24
START=192.168.0.1
END=192.168.0.11

with this patch you can also execute it with:

sh ipcalc.sh 192.168.0.0/24 1 10
IP=192.168.0.0
NETMASK=255.255.255.0
BROADCAST=192.168.0.255
NETWORK=192.168.0.0
PREFIX=24
START=192.168.0.1
END=192.168.0.11

The patch is based on #1260 [1], i just changed one line to calculate
the START end END ips right. I wonder why that never got included. If
there is no reason not to do i would like to ask you to commit that
patch, because its a functionality i (and probably others) miss quite often.

Btw, i also fixed 4 useless tabs, that might look a bit strange in the
patch.

Regards, Manuel

SVN-Revision: 26930
2011-05-18 09:50:06 +00:00
Felix Fietkau
e35822050b mac80211: sync the CONFIG_ATH5K_DEBUG make override with the buildflags override (thx, KanjiMonster)
SVN-Revision: 26927
2011-05-17 18:23:50 +00:00
Felix Fietkau
888bee4ef2 ath9k: implement tx_last_beacon() to allow mac80211 to respond to probe requests in ad-hoc mode without creating too much spam
SVN-Revision: 26923
2011-05-17 11:14:15 +00:00
John Crispin
8c2de891a9 * add missing aes dependency to mv_cesa
Signed-off-by: Jan Willies <jan@willies.info>

SVN-Revision: 26920
2011-05-17 10:48:37 +00:00
Felix Fietkau
c6a93676de ath9k: fix ad-hoc nexttbtt calculation, which broke beacon transmission in some instances
SVN-Revision: 26915
2011-05-17 08:37:38 +00:00
Felix Fietkau
7b84bc2f39 ath9k: fix issues with ad-hoc beacon slot selection
SVN-Revision: 26913
2011-05-16 21:50:30 +00:00
Felix Fietkau
c2bee5a64a mac80211: update to 2011-05-13
SVN-Revision: 26912
2011-05-16 21:50:26 +00:00
Vasilis Tsiligiannis
ec05877491 package/kernel: crypto: Remove renamed modules hack
Since the oldest kernel in trunk is 2.6.30 the modules always use the
newer names, so we can just use the _generic prefix directly.

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

SVN-Revision: 26903
2011-05-15 09:37:35 +00:00
Vasilis Tsiligiannis
49f738fa6d package/kernel: netfilter: Remove 2.4/2.6 references
There's only 2.6, so it doesn't make sense to mention modules that are
2.4 only or for modules that they are available only for 2.6.

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

SVN-Revision: 26902
2011-05-15 09:37:32 +00:00
Vasilis Tsiligiannis
2850136ae8 package/kernel: Remove all 2.4 definitions
With no 2.4 support in trunk, we can safely remove any 2.4 definitions for
kmods and merge the 2.6 definitions into the generic ones.

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

SVN-Revision: 26901
2011-05-15 09:37:28 +00:00
Vasilis Tsiligiannis
b468227827 package/kernel: Remove $(KMOD_SUFFIX) usage
Since there's only 2.6 in trunk $(KMOD_SUFFIX) can be safely replaced with
ko for all mainline kernel modules.

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

SVN-Revision: 26900
2011-05-15 09:37:24 +00:00
John Crispin
44eab3f6c1 package/kernel/modules/other.mk is getting big enough that putting the LEDs stuff into its own file makes sense.
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>

SVN-Revision: 26868
2011-05-09 20:28:04 +00:00
Travis Kemen
eb4109ba78 Deployment of IPv6 has opened up many more prefixes than just the 2000::/3 space, so a default route of ::/0 is more correct. Thanks Dave Taht
SVN-Revision: 26857
2011-05-08 17:03:07 +00:00
Jo-Philipp Wich
ba1c1e9016 base-files: retrigger usb coldplug after module loading, solves usb_modeswitch on boot and possibly others (#9352)
SVN-Revision: 26848
2011-05-08 10:25:58 +00:00
Gabor Juhos
3b1b49a49b base-files: fix a typo in etc/banner
SVN-Revision: 26841
2011-05-07 09:23:33 +00:00
Jo-Philipp Wich
f3e4c15229 lua: remove posix from Lua core, almost nothing uses it - saves 9k compressed
SVN-Revision: 26822
2011-05-04 14:51:06 +00:00
Felix Fietkau
dbea075cd4 ath9k: add noise floor calibration fix that should improve stability
SVN-Revision: 26819
2011-05-04 14:35:35 +00:00
Jo-Philipp Wich
9736cfef66 comgt: add tty hotplug remove handling, only iterate each tty once (#9211)
SVN-Revision: 26816
2011-05-04 08:19:07 +00:00
Jo-Philipp Wich
bba138c671 kernel: revert r26814
SVN-Revision: 26815
2011-05-03 21:25:36 +00:00
Jo-Philipp Wich
be2275b8e6 kernel: add kmod-crypto-ipsec kmod-crypto-ipsec bundles some otherwise unprovided kernel crypto modules that are useful for IPSEC. This is an alternative to breaking these modules out into kmod-crypto-wq (crypto_wq.ko), kmod-crypto-rng (rng.ko and krng.ko), and kmod-crypto-iv (eseqiv.ko and chainiv.ko).
Signed-off-by: Lars Hjersted <lars@hjersted.com>

SVN-Revision: 26814
2011-05-03 21:22:43 +00:00
Jo-Philipp Wich
3d0ac93274 kernel: add kmod-crypto-{wq,rng,iv} Add kmod-crypto-iv as a dependency for kmod-ipsec. Also remove the extraneous kmod-crypto-core dependency to eliminate recursion.
Signed-off-by: Lars Hjersted <lars@hjersted.com>

SVN-Revision: 26813
2011-05-03 21:21:05 +00:00
Jo-Philipp Wich
32f3c920a2 kernel: add kmod-crypto-{wq,rng,iv} This patch adds kmod-crypto-wq, kmod-crypto-rng, and kmod-crypto-iv packages. These packages provide some missing kernel crypto modules which are required for IPSEC. The strongswan4, ipsec-tools, and possibly other IPSEC packages do not work properly without these modules.
NOTE: The KCONFIG associated with each of these modules gets selected
whenever CRYPTO_MANAGER (kmod-crypto-manager) is selected so these
modules are already being built.

Signed-off-by: Lars Hjersted <lars@hjersted.com>

SVN-Revision: 26812
2011-05-03 21:19:56 +00:00
Jo-Philipp Wich
29392373f3 comgt: move ifup invocation back into background subshell to prevent hotplug deadlocks
SVN-Revision: 26810
2011-05-03 19:45:55 +00:00
Jo-Philipp Wich
549067e2b4 comgt: move 3g hotplug handling to tty subsystem, fixes race on coldplug (#9211)
SVN-Revision: 26809
2011-05-03 19:39:13 +00:00
Jo-Philipp Wich
ff4203b9bd base-files: cleanup permissions of device files in common hotplug rules (#9211)
SVN-Revision: 26808
2011-05-03 19:37:59 +00:00
Jo-Philipp Wich
d66dc5307d hotplug2: introduce tty subsystem events (#9211)
SVN-Revision: 26807
2011-05-03 19:35:58 +00:00
Jo-Philipp Wich
2e9e4c435f firewall: revert accidential committed changes from r26805
SVN-Revision: 26806
2011-05-02 12:55:36 +00:00
Jo-Philipp Wich
ad23dd94b6 firewall: provide examples of ssh port relocation on firewall and IPsec passthrough Two examples of potentially useful configurations (commented out, of course):
(a) map the ssh service running on the firewall to 22001 externally, without modifying the configuration of the daemon itself. this allows port 22 on the WAN side to then be port-forwarded to a
LAN-based machine if desired, or if not, simply obscures the port from external attack.

(b) allow IPsec/ESP and ISAKMP (UDP-based key exchange) to happen by default. useful for most modern VPN clients you might have on your WAN.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>

SVN-Revision: 26805
2011-05-02 12:54:31 +00:00
Hauke Mehrtens
3dbb8c5088 brcm47xx: add fallback sprom for pci devices without an own sprom.
If there is no sprom on an ssb based pci device on the brcm47xx
architecture ssb now asks the architecture code to look into the nvram
to get some sprom data for this device. Now we are able to read out
pci/1/1/ foo or pci/1/3/ foo config options.

This will fix some problems where the wireless devices does not got an
mac address and the following message was show:
ssb: WARNING: Invalid SPROM CRC (corrupt SPROM)

SVN-Revision: 26801
2011-05-01 20:28:35 +00:00
Felix Fietkau
28fb716737 ath9k: add a new fix for signal strength / noise measurements
SVN-Revision: 26798
2011-05-01 18:23:12 +00:00
Felix Fietkau
ebcc60cf35 mac80211: detect and drop incoming packets with invalid CCMP packet numbers to fix connection hangs on some devices
SVN-Revision: 26795
2011-05-01 01:45:26 +00:00
Florian Fainelli
ed5e092217 exclude pktgen for uml target
SVN-Revision: 26781
2011-04-29 12:04:17 +00:00
Jo-Philipp Wich
cb0c1f9015 relayd: map "ipaddr" option to local ip (-L)
SVN-Revision: 26773
2011-04-27 19:16:35 +00:00
Felix Fietkau
c2d4e98e34 madwifi: Fix compilation for 2.6.39
Fix compilation for 2.6.39 by replacing SPIN_LOCK_UNLOCKED with
DEFINE_SPINLOCK().

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

SVN-Revision: 26771
2011-04-26 23:05:34 +00:00
Felix Fietkau
6b376db844 mac80211: backport some more compat fixes, fix compile issues on 2.6.31 and earlier
SVN-Revision: 26768
2011-04-26 22:23:52 +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
Felix Fietkau
2b5517934d wpa_supplicant: make sure that the common 802.11 code gets linked in (fixes #9299)
SVN-Revision: 26764
2011-04-26 19:16:25 +00:00
Felix Fietkau
359e667fd5 mac80211: replace the regd revert patch with a proper fix, add some more pending patches
SVN-Revision: 26761
2011-04-26 01:23:23 +00:00
Felix Fietkau
f2ccc3ada5 ath9k: remove the signal strength fix, it causes a lot of confusion and seems to be just as inaccurate as the original version of the code
SVN-Revision: 26753
2011-04-25 18:21:32 +00:00
Felix Fietkau
9dbcf86d8e cfg80211: revert upstream regdomain handling breakage
SVN-Revision: 26752
2011-04-25 18:21:28 +00:00
Felix Fietkau
cbbe49a1d8 hostapd: fix a few compile errors and warnings
SVN-Revision: 26751
2011-04-24 03:34:46 +00:00
Felix Fietkau
e15e8f6976 mac80211: do rate control updates when the HT configuration changes on an interface
SVN-Revision: 26750
2011-04-23 21:34:40 +00:00
Felix Fietkau
d7bdfca6d0 hostapd: update to 2011-04-21
SVN-Revision: 26749
2011-04-23 21:34:35 +00:00
Hauke Mehrtens
6986b1b7c2 mac80211: remove unneeded patch
This was fixed upstream

SVN-Revision: 26745
2011-04-21 09:32:49 +00:00
Felix Fietkau
970252faf8 mac80211: update to wireless-testing 2011-04-19, contains several beacon related fixes for ath9k
SVN-Revision: 26744
2011-04-20 18:14:35 +00:00