diff options
author | Arik Nemtsov <arik@wizery.com> | 2010-11-08 04:51:07 -0500 |
---|---|---|
committer | Luciano Coelho <luciano.coelho@nokia.com> | 2010-11-22 09:45:13 -0500 |
commit | 68d069c45f73e8aeda0249891daec1f7e2f0e067 (patch) | |
tree | 03780680ec225b9428a5de30a4e50ad3b0230657 /drivers/net/wireless/wl12xx/acx.c | |
parent | fa97f46b30357a50f3ee193e6f82864f95bc55ec (diff) |
wl1271: add support for HW TX fragmentation
Indicate to mac80211 we support HW fragmentation.
Support updates of the fragmentation threshold via the
set_frag_threshold callback.
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/acx.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/acx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/wl12xx/acx.c b/drivers/net/wireless/wl12xx/acx.c index bc1085bb6cfb..7cbaeb6d2a37 100644 --- a/drivers/net/wireless/wl12xx/acx.c +++ b/drivers/net/wireless/wl12xx/acx.c | |||
@@ -862,7 +862,7 @@ out: | |||
862 | return ret; | 862 | return ret; |
863 | } | 863 | } |
864 | 864 | ||
865 | int wl1271_acx_frag_threshold(struct wl1271 *wl) | 865 | int wl1271_acx_frag_threshold(struct wl1271 *wl, u16 frag_threshold) |
866 | { | 866 | { |
867 | struct acx_frag_threshold *acx; | 867 | struct acx_frag_threshold *acx; |
868 | int ret = 0; | 868 | int ret = 0; |
@@ -876,7 +876,7 @@ int wl1271_acx_frag_threshold(struct wl1271 *wl) | |||
876 | goto out; | 876 | goto out; |
877 | } | 877 | } |
878 | 878 | ||
879 | acx->frag_threshold = cpu_to_le16(wl->conf.tx.frag_threshold); | 879 | acx->frag_threshold = cpu_to_le16(frag_threshold); |
880 | ret = wl1271_cmd_configure(wl, ACX_FRAG_CFG, acx, sizeof(*acx)); | 880 | ret = wl1271_cmd_configure(wl, ACX_FRAG_CFG, acx, sizeof(*acx)); |
881 | if (ret < 0) { | 881 | if (ret < 0) { |
882 | wl1271_warning("Setting of frag threshold failed: %d", ret); | 882 | wl1271_warning("Setting of frag threshold failed: %d", ret); |