> Additionally I tried to add a HWSIM_ATTR_WIPHY to report the wiphy > index directly without users going through wiphy name to index > mapping, but get_wiphy_idx() is internal to cfg80211. The index is > exposed to userspace and is more useful than the name so I wonder if > this function should be exported from cfg80211. Do you really need the address? I'd actually prefer to *only* have the wiphy index, and I don't really see a problem with moving the wiphy_idx from struct cfg80211_registered_device to struct wiphy. johannes