mac80211-hwsim: support destroying radio by name
authorBen Greear <greearb@candelatech.com>
Wed, 22 Oct 2014 19:22:59 +0000 (12:22 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 24 Oct 2014 08:20:02 +0000 (10:20 +0200)
commit8cdd9e1c37dd888894922b8209d5fc8055cfde52
treeb05f058bf0334db2f832a7b7080a08f811cdfbf4
parent2155c3f82327bddd092bd704ebaff79c0a2dfb9c
mac80211-hwsim: support destroying radio by name

It is not always convenient to have to know the device-id,
so allow deleting by name as well.

Signed-off-by: Ben Greear <greearb@candelatech.com>
[use wiphy_name() instead of dev_name()]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c
drivers/net/wireless/mac80211_hwsim.h