Skip to contentSkip to conversation

PATCH: iw: add support for NoAck per tid

ath9k-devel chansun.xjs 2 participants 2 messages Apr 17, 2012 – May 1, 2012

lore
Share & tools
lore
#0 lore raw

Hi,guys!
Have anyone tested the patch as follow? I got no build errors, but failed when executing like this:
#iw wlan0 set noack_map BE
command failed: Operation not supported (-122)
By the way, I chose OpenWRT Backfire 10.03.1 r30898 at 2011-12-20.
Any one dealt with it ? Much appreciate.

 interface.c |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)
interface.c +27 -0
@@ -386,6 +386,33 @@ COMMAND(set, 4addr, "<on|off>",
 	NL80211_CMD_SET_INTERFACE, 0, CIB_NETDEV, handle_interface_4addr,
 	"Set interface 4addr (WDS) mode.");
 
+static int handle_interface_noack_map(struct nl80211_state *state,
+				      struct nl_cb *cb,
+				      struct nl_msg *msg,
+				      int argc, char **argv)
+{
+	uint16_t noack_map;
+	char *end;
+
+	if (argc != 1)
+		return 1;
+
+	noack_map = strtoul(argv[0], &end, 16);
+	if (*end)
+		return 1;
+
+	NLA_PUT_U16(msg, NL80211_ATTR_NOACK_MAP, noack_map);
+
+	return 0;
+ nla_put_failure:
+	return -ENOBUFS;
+
+}
+COMMAND(set, noack_map, "<map>",
+	NL80211_CMD_SET_NOACK_MAP, 0, CIB_NETDEV, handle_interface_noack_map,
+	"Set the NoAck map for the TIDs. (0x0009 = BE, 0x0006 = BK, 0x0030 = VI, 0x00C0 = VO)");
+
+
 static int handle_interface_wds_peer(struct nl80211_state *state,
                                                        struct nl_cb *cb,
                                                        struct nl_msg *msg,

-------------------------------------------------------------

2012-04-17

chansun.xjs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20120417/d47079e8/attachment.htm

#1 lore raw
Quoted 4 lines · chansun.xjs

Hi,guys!
????Have anyone tested the patch as follow? I got no build errors, but failed when executing like this:
??????#iw wlan0 set noack_map BE

i think we should do something like this

iw dev wlan0 set noack_map 0x0009 ..... for BE
iw dev wlan0 set noack_map 0x0006 ..... for BK

please test with this and see if it helps...also lets dig into the commit logs and code what it does.
ieee80211_set_qos_hdr seems to set IEEE80211_TX_CTL_NO_ACK based on the noack_map and
the corresponding TID

Quoted 53 lines

??????command failed: Operation not supported (-122)
By the way, I chose OpenWRT Backfire 10.03.1 r30898 at 2011-12-20. Any one dealt with it ?? Much appreciate.

?interface.c |?? 27 +++++++++++++++++++++++++++

1 files changed, 27 insertions(+), 0 deletions(-)
interface.c +27 -0
@@ -386,6 +386,33 @@ COMMAND(set, 4addr, "<on|off>",
 NL80211_CMD_SET_INTERFACE, 0, CIB_NETDEV, handle_interface_4addr,
 "Set interface 4addr (WDS) mode.");
 
+static int handle_interface_noack_map(struct nl80211_state *state,
+ ????? struct nl_cb *cb,
+ ????? struct nl_msg *msg,
+ ????? int argc, char **argv)
+{
+ uint16_t noack_map;
+ char *end;
+
+ if (argc != 1)
+ return 1;
+
+ noack_map = strtoul(argv[0], &end, 16);
+ if (*end)
+ return 1;
+
+ NLA_PUT_U16(msg, NL80211_ATTR_NOACK_MAP, noack_map);
+
+ return 0;
+ nla_put_failure:
+ return -ENOBUFS;
+
+}
+COMMAND(set, noack_map, "<map>",
+ NL80211_CMD_SET_NOACK_MAP, 0, CIB_NETDEV, handle_interface_noack_map,
+ "Set the NoAck map for the TIDs. (0x0009 = BE, 0x0006 = BK, 0x0030 = VI,
 0x00C0 = VO)");
+
+
 static int handle_interface_wds_peer(struct nl80211_state *state,
 ??????????????????????????????????????????????????????? struct nl_cb *cb,

????????????????????????????????????????????????????????struct nl_msg *msg,
-------------------------------------------------------------

2012-04-17
________________________________
chansun.xjs

Signature · 2 lines
thanks,
shafi