3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-25 08:02:38 +01:00

monitor: Add support for decoding connection quality monitor attributes

This commit is contained in:
Marcel Holtmann 2014-08-10 11:35:16 -07:00
parent 4ec7eb1c74
commit da3c7310a0

View File

@ -418,6 +418,19 @@ static const struct attr_entry frame_types_table[] = {
{ } { }
}; };
static const struct attr_entry cqm_table[] = {
{ NL80211_ATTR_CQM_RSSI_THOLD, "RSSI threshold", ATTR_U32 },
{ NL80211_ATTR_CQM_RSSI_HYST, "RSSI hysteresis", ATTR_U32 },
{ NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT,
"RSSI threshold event", ATTR_U32 },
{ NL80211_ATTR_CQM_PKT_LOSS_EVENT,
"Packet loss event", ATTR_U32 },
{ NL80211_ATTR_CQM_TXE_RATE, "TX error rate", ATTR_U32 },
{ NL80211_ATTR_CQM_TXE_PKTS, "TX error packets", ATTR_U32 },
{ NL80211_ATTR_CQM_TXE_INTVL, "TX error interval", ATTR_U32 },
{ }
};
static const struct attr_entry attr_table[] = { static const struct attr_entry attr_table[] = {
{ NL80211_ATTR_WIPHY, { NL80211_ATTR_WIPHY,
"Wiphy", ATTR_U32 }, "Wiphy", ATTR_U32 },
@ -612,7 +625,7 @@ static const struct attr_entry attr_table[] = {
{ NL80211_ATTR_PS_STATE, { NL80211_ATTR_PS_STATE,
"PS State", ATTR_U32 }, "PS State", ATTR_U32 },
{ NL80211_ATTR_CQM, { NL80211_ATTR_CQM,
"CQM" }, "CQM", ATTR_NESTED, { cqm_table } },
{ NL80211_ATTR_LOCAL_STATE_CHANGE, { NL80211_ATTR_LOCAL_STATE_CHANGE,
"Local State Change", ATTR_FLAG }, "Local State Change", ATTR_FLAG },
{ NL80211_ATTR_AP_ISOLATE, { NL80211_ATTR_AP_ISOLATE,