From 45ccd84309b2f276fe58f374dcb5c20d8363e64d Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 25 Sep 2015 10:49:01 +0200 Subject: use nlmsg_data instead of the too-new genlmsg_hdr --- src/print_wireless_info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/print_wireless_info.c b/src/print_wireless_info.c index 3410ba9..a629db4 100644 --- a/src/print_wireless_info.c +++ b/src/print_wireless_info.c @@ -174,7 +174,7 @@ static int gwi_sta_cb(struct nl_msg *msg, void *data) { static int gwi_scan_cb(struct nl_msg *msg, void *data) { wireless_info_t *info = data; - struct genlmsghdr *gnlh = genlmsg_hdr(nlmsg_hdr(msg)); + struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); struct nlattr *tb[NL80211_ATTR_MAX + 1]; struct nlattr *bss[NL80211_BSS_MAX + 1]; struct nla_policy bss_policy[NL80211_BSS_MAX + 1] = { -- cgit v1.2.3