if(net_device->ieee80211_ptr != NULL)
? The ieee80211_ptr
is a struct wireless_dev*
. This structure should give you access to most of the values you requested. In struct wireless_dev
is struct wiphy *wiphy;
, you can use this to get a cfg80211_registered_device
with wiphy_to_dev()
.
The gateway address is unrelated to wireless. I doubt devices
have any gateway information but you need the interface name
in net_device
to find the route. The route is IP related and has nothing to do with a device
. Good luck.