iw: add support to set/get retry limit
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.
Signed-off-by Ujjal Roy <[email protected]>
--- info.c | 16 ++++++++++++++++ phy.c | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+)
info.c +16 -0
@@ -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
Johannes Berg
AppliedQuoted 2 lines · Ujjal Roy
Sorry for late response. Original patch is started below.
...
Applied, sorry for the late response :)
johannes