2011-08-17 03:28:53

by Pavel Ivanov

[permalink] [raw]
Subject: [PATCH] ath9k: make driver usable standalone

When ath9k is the only wireless driver included in the build
WIRELESS_EXT configuration option becomes undefined. Because of that
driver becomes essentially unusable as you can't actually connect to
any WiFi network. By including WIRELESS_EXT into Kconfig we ensure
that build with ath9k and without other drivers (having WIRELESS_EXT
selected in their Kconfig) is actually usable.

Signed-off-by: Pavel Ivanov <[email protected]>
---

diff --git a/drivers/net/wireless/ath/ath9k/Kconfig
b/drivers/net/wireless/ath/ath9k/Kconfig
index d9c08c6..2573f77 100644
--- a/drivers/net/wireless/ath/ath9k/Kconfig
+++ b/drivers/net/wireless/ath/ath9k/Kconfig
@@ -11,6 +11,7 @@ config ATH9K
select LEDS_CLASS
select NEW_LEDS
select ATH9K_COMMON
+ select WIRELESS_EXT
---help---
This module adds support for wireless adapters based on
Atheros IEEE 802.11n AR5008, AR9001 and AR9002 family


2011-08-18 19:17:46

by Dan Williams

[permalink] [raw]
Subject: Re: [PATCH] ath9k: make driver usable standalone

On Thu, 2011-08-18 at 00:01 -0400, Pavel Ivanov wrote:
> > Iwconfig and iwlist are themselves deprecated. Iw is the new wireless
> > configuration tool.
>
> I've just tried to use iw and it didn't quite work for me. Maybe it's
> interfering with something installed in Ubuntu by default but

Ubuntu installs NetworkManager by default, so if you want to manually
control the wifi card you'll have to tell NM to ignore the wifi device,
or turn NM off temporarily.

> connect/disconnect commands didn't seem to do anything. And why these
> commands can be executed only as root?

Because poking and configuring hardware is a privileged operation; tools
like NetworkManager selectively poke holes through that wall and often
require administrator passwords to do it, but at the end of the day its
an operation that can affect security and stability, and that means it
needs to be privileged.

In the end, you probably want to be using wpa_supplicant instead of
trying to configure stuff with iw directly.

Dan

> Well, maybe in Ubuntu 11.10 it will work better.
>
>
> Pavel
>
>
> 2011/8/17 Gábor Stefanik <[email protected]>:
> > 2011/8/17 Pavel Ivanov <[email protected]>:
> >>> WIRELESS_EXT is not required for configuring wireless on recent
> >>> kernels - in fact, the WEXT API is deprecated in favor of nl80211 now.
> >>
> >> Since what version it's deprecated? Do user-space tools know about this new API?
> >>
> >> Neither iwconfig nor iwlist worked for me without WIRELESS_EXT.
> >>
> >>
> >> Pavel
> >>
> >
> > Iwconfig and iwlist are themselves deprecated. Iw is the new wireless
> > configuration tool.
> >
> >>
> >> 2011/8/17 Gábor Stefanik <[email protected]>:
> >>> On Wed, Aug 17, 2011 at 5:28 AM, Pavel Ivanov <[email protected]> wrote:
> >>>> When ath9k is the only wireless driver included in the build
> >>>> WIRELESS_EXT configuration option becomes undefined. Because of that
> >>>> driver becomes essentially unusable as you can't actually connect to
> >>>> any WiFi network. By including WIRELESS_EXT into Kconfig we ensure
> >>>> that build with ath9k and without other drivers (having WIRELESS_EXT
> >>>> selected in their Kconfig) is actually usable.
> >>>
> >>> WIRELESS_EXT is not required for configuring wireless on recent
> >>> kernels - in fact, the WEXT API is deprecated in favor of nl80211 now.
> >>>
> >>>>
> >>>> Signed-off-by: Pavel Ivanov <[email protected]>
> >>>> ---
> >>>>
> >>>> diff --git a/drivers/net/wireless/ath/ath9k/Kconfig
> >>>> b/drivers/net/wireless/ath/ath9k/Kconfig
> >>>> index d9c08c6..2573f77 100644
> >>>> --- a/drivers/net/wireless/ath/ath9k/Kconfig
> >>>> +++ b/drivers/net/wireless/ath/ath9k/Kconfig
> >>>> @@ -11,6 +11,7 @@ config ATH9K
> >>>> select LEDS_CLASS
> >>>> select NEW_LEDS
> >>>> select ATH9K_COMMON
> >>>> + select WIRELESS_EXT
> >>>> ---help---
> >>>> This module adds support for wireless adapters based on
> >>>> Atheros IEEE 802.11n AR5008, AR9001 and AR9002 family
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html



2011-08-19 04:28:18

by Pavel Ivanov

[permalink] [raw]
Subject: Re: [PATCH] ath9k: make driver usable standalone

On Thu, Aug 18, 2011 at 6:56 PM, Pavel Ivanov <[email protected]> wrote:
>> Or, since I'm a NetworkManager developer, is there something that you're
>> not sure how to make NM do, or are you just looking to experiment?
>
> I want to make the wireless work when kernel is compiled without
> WIRELESS_EXT. Last time I tried it Ubuntu (I guess I should say
> NetworkManager) wasn't able to discover any wireless networks in our
> area and wasn't able to connect to my default network. Was it supposed
> to do that?

Well, I guess I should say sorry. After all this discussion I've tried
to compile and boot kernel without WIRELESS_EXT once more. And now it
worked.
Last time I tried it was 3.0. Driver from vanilla sources didn't work,
so I compiled compat-wireless-3.0-2 and it did warn me during
compilation, something like "WIRELESS_EXT is not set, something won't
work". Then after boot syslog had somewhat the same message and
wireless didn't work. That's why I started this thread. Now with
3.1-rc2 everything works as is, no warnings in syslog and
NetworkManager connects to my network without any problems. I don't
know what has changed but I feel very sorry for all this mess.


Pavel

2011-08-18 20:33:07

by Dan Williams

[permalink] [raw]
Subject: Re: [PATCH] ath9k: make driver usable standalone

On Thu, 2011-08-18 at 15:30 -0400, Pavel Ivanov wrote:
> > In the end, you probably want to be using wpa_supplicant instead of
> > trying to configure stuff with iw directly.
>
> I see Ubuntu already have wpa_supplicant installed and running.
> Although its command line is not what suggested in documentation and I
> don't see configuration file /etc/wpa_supplicant.conf. Does that mean
> it works somehow differently than stated in documentation? And also
> does all this mean that even if I'll be able to make wpa_supplicant
> work as I need I won't be able to control wireless connection using
> the standard Ubuntu's icon and it won't show me its state correctly?

NetworkManager is installed by default, and NM sends configuration to
wpa_supplicant using a different control interface, not the config file.
If you want to take the wifi interface out from NM's control, I think
you can add the interface to /etc/network/interfaces and NM will then
ignore it, and you can run wpa_supplicant manually with the '-i wlan0'
option to point it to the right interface, and when you've got a config
file, use '-c /path/to/config/file' to give it your configuration.

Or, since I'm a NetworkManager developer, is there something that you're
not sure how to make NM do, or are you just looking to experiment?

Dan

>
> Pavel
>
>
> On Thu, Aug 18, 2011 at 3:20 PM, Dan Williams <[email protected]> wrote:
> > On Thu, 2011-08-18 at 00:01 -0400, Pavel Ivanov wrote:
> >> > Iwconfig and iwlist are themselves deprecated. Iw is the new wireless
> >> > configuration tool.
> >>
> >> I've just tried to use iw and it didn't quite work for me. Maybe it's
> >> interfering with something installed in Ubuntu by default but
> >
> > Ubuntu installs NetworkManager by default, so if you want to manually
> > control the wifi card you'll have to tell NM to ignore the wifi device,
> > or turn NM off temporarily.
> >
> >> connect/disconnect commands didn't seem to do anything. And why these
> >> commands can be executed only as root?
> >
> > Because poking and configuring hardware is a privileged operation; tools
> > like NetworkManager selectively poke holes through that wall and often
> > require administrator passwords to do it, but at the end of the day its
> > an operation that can affect security and stability, and that means it
> > needs to be privileged.
> >
> > In the end, you probably want to be using wpa_supplicant instead of
> > trying to configure stuff with iw directly.
> >
> > Dan
> >
> >> Well, maybe in Ubuntu 11.10 it will work better.
> >>
> >>
> >> Pavel
> >>
> >>
> >> 2011/8/17 Gábor Stefanik <[email protected]>:
> >> > 2011/8/17 Pavel Ivanov <[email protected]>:
> >> >>> WIRELESS_EXT is not required for configuring wireless on recent
> >> >>> kernels - in fact, the WEXT API is deprecated in favor of nl80211 now.
> >> >>
> >> >> Since what version it's deprecated? Do user-space tools know about this new API?
> >> >>
> >> >> Neither iwconfig nor iwlist worked for me without WIRELESS_EXT.
> >> >>
> >> >>
> >> >> Pavel
> >> >>
> >> >
> >> > Iwconfig and iwlist are themselves deprecated. Iw is the new wireless
> >> > configuration tool.
> >> >
> >> >>
> >> >> 2011/8/17 Gábor Stefanik <[email protected]>:
> >> >>> On Wed, Aug 17, 2011 at 5:28 AM, Pavel Ivanov <[email protected]> wrote:
> >> >>>> When ath9k is the only wireless driver included in the build
> >> >>>> WIRELESS_EXT configuration option becomes undefined. Because of that
> >> >>>> driver becomes essentially unusable as you can't actually connect to
> >> >>>> any WiFi network. By including WIRELESS_EXT into Kconfig we ensure
> >> >>>> that build with ath9k and without other drivers (having WIRELESS_EXT
> >> >>>> selected in their Kconfig) is actually usable.
> >> >>>
> >> >>> WIRELESS_EXT is not required for configuring wireless on recent
> >> >>> kernels - in fact, the WEXT API is deprecated in favor of nl80211 now.
> >> >>>
> >> >>>>
> >> >>>> Signed-off-by: Pavel Ivanov <[email protected]>
> >> >>>> ---
> >> >>>>
> >> >>>> diff --git a/drivers/net/wireless/ath/ath9k/Kconfig
> >> >>>> b/drivers/net/wireless/ath/ath9k/Kconfig
> >> >>>> index d9c08c6..2573f77 100644
> >> >>>> --- a/drivers/net/wireless/ath/ath9k/Kconfig
> >> >>>> +++ b/drivers/net/wireless/ath/ath9k/Kconfig
> >> >>>> @@ -11,6 +11,7 @@ config ATH9K
> >> >>>> select LEDS_CLASS
> >> >>>> select NEW_LEDS
> >> >>>> select ATH9K_COMMON
> >> >>>> + select WIRELESS_EXT
> >> >>>> ---help---
> >> >>>> This module adds support for wireless adapters based on
> >> >>>> Atheros IEEE 802.11n AR5008, AR9001 and AR9002 family
> >> --
> >> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> >> the body of a message to [email protected]
> >> More majordomo info at http://vger.kernel.org/majordomo-info.html
> >
> >
> >
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html



2011-08-18 21:26:41

by Luis R. Rodriguez

[permalink] [raw]
Subject: Re: [PATCH] ath9k: make driver usable standalone

On Tue, Aug 16, 2011 at 8:28 PM, Pavel Ivanov <[email protected]> wrote:
> When ath9k is the only wireless driver included in the build
> WIRELESS_EXT configuration option becomes undefined. Because of that
> driver becomes essentially unusable as you can't actually connect to
> any WiFi network. By including WIRELESS_EXT into Kconfig we ensure
> that build with ath9k and without other drivers (having WIRELESS_EXT
> selected in their Kconfig) is actually usable.
>
> Signed-off-by: Pavel Ivanov <[email protected]>

Fuck no, NACK.

Luis

2011-08-18 04:02:06

by Pavel Ivanov

[permalink] [raw]
Subject: Re: [PATCH] ath9k: make driver usable standalone

> Iwconfig and iwlist are themselves deprecated. Iw is the new wireless
> configuration tool.

I've just tried to use iw and it didn't quite work for me. Maybe it's
interfering with something installed in Ubuntu by default but
connect/disconnect commands didn't seem to do anything. And why these
commands can be executed only as root?
Well, maybe in Ubuntu 11.10 it will work better.


Pavel


2011/8/17 G?bor Stefanik <[email protected]>:
> 2011/8/17 Pavel Ivanov <[email protected]>:
>>> WIRELESS_EXT is not required for configuring wireless on recent
>>> kernels - in fact, the WEXT API is deprecated in favor of nl80211 now.
>>
>> Since what version it's deprecated? Do user-space tools know about this new API?
>>
>> Neither iwconfig nor iwlist worked for me without WIRELESS_EXT.
>>
>>
>> Pavel
>>
>
> Iwconfig and iwlist are themselves deprecated. Iw is the new wireless
> configuration tool.
>
>>
>> 2011/8/17 G?bor Stefanik <[email protected]>:
>>> On Wed, Aug 17, 2011 at 5:28 AM, Pavel Ivanov <[email protected]> wrote:
>>>> When ath9k is the only wireless driver included in the build
>>>> WIRELESS_EXT configuration option becomes undefined. Because of that
>>>> driver becomes essentially unusable as you can't actually connect to
>>>> any WiFi network. By including WIRELESS_EXT into Kconfig we ensure
>>>> that build with ath9k and without other drivers (having WIRELESS_EXT
>>>> selected in their Kconfig) is actually usable.
>>>
>>> WIRELESS_EXT is not required for configuring wireless on recent
>>> kernels - in fact, the WEXT API is deprecated in favor of nl80211 now.
>>>
>>>>
>>>> Signed-off-by: Pavel Ivanov <[email protected]>
>>>> ---
>>>>
>>>> diff --git a/drivers/net/wireless/ath/ath9k/Kconfig
>>>> b/drivers/net/wireless/ath/ath9k/Kconfig
>>>> index d9c08c6..2573f77 100644
>>>> --- a/drivers/net/wireless/ath/ath9k/Kconfig
>>>> +++ b/drivers/net/wireless/ath/ath9k/Kconfig
>>>> @@ -11,6 +11,7 @@ config ATH9K
>>>> ? ? ? ?select LEDS_CLASS
>>>> ? ? ? ?select NEW_LEDS
>>>> ? ? ? ?select ATH9K_COMMON
>>>> + ? ? ? select WIRELESS_EXT
>>>> ? ? ? ?---help---
>>>> ? ? ? ? ?This module adds support for wireless adapters based on
>>>> ? ? ? ? ?Atheros IEEE 802.11n AR5008, AR9001 and AR9002 family

2011-08-17 22:51:53

by Valdis Klētnieks

[permalink] [raw]
Subject: Re: [PATCH] ath9k: make driver usable standalone

On Wed, 17 Aug 2011 18:25:49 +0200, G?bor Stefanik said:

> Iwconfig and iwlist are themselves deprecated. Iw is the new wireless
> configuration tool.

Somebody better tell Fedora Rawhide - as of the version released on July 27,
their 'initscripts' RPM was still using iwconfig in /etc/sysconfig/network-scripts/ifup-wireless

So don't be quite so fast to be declaring WIRELESS_EXT dead just yet.




Attachments:
(No filename) (227.00 B)

2011-08-19 01:25:27

by Johannes Berg

[permalink] [raw]
Subject: Re: [PATCH] ath9k: make driver usable standalone

On Thu, 18 Aug 2011 18:56:11 -0400, Pavel Ivanov wrote:
>> Or, since I'm a NetworkManager developer, is there something that
>> you're
>> not sure how to make NM do, or are you just looking to experiment?
>
> I want to make the wireless work when kernel is compiled without
> WIRELESS_EXT. Last time I tried it Ubuntu (I guess I should say
> NetworkManager) wasn't able to discover any wireless networks in our
> area and wasn't able to connect to my default network. Was it
> supposed
> to do that?

*sigh*

Please quote properly and delete stuff you're not replying to.

Also, have you discovered CONFIG_CFG80211_WEXT yet? It's even "default
y", so how did you manage to mess it up?

johannes

2011-08-17 23:20:44

by Larry Finger

[permalink] [raw]
Subject: Re: [PATCH] ath9k: make driver usable standalone

On 08/17/2011 05:51 PM, [email protected] wrote:
> On Wed, 17 Aug 2011 18:25:49 +0200, G?bor Stefanik said:
>
>> Iwconfig and iwlist are themselves deprecated. Iw is the new wireless
>> configuration tool.
>
> Somebody better tell Fedora Rawhide - as of the version released on July 27,
> their 'initscripts' RPM was still using iwconfig in /etc/sysconfig/network-scripts/ifup-wireless
>
> So don't be quite so fast to be declaring WIRELESS_EXT dead just yet.

Well, any distro is free to include any package they want. They can even devote
resources to maintaining it after it is abandoned. Given the feelings among
developers about the WEXT methods, I doubt that will happen.

The distro is also including one of the drivers that need WEXT, which is what
the OP refused to do. If and when all such drivers are converted or removed, the
distro is still free to patch in the WEXT code, but again I doubt that will happen.

Anyone using deprecated methods has been warned.

Larry

2011-08-18 05:19:27

by Adrian Chadd

[permalink] [raw]
Subject: Re: [PATCH] ath9k: make driver usable standalone

Distributions? Using deprecated APIs?

That's unpossible! :-)



Adrian

2011/8/18 Pavel Ivanov <[email protected]>:
>> Iwconfig and iwlist are themselves deprecated. Iw is the new wireless
>> configuration tool.
>
> I've just tried to use iw and it didn't quite work for me. Maybe it's
> interfering with something installed in Ubuntu by default but
> connect/disconnect commands didn't seem to do anything. And why these
> commands can be executed only as root?
> Well, maybe in Ubuntu 11.10 it will work better.
>
>
> Pavel
>
>
> 2011/8/17 G?bor Stefanik <[email protected]>:
>> 2011/8/17 Pavel Ivanov <[email protected]>:
>>>> WIRELESS_EXT is not required for configuring wireless on recent
>>>> kernels - in fact, the WEXT API is deprecated in favor of nl80211 now.
>>>
>>> Since what version it's deprecated? Do user-space tools know about this new API?
>>>
>>> Neither iwconfig nor iwlist worked for me without WIRELESS_EXT.
>>>
>>>
>>> Pavel
>>>
>>
>> Iwconfig and iwlist are themselves deprecated. Iw is the new wireless
>> configuration tool.
>>
>>>
>>> 2011/8/17 G?bor Stefanik <[email protected]>:
>>>> On Wed, Aug 17, 2011 at 5:28 AM, Pavel Ivanov <[email protected]> wrote:
>>>>> When ath9k is the only wireless driver included in the build
>>>>> WIRELESS_EXT configuration option becomes undefined. Because of that
>>>>> driver becomes essentially unusable as you can't actually connect to
>>>>> any WiFi network. By including WIRELESS_EXT into Kconfig we ensure
>>>>> that build with ath9k and without other drivers (having WIRELESS_EXT
>>>>> selected in their Kconfig) is actually usable.
>>>>
>>>> WIRELESS_EXT is not required for configuring wireless on recent
>>>> kernels - in fact, the WEXT API is deprecated in favor of nl80211 now.
>>>>
>>>>>
>>>>> Signed-off-by: Pavel Ivanov <[email protected]>
>>>>> ---
>>>>>
>>>>> diff --git a/drivers/net/wireless/ath/ath9k/Kconfig
>>>>> b/drivers/net/wireless/ath/ath9k/Kconfig
>>>>> index d9c08c6..2573f77 100644
>>>>> --- a/drivers/net/wireless/ath/ath9k/Kconfig
>>>>> +++ b/drivers/net/wireless/ath/ath9k/Kconfig
>>>>> @@ -11,6 +11,7 @@ config ATH9K
>>>>> ? ? ? ?select LEDS_CLASS
>>>>> ? ? ? ?select NEW_LEDS
>>>>> ? ? ? ?select ATH9K_COMMON
>>>>> + ? ? ? select WIRELESS_EXT
>>>>> ? ? ? ?---help---
>>>>> ? ? ? ? ?This module adds support for wireless adapters based on
>>>>> ? ? ? ? ?Atheros IEEE 802.11n AR5008, AR9001 and AR9002 family
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to [email protected]
> More majordomo info at ?http://vger.kernel.org/majordomo-info.html
>

2011-08-17 16:26:11

by Gábor Stefanik

[permalink] [raw]
Subject: Re: [PATCH] ath9k: make driver usable standalone

2011/8/17 Pavel Ivanov <[email protected]>:
>> WIRELESS_EXT is not required for configuring wireless on recent
>> kernels - in fact, the WEXT API is deprecated in favor of nl80211 now.
>
> Since what version it's deprecated? Do user-space tools know about this new API?
>
> Neither iwconfig nor iwlist worked for me without WIRELESS_EXT.
>
>
> Pavel
>

Iwconfig and iwlist are themselves deprecated. Iw is the new wireless
configuration tool.

>
> 2011/8/17 G?bor Stefanik <[email protected]>:
>> On Wed, Aug 17, 2011 at 5:28 AM, Pavel Ivanov <[email protected]> wrote:
>>> When ath9k is the only wireless driver included in the build
>>> WIRELESS_EXT configuration option becomes undefined. Because of that
>>> driver becomes essentially unusable as you can't actually connect to
>>> any WiFi network. By including WIRELESS_EXT into Kconfig we ensure
>>> that build with ath9k and without other drivers (having WIRELESS_EXT
>>> selected in their Kconfig) is actually usable.
>>
>> WIRELESS_EXT is not required for configuring wireless on recent
>> kernels - in fact, the WEXT API is deprecated in favor of nl80211 now.
>>
>>>
>>> Signed-off-by: Pavel Ivanov <[email protected]>
>>> ---
>>>
>>> diff --git a/drivers/net/wireless/ath/ath9k/Kconfig
>>> b/drivers/net/wireless/ath/ath9k/Kconfig
>>> index d9c08c6..2573f77 100644
>>> --- a/drivers/net/wireless/ath/ath9k/Kconfig
>>> +++ b/drivers/net/wireless/ath/ath9k/Kconfig
>>> @@ -11,6 +11,7 @@ config ATH9K
>>> ? ? ? ?select LEDS_CLASS
>>> ? ? ? ?select NEW_LEDS
>>> ? ? ? ?select ATH9K_COMMON
>>> + ? ? ? select WIRELESS_EXT
>>> ? ? ? ?---help---
>>> ? ? ? ? ?This module adds support for wireless adapters based on
>>> ? ? ? ? ?Atheros IEEE 802.11n AR5008, AR9001 and AR9002 family
>



--
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)

2011-08-17 15:56:49

by Pavel Ivanov

[permalink] [raw]
Subject: Re: [PATCH] ath9k: make driver usable standalone

> WIRELESS_EXT is not required for configuring wireless on recent
> kernels - in fact, the WEXT API is deprecated in favor of nl80211 now.

Since what version it's deprecated? Do user-space tools know about this new API?

Neither iwconfig nor iwlist worked for me without WIRELESS_EXT.


Pavel


2011/8/17 G?bor Stefanik <[email protected]>:
> On Wed, Aug 17, 2011 at 5:28 AM, Pavel Ivanov <[email protected]> wrote:
>> When ath9k is the only wireless driver included in the build
>> WIRELESS_EXT configuration option becomes undefined. Because of that
>> driver becomes essentially unusable as you can't actually connect to
>> any WiFi network. By including WIRELESS_EXT into Kconfig we ensure
>> that build with ath9k and without other drivers (having WIRELESS_EXT
>> selected in their Kconfig) is actually usable.
>
> WIRELESS_EXT is not required for configuring wireless on recent
> kernels - in fact, the WEXT API is deprecated in favor of nl80211 now.
>
>>
>> Signed-off-by: Pavel Ivanov <[email protected]>
>> ---
>>
>> diff --git a/drivers/net/wireless/ath/ath9k/Kconfig
>> b/drivers/net/wireless/ath/ath9k/Kconfig
>> index d9c08c6..2573f77 100644
>> --- a/drivers/net/wireless/ath/ath9k/Kconfig
>> +++ b/drivers/net/wireless/ath/ath9k/Kconfig
>> @@ -11,6 +11,7 @@ config ATH9K
>> ? ? ? ?select LEDS_CLASS
>> ? ? ? ?select NEW_LEDS
>> ? ? ? ?select ATH9K_COMMON
>> + ? ? ? select WIRELESS_EXT
>> ? ? ? ?---help---
>> ? ? ? ? ?This module adds support for wireless adapters based on
>> ? ? ? ? ?Atheros IEEE 802.11n AR5008, AR9001 and AR9002 family

2011-08-18 19:15:42

by Dan Williams

[permalink] [raw]
Subject: Re: [PATCH] ath9k: make driver usable standalone

On Wed, 2011-08-17 at 18:51 -0400, [email protected] wrote:
> On Wed, 17 Aug 2011 18:25:49 +0200, Gábor Stefanik said:
>
> > Iwconfig and iwlist are themselves deprecated. Iw is the new wireless
> > configuration tool.
>
> Somebody better tell Fedora Rawhide - as of the version released on July 27,
> their 'initscripts' RPM was still using iwconfig in /etc/sysconfig/network-scripts/ifup-wireless
>
> So don't be quite so fast to be declaring WIRELESS_EXT dead just yet.

Given that nobody has stepped up to write patches to convert them to use
iw (or wpa_supplicant in the *correct* manner), and that for the most
part wifi on Fedora goes through NetworkManager and/or wpa_supplicant,
it's not surprising. I don't have any particular interest in keeping
the existing ifup-wireless iwconfig hackery around, instead if it's
converted at all, it should be converted to use wpa_supplicant instead,
in the manner in which I've described in the various bug reports that
keep coming up. That means not just pointing wpa_supplicant at a config
file, but instead keeping the options in the ifcfg file and writing out
a temporary wpa_supplicant config on-the-fly so that it integrates with
existing administrator expectations and workflow.

Dan


2011-08-17 05:58:05

by Gábor Stefanik

[permalink] [raw]
Subject: Re: [PATCH] ath9k: make driver usable standalone

On Wed, Aug 17, 2011 at 5:28 AM, Pavel Ivanov <[email protected]> wrote:
> When ath9k is the only wireless driver included in the build
> WIRELESS_EXT configuration option becomes undefined. Because of that
> driver becomes essentially unusable as you can't actually connect to
> any WiFi network. By including WIRELESS_EXT into Kconfig we ensure
> that build with ath9k and without other drivers (having WIRELESS_EXT
> selected in their Kconfig) is actually usable.

WIRELESS_EXT is not required for configuring wireless on recent
kernels - in fact, the WEXT API is deprecated in favor of nl80211 now.

>
> Signed-off-by: Pavel Ivanov <[email protected]>
> ---
>
> diff --git a/drivers/net/wireless/ath/ath9k/Kconfig
> b/drivers/net/wireless/ath/ath9k/Kconfig
> index d9c08c6..2573f77 100644
> --- a/drivers/net/wireless/ath/ath9k/Kconfig
> +++ b/drivers/net/wireless/ath/ath9k/Kconfig
> @@ -11,6 +11,7 @@ config ATH9K
> ? ? ? ?select LEDS_CLASS
> ? ? ? ?select NEW_LEDS
> ? ? ? ?select ATH9K_COMMON
> + ? ? ? select WIRELESS_EXT
> ? ? ? ?---help---
> ? ? ? ? ?This module adds support for wireless adapters based on
> ? ? ? ? ?Atheros IEEE 802.11n AR5008, AR9001 and AR9002 family
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to [email protected]
> More majordomo info at ?http://vger.kernel.org/majordomo-info.html
>



--
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)

2011-08-18 19:31:04

by Pavel Ivanov

[permalink] [raw]
Subject: Re: [PATCH] ath9k: make driver usable standalone

> In the end, you probably want to be using wpa_supplicant instead of
> trying to configure stuff with iw directly.

I see Ubuntu already have wpa_supplicant installed and running.
Although its command line is not what suggested in documentation and I
don't see configuration file /etc/wpa_supplicant.conf. Does that mean
it works somehow differently than stated in documentation? And also
does all this mean that even if I'll be able to make wpa_supplicant
work as I need I won't be able to control wireless connection using
the standard Ubuntu's icon and it won't show me its state correctly?


Pavel


On Thu, Aug 18, 2011 at 3:20 PM, Dan Williams <[email protected]> wrote:
> On Thu, 2011-08-18 at 00:01 -0400, Pavel Ivanov wrote:
>> > Iwconfig and iwlist are themselves deprecated. Iw is the new wireless
>> > configuration tool.
>>
>> I've just tried to use iw and it didn't quite work for me. Maybe it's
>> interfering with something installed in Ubuntu by default but
>
> Ubuntu installs NetworkManager by default, so if you want to manually
> control the wifi card you'll have to tell NM to ignore the wifi device,
> or turn NM off temporarily.
>
>> connect/disconnect commands didn't seem to do anything. And why these
>> commands can be executed only as root?
>
> Because poking and configuring hardware is a privileged operation; tools
> like NetworkManager selectively poke holes through that wall and often
> require administrator passwords to do it, but at the end of the day its
> an operation that can affect security and stability, and that means it
> needs to be privileged.
>
> In the end, you probably want to be using wpa_supplicant instead of
> trying to configure stuff with iw directly.
>
> Dan
>
>> Well, maybe in Ubuntu 11.10 it will work better.
>>
>>
>> Pavel
>>
>>
>> 2011/8/17 G?bor Stefanik <[email protected]>:
>> > 2011/8/17 Pavel Ivanov <[email protected]>:
>> >>> WIRELESS_EXT is not required for configuring wireless on recent
>> >>> kernels - in fact, the WEXT API is deprecated in favor of nl80211 now.
>> >>
>> >> Since what version it's deprecated? Do user-space tools know about this new API?
>> >>
>> >> Neither iwconfig nor iwlist worked for me without WIRELESS_EXT.
>> >>
>> >>
>> >> Pavel
>> >>
>> >
>> > Iwconfig and iwlist are themselves deprecated. Iw is the new wireless
>> > configuration tool.
>> >
>> >>
>> >> 2011/8/17 G?bor Stefanik <[email protected]>:
>> >>> On Wed, Aug 17, 2011 at 5:28 AM, Pavel Ivanov <[email protected]> wrote:
>> >>>> When ath9k is the only wireless driver included in the build
>> >>>> WIRELESS_EXT configuration option becomes undefined. Because of that
>> >>>> driver becomes essentially unusable as you can't actually connect to
>> >>>> any WiFi network. By including WIRELESS_EXT into Kconfig we ensure
>> >>>> that build with ath9k and without other drivers (having WIRELESS_EXT
>> >>>> selected in their Kconfig) is actually usable.
>> >>>
>> >>> WIRELESS_EXT is not required for configuring wireless on recent
>> >>> kernels - in fact, the WEXT API is deprecated in favor of nl80211 now.
>> >>>
>> >>>>
>> >>>> Signed-off-by: Pavel Ivanov <[email protected]>
>> >>>> ---
>> >>>>
>> >>>> diff --git a/drivers/net/wireless/ath/ath9k/Kconfig
>> >>>> b/drivers/net/wireless/ath/ath9k/Kconfig
>> >>>> index d9c08c6..2573f77 100644
>> >>>> --- a/drivers/net/wireless/ath/ath9k/Kconfig
>> >>>> +++ b/drivers/net/wireless/ath/ath9k/Kconfig
>> >>>> @@ -11,6 +11,7 @@ config ATH9K
>> >>>> ? ? ? ?select LEDS_CLASS
>> >>>> ? ? ? ?select NEW_LEDS
>> >>>> ? ? ? ?select ATH9K_COMMON
>> >>>> + ? ? ? select WIRELESS_EXT
>> >>>> ? ? ? ?---help---
>> >>>> ? ? ? ? ?This module adds support for wireless adapters based on
>> >>>> ? ? ? ? ?Atheros IEEE 802.11n AR5008, AR9001 and AR9002 family
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
>> the body of a message to [email protected]
>> More majordomo info at ?http://vger.kernel.org/majordomo-info.html
>
>
>

2011-08-18 22:56:42

by Pavel Ivanov

[permalink] [raw]
Subject: Re: [PATCH] ath9k: make driver usable standalone

> Or, since I'm a NetworkManager developer, is there something that you're
> not sure how to make NM do, or are you just looking to experiment?

I want to make the wireless work when kernel is compiled without
WIRELESS_EXT. Last time I tried it Ubuntu (I guess I should say
NetworkManager) wasn't able to discover any wireless networks in our
area and wasn't able to connect to my default network. Was it supposed
to do that?


Pavel


On Thu, Aug 18, 2011 at 4:35 PM, Dan Williams <[email protected]> wrote:
> On Thu, 2011-08-18 at 15:30 -0400, Pavel Ivanov wrote:
>> > In the end, you probably want to be using wpa_supplicant instead of
>> > trying to configure stuff with iw directly.
>>
>> I see Ubuntu already have wpa_supplicant installed and running.
>> Although its command line is not what suggested in documentation and I
>> don't see configuration file /etc/wpa_supplicant.conf. Does that mean
>> it works somehow differently than stated in documentation? And also
>> does all this mean that even if I'll be able to make wpa_supplicant
>> work as I need I won't be able to control wireless connection using
>> the standard Ubuntu's icon and it won't show me its state correctly?
>
> NetworkManager is installed by default, and NM sends configuration to
> wpa_supplicant using a different control interface, not the config file.
> If you want to take the wifi interface out from NM's control, I think
> you can add the interface to /etc/network/interfaces and NM will then
> ignore it, and you can run wpa_supplicant manually with the '-i wlan0'
> option to point it to the right interface, and when you've got a config
> file, use '-c /path/to/config/file' to give it your configuration.
>
> Or, since I'm a NetworkManager developer, is there something that you're
> not sure how to make NM do, or are you just looking to experiment?
>
> Dan
>
>>
>> Pavel
>>
>>
>> On Thu, Aug 18, 2011 at 3:20 PM, Dan Williams <[email protected]> wrote:
>> > On Thu, 2011-08-18 at 00:01 -0400, Pavel Ivanov wrote:
>> >> > Iwconfig and iwlist are themselves deprecated. Iw is the new wireless
>> >> > configuration tool.
>> >>
>> >> I've just tried to use iw and it didn't quite work for me. Maybe it's
>> >> interfering with something installed in Ubuntu by default but
>> >
>> > Ubuntu installs NetworkManager by default, so if you want to manually
>> > control the wifi card you'll have to tell NM to ignore the wifi device,
>> > or turn NM off temporarily.
>> >
>> >> connect/disconnect commands didn't seem to do anything. And why these
>> >> commands can be executed only as root?
>> >
>> > Because poking and configuring hardware is a privileged operation; tools
>> > like NetworkManager selectively poke holes through that wall and often
>> > require administrator passwords to do it, but at the end of the day its
>> > an operation that can affect security and stability, and that means it
>> > needs to be privileged.
>> >
>> > In the end, you probably want to be using wpa_supplicant instead of
>> > trying to configure stuff with iw directly.
>> >
>> > Dan
>> >
>> >> Well, maybe in Ubuntu 11.10 it will work better.
>> >>
>> >>
>> >> Pavel
>> >>
>> >>
>> >> 2011/8/17 G?bor Stefanik <[email protected]>:
>> >> > 2011/8/17 Pavel Ivanov <[email protected]>:
>> >> >>> WIRELESS_EXT is not required for configuring wireless on recent
>> >> >>> kernels - in fact, the WEXT API is deprecated in favor of nl80211 now.
>> >> >>
>> >> >> Since what version it's deprecated? Do user-space tools know about this new API?
>> >> >>
>> >> >> Neither iwconfig nor iwlist worked for me without WIRELESS_EXT.
>> >> >>
>> >> >>
>> >> >> Pavel
>> >> >>
>> >> >
>> >> > Iwconfig and iwlist are themselves deprecated. Iw is the new wireless
>> >> > configuration tool.
>> >> >
>> >> >>
>> >> >> 2011/8/17 G?bor Stefanik <[email protected]>:
>> >> >>> On Wed, Aug 17, 2011 at 5:28 AM, Pavel Ivanov <[email protected]> wrote:
>> >> >>>> When ath9k is the only wireless driver included in the build
>> >> >>>> WIRELESS_EXT configuration option becomes undefined. Because of that
>> >> >>>> driver becomes essentially unusable as you can't actually connect to
>> >> >>>> any WiFi network. By including WIRELESS_EXT into Kconfig we ensure
>> >> >>>> that build with ath9k and without other drivers (having WIRELESS_EXT
>> >> >>>> selected in their Kconfig) is actually usable.
>> >> >>>
>> >> >>> WIRELESS_EXT is not required for configuring wireless on recent
>> >> >>> kernels - in fact, the WEXT API is deprecated in favor of nl80211 now.
>> >> >>>
>> >> >>>>
>> >> >>>> Signed-off-by: Pavel Ivanov <[email protected]>
>> >> >>>> ---
>> >> >>>>
>> >> >>>> diff --git a/drivers/net/wireless/ath/ath9k/Kconfig
>> >> >>>> b/drivers/net/wireless/ath/ath9k/Kconfig
>> >> >>>> index d9c08c6..2573f77 100644
>> >> >>>> --- a/drivers/net/wireless/ath/ath9k/Kconfig
>> >> >>>> +++ b/drivers/net/wireless/ath/ath9k/Kconfig
>> >> >>>> @@ -11,6 +11,7 @@ config ATH9K
>> >> >>>> ? ? ? ?select LEDS_CLASS
>> >> >>>> ? ? ? ?select NEW_LEDS
>> >> >>>> ? ? ? ?select ATH9K_COMMON
>> >> >>>> + ? ? ? select WIRELESS_EXT
>> >> >>>> ? ? ? ?---help---
>> >> >>>> ? ? ? ? ?This module adds support for wireless adapters based on
>> >> >>>> ? ? ? ? ?Atheros IEEE 802.11n AR5008, AR9001 and AR9002 family