From 37ea99d09e48defc6e1610f36320ed388c1c9b9f Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 19 Jul 2016 15:49:22 -0500 Subject: [PATCH] netdev: Remove netdev_new_wiphy_hint --- src/netdev.c | 12 ------------ src/netdev.h | 1 - src/wiphy.c | 2 -- 3 files changed, 15 deletions(-) diff --git a/src/netdev.c b/src/netdev.c index 98867801..392f5014 100644 --- a/src/netdev.c +++ b/src/netdev.c @@ -1525,18 +1525,6 @@ static void netdev_link_notify(uint16_t type, const void *data, uint32_t len, } } -void netdev_new_wiphy_hint(uint32_t wiphy_id) -{ - struct l_genl_msg *msg; - - msg = l_genl_msg_new_sized(NL80211_CMD_GET_INTERFACE, 8); - l_genl_msg_append_attr(msg, NL80211_ATTR_WIPHY, 4, &wiphy_id); - - if (!l_genl_family_dump(nl80211, msg, netdev_get_interface_callback, - NULL, NULL)) - l_error("Getting wiphy %d interface info failed", wiphy_id); -} - static bool netdev_watch_match(const void *a, const void *b) { const struct netdev_watch *item = a; diff --git a/src/netdev.h b/src/netdev.h index 6f446513..ccc2c997 100644 --- a/src/netdev.h +++ b/src/netdev.h @@ -83,7 +83,6 @@ int netdev_set_powered(struct netdev *netdev, bool powered, netdev_destroy_func_t destroy); struct netdev *netdev_find(int ifindex); -void netdev_new_wiphy_hint(uint32_t wiphy_id); uint32_t netdev_watch_add(struct netdev *netdev, netdev_watch_func_t func, void *user_data); diff --git a/src/wiphy.c b/src/wiphy.c index c6c60708..3a39b977 100644 --- a/src/wiphy.c +++ b/src/wiphy.c @@ -406,8 +406,6 @@ static void wiphy_new_wiphy_event(struct l_genl_msg *msg) wiphy_print_basic_info(wiphy); wiphy_register(wiphy); - - netdev_new_wiphy_hint(wiphy->id); } static void wiphy_del_wiphy_event(struct l_genl_msg *msg)