Hi Bing,
Add a "wireless/nl80211_iftype" entry in the net device sysfs
file structure to indicate the mode of the wireless device so
it can be discovered easily from userspace.
I do question a little bit the usefulness for this one.
It would only work on netdev and on wdev devices.
It's true. That's why the new sysfs entry is added in the 'wireless' placeholder.
/sys/class/net/ethX/wireless/
For non-wireless dev, this won't apply.
I have to correct myself. I meant it does NOT work for wdev. Please just go with nl80211 for this kind of information. It is the right way to handle it. Not some sysfs file.