mac80211_hwsim: Register and bind to driver
authorMartin Pitt <martin.pitt@ubuntu.com>
Mon, 8 Apr 2013 09:30:01 +0000 (11:30 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 10 Apr 2013 18:23:50 +0000 (20:23 +0200)
commit9ea927748ced4953f1e9a0f1fa1fdeacd1018b4e
treed4b71d02f8eaddb30fe08620389182abf68cb8eb
parentddc4db2e3d5393ede7a9222bb3b7522a603a4678
mac80211_hwsim: Register and bind to driver

Properly register our mac80211_hwsim_driver, attach it to the platform bus.
Bind newly created hwsim devices to that driver, so that our wlan devices get
a proper "driver" sysfs attribute.

This makes mac80211_hwsim interfaces work with NetworkManager.

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
[fix an old and a new message to not be line-broken,
 also fix the driver_register error path]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c