Hi, is there a way to enumerate wireless adapters in the kernel and
determine what their channel and frequency is? I'm looking for a way
to determine this from another component in the kernel so as to avoid
any potential frequency interface from another device in the kernel.
Thanks,
Alex
On Fri, Mar 4, 2022 at 3:48 PM Larry Finger <[email protected]> wrote:
>
> On 3/4/22 13:59, Alex Deucher wrote:
> > Hi, is there a way to enumerate wireless adapters in the kernel and
> > determine what their channel and frequency is? I'm looking for a way
> > to determine this from another component in the kernel so as to avoid
> > any potential frequency interface from another device in the kernel.
>
> The command 'iw dev' will list the device name and frequency if the device is
> connected. There is a bit of extraneous output, but it is not difficult to sort
> it outwith something like iw dev | egrep "Interface|channel"
What about within the kernel itself? E.g., from another kernel driver?
Alex
On 3/4/22 13:59, Alex Deucher wrote:
> Hi, is there a way to enumerate wireless adapters in the kernel and
> determine what their channel and frequency is? I'm looking for a way
> to determine this from another component in the kernel so as to avoid
> any potential frequency interface from another device in the kernel.
The command 'iw dev' will list the device name and frequency if the device is
connected. There is a bit of extraneous output, but it is not difficult to sort
it outwith something like iw dev | egrep "Interface|channel"
Larry