Download raw body.
add one more example to ifconfig.8
On Fri, Apr 12, 2024 at 08:13:48PM +0100, Jason McIntyre wrote: > On Fri, Apr 12, 2024 at 09:13:31PM +0300, Mikhail wrote: > > Not very intuitive thing, could have saved me some time in the past. > > > > Worth a commit? > > > > hi. > > although it might not seem it initially, i think ifconfig is quite > intuitive. it has options, and you can deselect them by prefixing them > with "-". Another argument can be that EXAMPLES section has no example with deleting (deselecting) of an option. But I understand, I drop the patch. > so i don;t see any real benefit in adding your proposed change. > > having said that, although "mediaopt monitor" should work (as you > describe), it should be quicker to just use "monitor" and "-monitor" to > flip it on and off. i say should, because i haven;t tried it and don;t > want to go through the rigmarole of disconnectioning this machine to > test it. For me those two have different behavior, with ifconfig iwx0 monitor ifconfig iwx0 chan 1 I still see frames from original channel and some others, like the interface is in scan mode. ifconfig iwx0 mediaopt monitor ifconfig iwx0 chan 1 I can see only chan 1 frames, which I usually want.
add one more example to ifconfig.8