X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/ebbc05cf3ba8aced5cab26ebbfe1649d1006d406..002c3c665289b52eb20fd899fd3561e7f9d9e073:/package/iw/patches/100-rx_rate.patch diff --git a/package/iw/patches/100-rx_rate.patch b/package/iw/patches/100-rx_rate.patch index e3df6ca09..780a7d439 100644 --- a/package/iw/patches/100-rx_rate.patch +++ b/package/iw/patches/100-rx_rate.patch @@ -43,9 +43,9 @@ struct nlattr *sinfo[NL80211_STA_INFO_MAX + 1]; - struct nlattr *rinfo[NL80211_RATE_INFO_MAX + 1]; char mac_addr[20], state_name[10], dev[20]; + struct nl80211_sta_flag_update *sta_flags; static struct nla_policy stats_policy[NL80211_STA_INFO_MAX + 1] = { - [NL80211_STA_INFO_INACTIVE_TIME] = { .type = NLA_U32 }, -@@ -45,6 +75,7 @@ static int print_sta_handler(struct nl_m +@@ -46,6 +76,7 @@ static int print_sta_handler(struct nl_m [NL80211_STA_INFO_TX_PACKETS] = { .type = NLA_U32 }, [NL80211_STA_INFO_SIGNAL] = { .type = NLA_U8 }, [NL80211_STA_INFO_TX_BITRATE] = { .type = NLA_NESTED }, @@ -53,8 +53,8 @@ [NL80211_STA_INFO_LLID] = { .type = NLA_U16 }, [NL80211_STA_INFO_PLID] = { .type = NLA_U16 }, [NL80211_STA_INFO_PLINK_STATE] = { .type = NLA_U8 }, -@@ -52,13 +83,6 @@ static int print_sta_handler(struct nl_m - [NL80211_STA_INFO_TX_FAILED] = { .type = NLA_U32 }, +@@ -55,13 +86,6 @@ static int print_sta_handler(struct nl_m + { .minlen = sizeof(struct nl80211_sta_flag_update) }, }; - static struct nla_policy rate_policy[NL80211_RATE_INFO_MAX + 1] = { @@ -67,7 +67,7 @@ nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), genlmsg_attrlen(gnlh, 0), NULL); -@@ -111,25 +135,8 @@ static int print_sta_handler(struct nl_m +@@ -114,25 +138,8 @@ static int print_sta_handler(struct nl_m printf("\n\tsignal avg:\t%d dBm", (int8_t)nla_get_u8(sinfo[NL80211_STA_INFO_SIGNAL_AVG]));