diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2015-09-25 10:49:01 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2015-09-25 10:49:01 +0200 |
commit | 45ccd84309b2f276fe58f374dcb5c20d8363e64d (patch) | |
tree | 67b162edb6f2d0ccf4a4a3fd0e359a391326d813 /src | |
parent | e1203ca62ac13f29185e077b88d8cde0068188ed (diff) |
use nlmsg_data instead of the too-new genlmsg_hdr
Diffstat (limited to 'src')
-rw-r--r-- | src/print_wireless_info.c | 2 |
1 files changed, 1 insertions, 1 deletions
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] = { |