mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 10:32:33 +01:00
netdev: added accessor for wiphy
Added an accessor to get wiphy associated with a network device
This commit is contained in:
parent
465488878e
commit
367522fe8f
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user