[PATCH 1/3] hwsim: Support deleting hwsim by name.

Ben Greear greearb at candelatech.com
Wed Oct 29 11:58:10 EDT 2014


On 10/29/2014 08:56 AM, Johannes Berg wrote:
> On Mon, 2014-10-27 at 12:59 -0700, Ben Greear wrote:
> 
>>>  destroy_radio(index=12345)
>>> or
>>>  destroy_radio(name="phy0")
>>
>>
>> Do you intend the command-line arguments to the script to change?
> 
> I don't really care.
> 
>> At the least, I think the old behaviour needs to continue working
> 
> Agree, that'd make sense.
> 
>> as is, but I guess I could add a --by-name argument or something like that?
> 
> Well the script could also just try to auto-detect, I just don't like
> doing it at the API level.
> 
>> hwsim.py destroy --by-name vwiphy0
> 
> That seems reasonable as well.

I'm barely functional with Python, but will make a stab at implementing
this last option...

Thanks,
Ben

> 
> johannes
> 


-- 
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc  http://www.candelatech.com



More information about the HostAP mailing list