* Command equivalent in iw
@ 2017-07-06 2:51 Larry Finger
2017-07-06 7:38 ` Emmanuel Grumbach
0 siblings, 1 reply; 4+ messages in thread
From: Larry Finger @ 2017-07-06 2:51 UTC (permalink / raw)
To: linux-wireless
Someone using the rtlwifi code that is posted at GitHub wants to know the iw
equivalent of "iwpriv wlan0 bandcfg" to limit the wireless interface to 802.11b,
802.11g, or 802.11n. I only use simple iw commands, and I could not answer the
question.
Thanks,
Larry
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Command equivalent in iw
2017-07-06 2:51 Command equivalent in iw Larry Finger
@ 2017-07-06 7:38 ` Emmanuel Grumbach
2017-07-06 14:36 ` Ben Greear
0 siblings, 1 reply; 4+ messages in thread
From: Emmanuel Grumbach @ 2017-07-06 7:38 UTC (permalink / raw)
To: Larry Finger; +Cc: linux-wireless
On Thu, Jul 6, 2017 at 5:51 AM, Larry Finger <Larry.Finger@lwfinger.net> wrote:
>
> Someone using the rtlwifi code that is posted at GitHub wants to know the iw equivalent of "iwpriv wlan0 bandcfg" to limit the wireless interface to 802.11b, 802.11g, or 802.11n. I only use simple iw commands, and I could not answer the question.
This seems to be a private IOCTL and I can't find the code for that
handler in the kernel today. Even in wireless extensions..
I am not aware of something like this with iw today.
In iwlwifi we have module parameter for this since this should really
be used seldom.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Command equivalent in iw
2017-07-06 7:38 ` Emmanuel Grumbach
@ 2017-07-06 14:36 ` Ben Greear
2017-07-06 17:15 ` Arend van Spriel
0 siblings, 1 reply; 4+ messages in thread
From: Ben Greear @ 2017-07-06 14:36 UTC (permalink / raw)
To: Emmanuel Grumbach, Larry Finger; +Cc: linux-wireless
On 07/06/2017 12:38 AM, Emmanuel Grumbach wrote:
> On Thu, Jul 6, 2017 at 5:51 AM, Larry Finger <Larry.Finger@lwfinger.net> wrote:
>>
>> Someone using the rtlwifi code that is posted at GitHub wants to know the iw equivalent of "iwpriv wlan0 bandcfg" to limit the wireless interface to 802.11b, 802.11g, or 802.11n. I only use simple iw commands, and I could not answer the question.
>
> This seems to be a private IOCTL and I can't find the code for that
> handler in the kernel today. Even in wireless extensions..
> I am not aware of something like this with iw today.
>
> In iwlwifi we have module parameter for this since this should really
> be used seldom.
I have some patches for wpa_supplicant and the wifi stack (and ath10k) that lets this work,
but it is fairly invasive, somewhat tricky to configure the supplicant properly,
and the kernel related patches were rejected some time back, so
it will only live in my trees for the foreseeable future.
If it is important to someone, they can find my kernels and hostapd and such here
and maybe google for past email from me about such things for hints:
https://github.com/greearb
Thanks,
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Command equivalent in iw
2017-07-06 14:36 ` Ben Greear
@ 2017-07-06 17:15 ` Arend van Spriel
0 siblings, 0 replies; 4+ messages in thread
From: Arend van Spriel @ 2017-07-06 17:15 UTC (permalink / raw)
To: Ben Greear, Emmanuel Grumbach, Larry Finger
Cc: linux-wireless, Rafał Miłecki
On 06-07-17 16:36, Ben Greear wrote:
>
>
> On 07/06/2017 12:38 AM, Emmanuel Grumbach wrote:
>> On Thu, Jul 6, 2017 at 5:51 AM, Larry Finger
>> <Larry.Finger@lwfinger.net> wrote:
>>>
>>> Someone using the rtlwifi code that is posted at GitHub wants to know
>>> the iw equivalent of "iwpriv wlan0 bandcfg" to limit the wireless
>>> interface to 802.11b, 802.11g, or 802.11n. I only use simple iw
>>> commands, and I could not answer the question.
>>
>> This seems to be a private IOCTL and I can't find the code for that
>> handler in the kernel today. Even in wireless extensions..
>> I am not aware of something like this with iw today.
>>
>> In iwlwifi we have module parameter for this since this should really
>> be used seldom.
>
> I have some patches for wpa_supplicant and the wifi stack (and ath10k)
> that lets this work,
> but it is fairly invasive, somewhat tricky to configure the supplicant
> properly,
> and the kernel related patches were rejected some time back, so
> it will only live in my trees for the foreseeable future.
>
> If it is important to someone, they can find my kernels and hostapd and
> such here
> and maybe google for past email from me about such things for hints:
>
> https://github.com/greearb
So what has been accepted in the kernel a while ago is to do the above
through devicetree configuration as it is considered a system use-case.
This was done by
commit e691ac2f75b69bee743f0370d79454ba4429b175
Author: Rafał Miłecki <rafal@milecki.pl>
Date: Wed Jan 4 18:58:31 2017 +0100
cfg80211: support ieee80211-freq-limit DT property
The DT property is handled by cfg80211 in net/wireless/of.c.
Regards,
Arend
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-07-06 17:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-06 2:51 Command equivalent in iw Larry Finger
2017-07-06 7:38 ` Emmanuel Grumbach
2017-07-06 14:36 ` Ben Greear
2017-07-06 17:15 ` Arend van Spriel
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.