All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] Use better examples for MadWifi path in defconfig, clarify comments
@ 2009-02-04  6:20 Pavel Roskin
  2009-02-04  6:20 ` [PATCH 2/2] Document CONFIG_DRIVER_NL80211 in wpa_supplicant/defconfig Pavel Roskin
  2009-02-04 19:45 ` [PATCH 1/2] Use better examples for MadWifi path in defconfig, clarify comments Jouni Malinen
  0 siblings, 2 replies; 7+ messages in thread
From: Pavel Roskin @ 2009-02-04  6:20 UTC (permalink / raw)
  To: Jouni Malinen, linux-wireless

MadWifi is unlikely to be in ../head relative to hostapd or
wpa_supplicant, as it would be inside the hostap git repository.
MadWifi sources are more likely to be in a directory called "madwifi"
and residing outside the hostap repository.  Using "madwifi" also
demonstrates that the top-level madwifi directory is needed.
---
 hostapd/defconfig        |    2 +-
 wpa_supplicant/defconfig |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/hostapd/defconfig b/hostapd/defconfig
index 2591e71..45078f2 100644
--- a/hostapd/defconfig
+++ b/hostapd/defconfig
@@ -17,7 +17,7 @@ CONFIG_DRIVER_HOSTAP=y
 
 # Driver interface for madwifi driver
 #CONFIG_DRIVER_MADWIFI=y
-#CFLAGS += -I../head # change to reflect local setup; directory for madwifi src
+#CFLAGS += -I../../madwifi # change to the madwifi source directory
 
 # Driver interface for Prism54 driver
 #CONFIG_DRIVER_PRISM54=y
diff --git a/wpa_supplicant/defconfig b/wpa_supplicant/defconfig
index 2c66f9c..7a28e6f 100644
--- a/wpa_supplicant/defconfig
+++ b/wpa_supplicant/defconfig
@@ -51,8 +51,8 @@ CONFIG_DRIVER_HOSTAP=y
 
 # Driver interface for madwifi driver
 #CONFIG_DRIVER_MADWIFI=y
-# Change include directories to match with the local setup
-#CFLAGS += -I../madwifi/wpa
+# Set include directory to the madwifi source tree
+#CFLAGS += -I../../madwifi
 
 # Driver interface for Prism54 driver
 # (Note: Prism54 is not yet supported, i.e., this will not work as-is and is

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 2/2] Document CONFIG_DRIVER_NL80211 in wpa_supplicant/defconfig
  2009-02-04  6:20 [PATCH 1/2] Use better examples for MadWifi path in defconfig, clarify comments Pavel Roskin
@ 2009-02-04  6:20 ` Pavel Roskin
  2009-02-04 10:52   ` Johannes Berg
  2009-02-04 19:50   ` Jouni Malinen
  2009-02-04 19:45 ` [PATCH 1/2] Use better examples for MadWifi path in defconfig, clarify comments Jouni Malinen
  1 sibling, 2 replies; 7+ messages in thread
From: Pavel Roskin @ 2009-02-04  6:20 UTC (permalink / raw)
  To: Jouni Malinen, linux-wireless

Put it after CONFIG_DRIVER_WEXT, as it's the new Linux wireless API.
Move comments about kernel includes next to CONFIG_DRIVER_NL80211, away
from CONFIG_CLIENT_MLME.
---
 wpa_supplicant/defconfig |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/wpa_supplicant/defconfig b/wpa_supplicant/defconfig
index 7a28e6f..b95ea50 100644
--- a/wpa_supplicant/defconfig
+++ b/wpa_supplicant/defconfig
@@ -82,6 +82,15 @@ CONFIG_DRIVER_ATMEL=y
 # Driver interface for generic Linux wireless extensions
 CONFIG_DRIVER_WEXT=y
 
+# Driver interface for Linux drivers using the nl80211 kernel interface
+#CONFIG_DRIVER_NL80211=y
+# Currently, driver_nl80211.c build requires some additional parameters to be
+# able to include some of the kernel header files. Following lines can be used
+# to set these (WIRELESS_DEV must point to the root directory of the
+# wireless-testing.git tree).
+#WIRELESS_DEV=/usr/src/wireless-testing
+#CFLAGS += -I$(WIRELESS_DEV)/net/mac80211
+
 # Driver interface for FreeBSD net80211 layer (e.g., Atheros driver)
 #CONFIG_DRIVER_BSD=y
 #CFLAGS += -I/usr/local/include
@@ -360,15 +369,8 @@ CONFIG_PEERKEY=y
 
 # Include client MLME (management frame processing).
 # This can be used to move MLME processing of Linux mac80211 stack into user
-# space.
+# space.  mac80211 may need external patches to enable userspace MLME support.
 #CONFIG_CLIENT_MLME=y
-# Currently, driver_nl80211.c build requires some additional parameters to be
-# able to include some of the kernel header files. Following lines can be used
-# to set these (WIRELESS_DEV must point to the root directory of the
-# wireless-testing.git tree). In addition, mac80211 may need external patches
-# to enable userspace MLME support.
-#WIRELESS_DEV=/usr/src/wireless-testing
-#CFLAGS += -I$(WIRELESS_DEV)/net/mac80211
 
 # IEEE Std 802.11r-2008 (Fast BSS Transition)
 #CONFIG_IEEE80211R=y

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH 2/2] Document CONFIG_DRIVER_NL80211 in wpa_supplicant/defconfig
  2009-02-04  6:20 ` [PATCH 2/2] Document CONFIG_DRIVER_NL80211 in wpa_supplicant/defconfig Pavel Roskin
@ 2009-02-04 10:52   ` Johannes Berg
  2009-02-04 14:34     ` Pavel Roskin
  2009-02-04 19:50   ` Jouni Malinen
  1 sibling, 1 reply; 7+ messages in thread
From: Johannes Berg @ 2009-02-04 10:52 UTC (permalink / raw)
  To: Pavel Roskin; +Cc: Jouni Malinen, linux-wireless

[-- Attachment #1: Type: text/plain, Size: 370 bytes --]

On Wed, 2009-02-04 at 01:20 -0500, Pavel Roskin wrote:
> Put it after CONFIG_DRIVER_WEXT, as it's the new Linux wireless API.
> Move comments about kernel includes next to CONFIG_DRIVER_NL80211, away
> from CONFIG_CLIENT_MLME.

Eh, no? The kernel includes are not required for nl80211 if everything
is set up correctly, or maybe for client mlme only?

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 2/2] Document CONFIG_DRIVER_NL80211 in wpa_supplicant/defconfig
  2009-02-04 10:52   ` Johannes Berg
@ 2009-02-04 14:34     ` Pavel Roskin
  0 siblings, 0 replies; 7+ messages in thread
From: Pavel Roskin @ 2009-02-04 14:34 UTC (permalink / raw)
  To: Johannes Berg; +Cc: Jouni Malinen, linux-wireless

Quoting Johannes Berg <johannes@sipsolutions.net>:

> On Wed, 2009-02-04 at 01:20 -0500, Pavel Roskin wrote:
>> Put it after CONFIG_DRIVER_WEXT, as it's the new Linux wireless API.
>> Move comments about kernel includes next to CONFIG_DRIVER_NL80211, away
>> from CONFIG_CLIENT_MLME.
>
> Eh, no? The kernel includes are not required for nl80211 if everything
> is set up correctly, or maybe for client mlme only?

You are right, it looks like new kernel headers are no longer needed.   
The only header from the kernel is linux/if_ether.h, but it has been  
in the kernel for a long time.

Then let's add CONFIG_DRIVER_NL80211 (maybe even enabled by default)  
and remove the comments after CONFIG_CLIENT_MLME.

-- 
Regards,
Pavel Roskin

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] Use better examples for MadWifi path in defconfig, clarify comments
  2009-02-04  6:20 [PATCH 1/2] Use better examples for MadWifi path in defconfig, clarify comments Pavel Roskin
  2009-02-04  6:20 ` [PATCH 2/2] Document CONFIG_DRIVER_NL80211 in wpa_supplicant/defconfig Pavel Roskin
@ 2009-02-04 19:45 ` Jouni Malinen
  1 sibling, 0 replies; 7+ messages in thread
From: Jouni Malinen @ 2009-02-04 19:45 UTC (permalink / raw)
  To: Pavel Roskin; +Cc: linux-wireless

On Wed, Feb 04, 2009 at 01:20:21AM -0500, Pavel Roskin wrote:
> MadWifi is unlikely to be in ../head relative to hostapd or
> wpa_supplicant, as it would be inside the hostap git repository.
> MadWifi sources are more likely to be in a directory called "madwifi"
> and residing outside the hostap repository.  Using "madwifi" also
> demonstrates that the top-level madwifi directory is needed.

>  hostapd/defconfig        |    2 +-
>  wpa_supplicant/defconfig |    4 ++--

Thanks, applied.

-- 
Jouni Malinen                                            PGP id EFC895FA

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 2/2] Document CONFIG_DRIVER_NL80211 in wpa_supplicant/defconfig
  2009-02-04  6:20 ` [PATCH 2/2] Document CONFIG_DRIVER_NL80211 in wpa_supplicant/defconfig Pavel Roskin
  2009-02-04 10:52   ` Johannes Berg
@ 2009-02-04 19:50   ` Jouni Malinen
  2009-02-04 20:59     ` Pavel Roskin
  1 sibling, 1 reply; 7+ messages in thread
From: Jouni Malinen @ 2009-02-04 19:50 UTC (permalink / raw)
  To: Pavel Roskin; +Cc: linux-wireless

On Wed, Feb 04, 2009 at 01:20:37AM -0500, Pavel Roskin wrote:
> Put it after CONFIG_DRIVER_WEXT, as it's the new Linux wireless API.
> Move comments about kernel includes next to CONFIG_DRIVER_NL80211, away
> from CONFIG_CLIENT_MLME.

Thanks. CONFIG_DRIVER_NL80211 part applied as-is; the WIRELESS_DEV
comment was removed since it does not apply anymore.
CONFIG_DRIVER_NL80211 was missing by design since the driver_nl80211.c
code was not yet complete. Anyway, it is now functional enough to be
included in wpa_supplicant defconfig. Though, I did leave it commented
out for the time being.

-- 
Jouni Malinen                                            PGP id EFC895FA

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 2/2] Document CONFIG_DRIVER_NL80211 in wpa_supplicant/defconfig
  2009-02-04 19:50   ` Jouni Malinen
@ 2009-02-04 20:59     ` Pavel Roskin
  0 siblings, 0 replies; 7+ messages in thread
From: Pavel Roskin @ 2009-02-04 20:59 UTC (permalink / raw)
  To: Jouni Malinen; +Cc: linux-wireless

On Wed, 2009-02-04 at 21:50 +0200, Jouni Malinen wrote:
> On Wed, Feb 04, 2009 at 01:20:37AM -0500, Pavel Roskin wrote:
> > Put it after CONFIG_DRIVER_WEXT, as it's the new Linux wireless API.
> > Move comments about kernel includes next to CONFIG_DRIVER_NL80211, away
> > from CONFIG_CLIENT_MLME.
> 
> Thanks. CONFIG_DRIVER_NL80211 part applied as-is; the WIRELESS_DEV
> comment was removed since it does not apply anymore.
> CONFIG_DRIVER_NL80211 was missing by design since the driver_nl80211.c
> code was not yet complete. Anyway, it is now functional enough to be
> included in wpa_supplicant defconfig. Though, I did leave it commented
> out for the time being.

Looks good to me.  Thank you!

-- 
Regards,
Pavel Roskin

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-02-04 20:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-04  6:20 [PATCH 1/2] Use better examples for MadWifi path in defconfig, clarify comments Pavel Roskin
2009-02-04  6:20 ` [PATCH 2/2] Document CONFIG_DRIVER_NL80211 in wpa_supplicant/defconfig Pavel Roskin
2009-02-04 10:52   ` Johannes Berg
2009-02-04 14:34     ` Pavel Roskin
2009-02-04 19:50   ` Jouni Malinen
2009-02-04 20:59     ` Pavel Roskin
2009-02-04 19:45 ` [PATCH 1/2] Use better examples for MadWifi path in defconfig, clarify comments Jouni Malinen

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.