14 Apr, 2008
1 commit
-
Conflicts:
drivers/net/ehea/ehea_main.c
drivers/net/wireless/iwlwifi/Kconfig
drivers/net/wireless/rt2x00/rt61pci.c
net/ipv4/inet_timewait_sock.c
net/ipv6/raw.c
net/mac80211/ieee80211_sta.c
09 Apr, 2008
1 commit
-
If print_mac() is used inside of a pr_debug() the compiler
can't see that the call is redundant so still performs it
even of pr_debug() ends up being a nop.So don't use print_mac() in such cases in hot code paths,
use MAC_FMT et al. instead.As noted by Joe Perches, pr_debug() could be modified to
handle this better, but that is a change to an interface
used by the entire kernel and thus needs to be validated
carefully. This here is thus the less risky fix for
2.6.25Signed-off-by: David S. Miller
14 Mar, 2008
1 commit
-
Signed-off-by: Adrian Bunk
Signed-off-by: Andrew Morton
Signed-off-by: John W. Linville
06 Mar, 2008
1 commit
-
__FUNCTION__ is gcc-specific, use __func__
Signed-off-by: Harvey Harrison
Signed-off-by: David S. Miller
29 Jan, 2008
9 commits
-
It's only a debugging printk, so it went unnoticed; still, the
fix is trivial, so...Signed-off-by: Al Viro
Signed-off-by: John W. Linville -
Signed-off-by: Al Viro
Signed-off-by: John W. Linville -
The struct ieee8021_auth * passed to it comes straight from skb->data
without any conversions; members of the struct are little-endian, so
we'd better take that into account when doing switch by auth->algorithm,
etc.Signed-off-by: Al Viro
Signed-off-by: John W. Linville -
on some codepaths we forgot to convert to little-endian as we do on the
rest of them and as the caller expects from us.Signed-off-by: Al Viro
Signed-off-by: John W. Linville -
Make it match the on-the-wire endianness, eliminate byteswapping.
The only driver that used this sucker (ipw2200) updated.Signed-off-by: Al Viro
Signed-off-by: John W. Linville -
Fix priority mistakes similar to '!x & y'
Signed-off-by: Roel Kluin
Signed-off-by: John W. Linville -
Signed-off-by: YOSHIFUJI Hideaki
Signed-off-by: David S. Miller -
Schedule softmac for for removal in the 2.6.26 development window.
Signed-off-by: John W. Linville
Signed-off-by: David S. Miller -
Many-many code in the kernel initialized the timer->function
and timer->data together with calling init_timer(timer). There
is already a helper for this. Use it for networking code.The patch is HUGE, but makes the code 130 lines shorter
(98 insertions(+), 228 deletions(-)).Signed-off-by: Pavel Emelyanov
Acked-by: Arnaldo Carvalho de Melo
Signed-off-by: David S. Miller
30 Nov, 2007
2 commits
-
There is no guarantee that data+SNAP_SIZE will reside on an even numbered
address, so doing a 16 bit read will cause an unaligned access in some
situations. Based on a patch from Jun Sun.Signed-off-by: Daniel Drake
Signed-off-by: John W. Linville
21 Nov, 2007
1 commit
-
if (net_ratelimit())
IEEE80211_DEBUG_DROP(...)can pollute the logs with messages like:
printk: 1 messages suppressed.
printk: 2 messages suppressed.
printk: 7 messages suppressed.if debugging information is disabled. These messages are printed by
net_ratelimit(). Add a wrapper to net_ratelimit() that takes into account
the log level, so that net_ratelimit() is called only when we really want
to print something.Signed-off-by: Guillaume Chazarain
Signed-off-by: John W. Linville
11 Nov, 2007
1 commit
-
The MLME request reason code is host-endian and our passing
it to the low level functions is host-endian as well since
they do the swapping. I noticed that the reason code 768 was
sent (0x300) rather than 3 when wpa_supplicant terminates.
This removes the superfluous cpu_to_le16() call.Signed-off-by: Johannes Berg
Signed-off-by: John W. Linville
07 Nov, 2007
1 commit
-
Removing duplicit #includes for net/
Signed-off-by: Jiri Olsa
Signed-off-by: David S. Miller
02 Nov, 2007
1 commit
-
Not architecture specific code should not #include .
This patch therefore either replaces them with
#include or simply removes them if they were
unused.Signed-off-by: Adrian Bunk
Signed-off-by: Jens Axboe
24 Oct, 2007
3 commits
-
Most drivers need to set length and offset as well, so may as well fold
those three lines into one.Add sg_assign_page() for those two locations that only needed to set
the page, where the offset/length is set outside of the function context.Signed-off-by: Jens Axboe
-
Signed-off-by: Geert Uytterhoeven
Signed-off-by: Jens Axboe -
Commits
58b053e4ce9d2fc3023645c1b96e537c72aa8d9a ("Update arch/ to use sg helpers")
45711f1af6eff1a6d010703b4862e0d2b9afd056 ("[SG] Update drivers to use sg helpers")
fa05f1286be25a8ce915c5dd492aea61126b3f33 ("Update net/ to use sg helpers")converted many files to use the scatter gather helpers without ensuring
that the necessary headerfile is included. This
happened to work for ia64, powerpc, sparc64 and x86 because they
happened to drag in that file via their .On most of the others this probably broke.
Instead of increasing the header file spider web I choose to include
directly into the affectes files.Signed-off-by: Ralf Baechle
Signed-off-by: Jens Axboe
Signed-off-by: Linus Torvalds
23 Oct, 2007
1 commit
-
Signed-off-by: Jens Axboe
20 Oct, 2007
1 commit
-
From: Jean Delvare
Signed-off-by: Jean Delvare
Signed-off-by: Adrian Bunk
17 Oct, 2007
1 commit
-
The commit 65b6a277 titled "ieee80211: Fix header->qos_ctl endian issue"
*introduced* an endianness bug. Partially revert it.Signed-off-by: Johannes Berg
Signed-off-by: John W. Linville
11 Oct, 2007
4 commits
-
It seems I was actually able to hit this deadlock, on my quad G5 softmac
locks up more often than not. This fixes it by using an own workqueue
that can safely be flushed under RTNL.Not sure if the patch is correct with the workqueue naming. And don't
think with the patch it doesn't continually lock up. It still does, just
doesn't invoke lockdep warnings all the time.Signed-off-by: Johannes Berg
Signed-off-by: John W. Linville
Signed-off-by: David S. Miller -
This is nicer than the MAC_FMT stuff.
Signed-off-by: Joe Perches
Signed-off-by: David S. Miller -
This patch makes /proc/net per network namespace. It modifies the global
variables proc_net and proc_net_stat to be per network namespace.
The proc_net file helpers are modified to take a network namespace argument,
and all of their callers are fixed to pass &init_net for that argument.
This ensures that all of the /proc/net files are only visible and
usable in the initial network namespace until the code behind them
has been updated to be handle multiple network namespaces.Making /proc/net per namespace is necessary as at least some files
in /proc/net depend upon the set of network devices which is per
network namespace, and even more files in /proc/net have contents
that are relevant to a single network namespace.Signed-off-by: Eric W. Biederman
Signed-off-by: David S. Miller -
Hopefully captured all single statement cases under net/. I'm
not too sure if there is some policy about #includes that are
"guaranteed" (ie., in the current tree) to be available through
some other #included header, so I just added linux/kernel.h to
each changed file that didn't #include it previously.Signed-off-by: Ilpo Järvinen
Signed-off-by: David S. Miller
04 Oct, 2007
1 commit
-
…nville/wireless-2.6 into upstream-fixes
03 Oct, 2007
1 commit
-
CC net/ieee80211/softmac/ieee80211softmac_wx.o
/home/kernel/src/net/ieee80211/softmac/ieee80211softmac_wx.c: In function âieee80211softmac_wx_set_essidâ:
/home/kernel/src/net/ieee80211/softmac/ieee80211softmac_wx.c:117: warning: label âoutâ defined but not useddue to commit: efe870f9f4ad74410a18ecbf0d9ba7c14b50a0fb. Removing the label.
Signed-off-by: Richard Knutsson
Signed-off-by: John W. Linville
02 Oct, 2007
1 commit
-
Reported by Chris Evans :
> The summary is that an evil 80211 frame can crash out a victim's
> machine. It only applies to drivers using the 80211 wireless code, and
> only then to certain drivers (and even then depends on a card's
> firmware not dropping a dubious packet). I must confess I'm not
> keeping track of Linux wireless support, and the different protocol
> stacks etc.
>
> Details are as follows:
>
> ieee80211_rx() does not explicitly check that "skb->len >= hdrlen".
> There are other skb->len checks, but not enough to prevent a subtle
> off-by-two error if the frame has the IEEE80211_STYPE_QOS_DATA flag
> set.
>
> This leads to integer underflow and crash here:
>
> if (frag != 0)
> flen -= hdrlen;
>
> (flen is subsequently used as a memcpy length parameter).How about this?
Signed-off-by: John W. Linville
Signed-off-by: David S. Miller
21 Sep, 2007
1 commit
-
Commit 4cf92a3c was submitted as a fix for bug #8686 at bugzilla.kernel.org
(http://bugzilla.kernel.org/show_bug.cgi?id=8686). Unfortunately, the fix led to
a new bug, reported by Yoshifuji Hideaki, that prevented association for WEP
encrypted networks that use ifconfig to control the device. This patch effectively
reverts the earlier commit and does a proper fix for bug #8686.Signed-off-by: Larry Finger
Signed-off-by: John W. Linville
07 Aug, 2007
1 commit
-
The essid wireless extension does deadlock against the assoc mutex,
as we don't unlock the assoc mutex when flushing the workqueue, which
also holds the lock.Signed-off-by: Michael Buesch
Signed-off-by: John W. Linville
18 Jul, 2007
1 commit
-
SoftMAC outputs the channel twice in the scan output. It should
display frequency and channel, but only once for each.Signed-off-by: Jean Tourrilhes
Signed-off-by: Larry Finger
Signed-off-by: John W. Linville
11 Jul, 2007
1 commit
-
Victor Porton reported that the SoftMAC layer had random problem when setting the ESSID :
http://bugzilla.kernel.org/show_bug.cgi?id=8686 After investigation, it turned out to be
worse, the SoftMAC layer is left in an inconsistent state. The fix is pretty trivial.Signed-off-by: Jean Tourrilhes
Acked-by: Michael Buesch
Acked-by: Larry Finger
Signed-off-by: John W. Linville
09 Jul, 2007
1 commit
-
Cleanup using list_for_each_entry.
Cc: Johannes Berg
Cc: Joe Jezak
Cc: Daniel Drake
Signed-off-by: Akinobu Mita
Signed-off-by: John W. Linville
29 May, 2007
2 commits
-
This patch adds missing NULL check and trims a line longer than 80 columns.
Cc: Johannes Berg
Cc: Joe Jezak
Cc: Daniel Drake
Signed-off-by: Akinobu Mita
Signed-off-by: John W. Linville -
Fix error message:
Unable to network device. --> Unable to allocate network device.Cc: James Ketrenos
Signed-off-by: Akinobu Mita
Signed-off-by: John W. Linville
08 May, 2007
1 commit
-
In ieee80211, the output of scan results lists channels, but not
frequencies, which are needed by NetworkManager. This patch uses
the new ieee80211_channel_to_freq routine to add the frequency to the output.Signed-off-by: Larry Finger
Signed-off-by: John W. Linville