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
>> <[email protected]> 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 <[email protected]>
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

Reply via email to