Skip to contentSkip to conversation

iw: add support to set/get retry limit

PATCH Applied Ujjal Roy 2 participants 2 messages Mar 7, 2014 – Mar 28, 2014

lore
Share & tools
lore

Ujjal Roy

author
#0 lore raw

PATCH 1/1 iw: add support to set/get retry limit

Sorry for late response. Original patch is started below.
...

Show the retry limit in phy details and also configure the retry limit.

---
 info.c | 16 ++++++++++++++++
 phy.c  | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 80 insertions(+)
info.c +16 -0
index a696503..001b317 100644
@@ -246,6 +246,22 @@ next:
 			printf("\tRTS threshold: %d\n", rts);
 	}
 
+	if (tb_msg[NL80211_ATTR_WIPHY_RETRY_SHORT] ||
+	    tb_msg[NL80211_ATTR_WIPHY_RETRY_LONG]) {
+		unsigned char retry_short = 0, retry_long = 0;
+
+		if (tb_msg[NL80211_ATTR_WIPHY_RETRY_SHORT])
+			retry_short = nla_get_u8(tb_msg[NL80211_ATTR_WIPHY_RETRY_SHORT]);
+		if (tb_msg[NL80211_ATTR_WIPHY_RETRY_LONG])
+			retry_long = nla_get_u8(tb_msg[NL80211_ATTR_WIPHY_RETRY_LONG]);
+		if (retry_short == retry_long) {
+			printf("\tRetry short long limit: %d\n", retry_short);
+		} else {
+			printf("\tRetry short limit: %d\n", retry_short);
+			printf("\tRetry long limit: %d\n", retry_long);
+		}
+	}
+
 	if (tb_msg[NL80211_ATTR_WIPHY_COVERAGE_CLASS]) {
 		unsigned char coverage;
 
phy.c +64 -0

70 lines not on this page · raw message

Signature · 1 line
1.8.1.4
#1 lore raw
Quoted 2 lines · Ujjal Roy

Sorry for late response. Original patch is started below.
...

Applied, sorry for the late response :)

johannes