Hi, Javier and Thomas
Some good news. After modify the ath9k driver to enable the hw
acceleration, I am able to achieve the throughput of ~38Mbps using single
TCP stream and upto 58Mbps using 10 TCP streams for HT20. It can reach up
to 93Mbps for HT40+ (limited by Fast Ethernet in my embedded board).
Attach is the patch. After applying the patch, we can load the ath9k kernel
module without nohwcrypt=1.
--- ./drivers/net/wireless/ath/ath9k/main.c 2011-11-17 09:25:44.049131028
+0800
+++ ./drivers/net/wireless/ath/ath9k/main.c 2011-11-17
08:15:59.734686963 +0800
@@ -1914,7 +1914,8 @@ static int ath9k_set_key(struct ieee8021
if (ath9k_modparam_nohwcrypt)
return -ENOSPC;
- if (vif->type == NL80211_IFTYPE_ADHOC &&
+ if ((vif->type == NL80211_IFTYPE_ADHOC ||
+ vif->type == NL80211_IFTYPE_MESH_POINT) &&
(key->cipher == WLAN_CIPHER_SUITE_TKIP ||
key->cipher == WLAN_CIPHER_SUITE_CCMP) &&
!(key->flags & IEEE80211_KEY_FLAG_PAIRWISE)) {
Regards,
Chun-Yeow
----------
mtk: hexdump
4c 1e ac 72 37 3a 32 c8 26 98 20 2b 7c c6 99 da
----------
estab with 0a:0b:6b:7d:e3:b9
set auth flag (seq num=1315733358)
set plink state (seq num=1315733359)
mesh plink with 0a:0b:6b:7d:e3:b9 established
NL80211_CMD_TX_STATUS (1315733333.795799)
Mesh plink timer for 0a:0b:6b:7d:e3:b9 fired on state ESTAB
Timeout for peer 0a:0b:6b:7d:e3:b9 in state 4
# iperf -c 10.44.29.245 -i 1 -t 10
------------------------------------------------------------
Client connecting to 10.44.29.245, TCP port 5001
TCP window size: 16.0 KByte (default)
------------------------------------------------------------
[ 3] local 10.44.29.182 port 54691 connected with 10.44.29.245 port 5001
[ ID] Interval Transfer Bandwidth
.....
[ 3] 0.0-10.0 sec 45.4 MBytes 37.9 Mbits/sec
On Wed, Nov 16, 2011 at 3:41 AM, Javier Cardona <[email protected]> wrote:
> Hi Yeoh,
>
> That's great info, thanks! We'll ask our ath9k experts if they can
> help us enable hw acceleration in mesh mode.
>
> Cheers,
>
> Javier
>
_______________________________________________
Devel mailing list
[email protected]
http://open80211s.com/mailman/listinfo/devel