diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-10-13 13:35:05 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-10-15 03:12:37 +0200 |
commit | 4233df6b748193d45f79fb7448991a473061a65d (patch) | |
tree | 7821c829791ee0994cded510c55c824578820ef6 /net/mac80211 | |
parent | libertas : Remove unused variable warning for "old_channel" from cmd.c (diff) | |
download | linux-4233df6b748193d45f79fb7448991a473061a65d.tar.xz linux-4233df6b748193d45f79fb7448991a473061a65d.zip |
ath9k/mac80211: disallow fragmentation in ath9k, report to userspace
As I've reported, ath9k currently fails utterly when fragmentation
is enabled. This makes ath9k "support" hardware fragmentation by
not supporting fragmentation at all to avoid the double-free issue.
The patch also changes mac80211 to report errors from the driver
operation to userspace.
That hack in ath9k should be removed once the rate control algorithm
it has is fixed, and we can at that time consider removing the hw
fragmentation support entirely since it's not used by any driver.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Cc: stable@kernel.org
Acked-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/wext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/wext.c b/net/mac80211/wext.c index 7e0d53abde24..742f811ca416 100644 --- a/net/mac80211/wext.c +++ b/net/mac80211/wext.c @@ -775,7 +775,7 @@ static int ieee80211_ioctl_siwfrag(struct net_device *dev, * configure it here */ if (local->ops->set_frag_threshold) - local->ops->set_frag_threshold( + return local->ops->set_frag_threshold( local_to_hw(local), local->fragmentation_threshold); |