2010-11-04 13:36:15

by Larry Finger

[permalink] [raw]
Subject: Question about wireless configuration

I am trying to test the latest Realtek driver for the RTL8187L. In order for the
driver to be able to scan, CONFIG_WIRELESS_EXT must be set to "y". I could find
no way to do that with the kernel configuration utilities until I made the
following patch. I know it is wrong, but I would like to know the correct way.

Thanks,

Larry



diff --git a/net/wireless/Kconfig b/net/wireless/Kconfig
index d0ee290..c50af61 100644
--- a/net/wireless/Kconfig
+++ b/net/wireless/Kconfig
@@ -1,5 +1,5 @@
config WIRELESS_EXT
- bool
+ def_bool y

config WEXT_CORE
def_bool y


2010-11-04 14:53:15

by Larry Finger

[permalink] [raw]
Subject: Re: Question about wireless configuration

On 11/04/2010 08:50 AM, Johannes Berg wrote:
>> I am trying to test the latest Realtek driver for the RTL8187L. In order
>> for the driver to be able to scan, CONFIG_WIRELESS_EXT must be set to
>> "y". I could find no way to do that with the kernel configuration
>> utilities until I made the following patch. I know it is wrong, but I
>> would like to know the correct way.
>
> There is no correct way, drivers that need it will select it in kconfig which obviously doesn't work for out-of-tree drivers.

Thanks. I selected ZD1201 in the configuration, and WIRELESS_EXT is there.

Larry

2010-11-04 13:50:50

by Johannes Berg

[permalink] [raw]
Subject: Re: Question about wireless configuration

> I am trying to test the latest Realtek driver for the RTL8187L. In order
> for the driver to be able to scan, CONFIG_WIRELESS_EXT must be set to
> "y". I could find no way to do that with the kernel configuration
> utilities until I made the following patch. I know it is wrong, but I
> would like to know the correct way.

There is no correct way, drivers that need it will select it in kconfig which obviously doesn't work for out-of-tree drivers.

Johannes


2010-11-04 19:33:33

by Rafał Miłecki

[permalink] [raw]
Subject: Re: Question about wireless configuration

2010/11/4 Larry Finger <[email protected]>:
> On 11/04/2010 08:50 AM, Johannes Berg wrote:
>>> I am trying to test the latest Realtek driver for the RTL8187L. In order
>>> for the driver to be able to scan, CONFIG_WIRELESS_EXT must be set to
>>> "y". I could find no way to do that with the kernel configuration
>>> utilities until I made the following patch. I know it is wrong, but I
>>> would like to know the correct way.
>>
>> There is no correct way, drivers that need it will select it in kconfig which obviously doesn't work for out-of-tree drivers.
>
> Thanks. I selected ZD1201 in the configuration, and WIRELESS_EXT is there.

Done the same for wl :) I think I just used ipw2200 driver, not ZD1201.

--
Rafał