iw: Support ht-capability overrides mask.
RFC 1/1 iw: Support ht-capability overrides mask.
From: Ben Greear <[email protected]>
Let user know which capabilities are supported.
Signed-off-by Ben Greear <[email protected]>
---
:100644 100644 b55b282... aeec06f... M info.c
:100644 100644 8049bf7... e732da8... M nl80211.h
info.c | 28 ++++++++++++++++++++++++++++ nl80211.h | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+), 0 deletions(-)
info.c +28 -0
@@ -400,6 +400,34 @@ broken_combination:if (tb_msg[NL80211_ATTR_SUPPORT_AP_UAPSD ])printf ("\tDevice supports AP-side u-APSD.\n" ); +if (tb_msg[NL80211_ATTR_HT_CAPABILITY_MASK ]) { +struct ieee80211_ht_cap *cm; +printf ("\tHT Capabilities over-rides:\n" ); +if (nla_len (tb_msg[NL80211_ATTR_HT_CAPABILITY_MASK ]) >= +sizeof (*cm)) { + cm =nla_data (tb_msg[NL80211_ATTR_HT_CAPABILITY_MASK ]); +printf ("\t\t* MCS: %02hx %02hx %02hx %02hx %02hx %02hx" +" %02hx %02hx %02hx %02hx\n" , + cm->mcs.rx_mask[0 ], cm->mcs.rx_mask[1 ], + cm->mcs.rx_mask[2 ], cm->mcs.rx_mask[3 ], + cm->mcs.rx_mask[4 ], cm->mcs.rx_mask[5 ], + cm->mcs.rx_mask[6 ], cm->mcs.rx_mask[7 ], + cm->mcs.rx_mask[8 ], cm->mcs.rx_mask[9 ]); +printf ("\t\t* MAX-AMSDU: %s\n" +"\t\t* AMPDU-Factor: %s\n" +"\t\t* AMPDU-Density: %s\n" , + cm->cap_info &IEEE80211_HT_CAP_MAX_AMSDU ?"Yes" :"No" , + cm->ampdu_params_info &IEEE80211_HT_AMPDU_PARM_FACTOR ?"Yes" :"No" , + cm->ampdu_params_info &IEEE80211_HT_AMPDU_PARM_DENSITY ?"Yes" :"No" ); + }else { +printf ("\tERROR: capabilities mask is too short, expected: %d" +", received: %d\n" , +sizeof (*cm),nla_len (tb_msg[NL80211_ATTR_HT_CAPABILITY_MASK ])); + } + }else { +printf ("\tHT Capabilities over-rides are NOT supported\n" ); + } +return NL_SKIP ; }
nl80211.h +54 -0
72 lines not on this page · raw message
Signature · 1 line
1.7.3.4