diff options
author | Florian Fainelli <florian@openwrt.org> | 2008-08-13 19:32:40 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2008-08-13 19:32:40 +0000 |
commit | 2a888f2e238c3b930cba4f2bf8e9726fb65a29fb (patch) | |
tree | 40279fb81a39347b33c4189a6169cfa79ef28f7b /package/hostapd/patches/004-nl80211-rename-STAT-to-INFO.patch | |
parent | da77408537154fe5474af3645f9658c4b38702f5 (diff) | |
download | upstream-2a888f2e238c3b930cba4f2bf8e9726fb65a29fb.tar.gz upstream-2a888f2e238c3b930cba4f2bf8e9726fb65a29fb.tar.bz2 upstream-2a888f2e238c3b930cba4f2bf8e9726fb65a29fb.zip |
Update hostapd to 0.6.4
SVN-Revision: 12298
Diffstat (limited to 'package/hostapd/patches/004-nl80211-rename-STAT-to-INFO.patch')
-rw-r--r-- | package/hostapd/patches/004-nl80211-rename-STAT-to-INFO.patch | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/package/hostapd/patches/004-nl80211-rename-STAT-to-INFO.patch b/package/hostapd/patches/004-nl80211-rename-STAT-to-INFO.patch deleted file mode 100644 index 3cc80f9767..0000000000 --- a/package/hostapd/patches/004-nl80211-rename-STAT-to-INFO.patch +++ /dev/null @@ -1,53 +0,0 @@ ---- a/hostapd/driver_nl80211.c -+++ b/hostapd/driver_nl80211.c -@@ -598,11 +598,11 @@ - struct nlattr *tb[NL80211_ATTR_MAX + 1]; - struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); - struct hostap_sta_driver_data *data = arg; -- struct nlattr *stats[NL80211_STA_STAT_MAX + 1]; -- static struct nla_policy stats_policy[NL80211_STA_STAT_MAX + 1] = { -- [NL80211_STA_STAT_INACTIVE_TIME] = { .type = NLA_U32 }, -- [NL80211_STA_STAT_RX_BYTES] = { .type = NLA_U32 }, -- [NL80211_STA_STAT_TX_BYTES] = { .type = NLA_U32 }, -+ struct nlattr *stats[NL80211_STA_INFO_MAX + 1]; -+ static struct nla_policy stats_policy[NL80211_STA_INFO_MAX + 1] = { -+ [NL80211_STA_INFO_INACTIVE_TIME] = { .type = NLA_U32 }, -+ [NL80211_STA_INFO_RX_BYTES] = { .type = NLA_U32 }, -+ [NL80211_STA_INFO_TX_BYTES] = { .type = NLA_U32 }, - }; - - nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), -@@ -614,24 +614,24 @@ - * the kernel starts sending station notifications. - */ - -- if (!tb[NL80211_ATTR_STA_STATS]) { -+ if (!tb[NL80211_ATTR_STA_INFO]) { - wpa_printf(MSG_DEBUG, "sta stats missing!"); - return NL_SKIP; - } -- if (nla_parse_nested(stats, NL80211_STA_STAT_MAX, -- tb[NL80211_ATTR_STA_STATS], -+ if (nla_parse_nested(stats, NL80211_STA_INFO_MAX, -+ tb[NL80211_ATTR_STA_INFO], - stats_policy)) { - wpa_printf(MSG_DEBUG, "failed to parse nested attributes!"); - return NL_SKIP; - } - -- if (stats[NL80211_STA_STAT_INACTIVE_TIME]) -+ if (stats[NL80211_STA_INFO_INACTIVE_TIME]) - data->inactive_msec = -- nla_get_u32(stats[NL80211_STA_STAT_INACTIVE_TIME]); -- if (stats[NL80211_STA_STAT_RX_BYTES]) -- data->rx_bytes = nla_get_u32(stats[NL80211_STA_STAT_RX_BYTES]); -- if (stats[NL80211_STA_STAT_TX_BYTES]) -- data->rx_bytes = nla_get_u32(stats[NL80211_STA_STAT_TX_BYTES]); -+ nla_get_u32(stats[NL80211_STA_INFO_INACTIVE_TIME]); -+ if (stats[NL80211_STA_INFO_RX_BYTES]) -+ data->rx_bytes = nla_get_u32(stats[NL80211_STA_INFO_RX_BYTES]); -+ if (stats[NL80211_STA_INFO_TX_BYTES]) -+ data->rx_bytes = nla_get_u32(stats[NL80211_STA_INFO_TX_BYTES]); - - return NL_SKIP; - } |