3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-04 02:18:49 +02:00

netdev: added accessor for wiphy

Added an accessor to get wiphy associated with a network device
This commit is contained in:
Tim Kourt 2018-05-24 10:12:09 -07:00 committed by Denis Kenzior
parent 465488878e
commit 367522fe8f
2 changed files with 6 additions and 0 deletions

View File

@ -145,6 +145,11 @@ struct cb_data {
void *user_data;
};
struct wiphy *netdev_get_wiphy(struct netdev *netdev)
{
return netdev->wiphy;
}
static void netlink_result(int error, uint16_t type, const void *data,
uint32_t len, void *user_data)
{

View File

@ -91,6 +91,7 @@ typedef void (*netdev_frame_watch_func_t)(struct netdev *netdev,
const void *body, size_t body_len,
void *user_data);
struct wiphy *netdev_get_wiphy(struct netdev *netdev);
const uint8_t *netdev_get_address(struct netdev *netdev);
uint32_t netdev_get_ifindex(struct netdev *netdev);
enum netdev_iftype netdev_get_iftype(struct netdev *netdev);