On Thu, 2014-09-25 at 15:58 -0700, greearb@xxxxxxxxxxxxxxx wrote: > From: Ben Greear <greearb@xxxxxxxxxxxxxxx> > > 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@xxxxxxxxxxxxxxx> > --- > > v2: Protect against bad input. > > drivers/net/wireless/mac80211_hwsim.c | 22 +++++++++++++++++----- > drivers/net/wireless/mac80211_hwsim.h | 2 ++ > 2 files changed, 19 insertions(+), 5 deletions(-) > > diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c > index 43435c0..b755920 100644 > --- a/drivers/net/wireless/mac80211_hwsim.c > +++ b/drivers/net/wireless/mac80211_hwsim.c > @@ -2535,16 +2535,28 @@ static int hwsim_create_radio_nl(struct sk_buff *msg, struct genl_info *info) > static int hwsim_destroy_radio_nl(struct sk_buff *msg, struct genl_info *info) > { > struct mac80211_hwsim_data *data; > - int idx; > + int idx = -1; you might have to make this an s64? > + * @HWSIM_ATTR_RADIO_NAME: Name of radio, ie phy666 e.g., not i.e. johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html