Skip to contentSkip to conversation

gelic wireless driver needs MAC80211 support

PATCH In review Sebastian Siewior 5 participants 14 messages Feb 23, 2008 – Feb 25, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gelic wireless driver needs MAC80211 support

so select it.

---
 drivers/net/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/Kconfig +1 -0
index f337800..a116056 100644
@@ -2363,6 +2363,7 @@ config GELIC_NET
 config GELIC_WIRELESS
        bool "PS3 Wireless support"
        depends on GELIC_NET
+       select MAC80211
        help
         This option adds the support for the wireless feature of PS3.
         If you have the wireless-less model of PS3 or have no plan to
Signature · 1 line
1.5.3.8
#1 lore raw
Quoted 11 lines · Sebastian Siewior

so select it.

---
 drivers/net/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/Kconfig +0 -0
index f337800..a116056 100644

drivers/net/Kconfig config GELIC_NET · line 2369

Quoted 7 lines
drivers/net/Kconfig +1 -0
@@ -2363,6 +2363,7 @@ config GELIC_NET
 config GELIC_WIRELESS
        bool "PS3 Wireless support"
        depends on GELIC_NET
+       select MAC80211
        help
         This option adds the support for the wireless feature of PS3.
         If you have the wireless-less model of PS3 or have no plan to

Is there any particular reason why this driver is in drivers/net instead of drivers/net/wireless (along with all other wireless drivers?

Additionally, all other mac80211 drivers depend on mac80211 instead of selecting it. So I think for consistency it might be better to also make this driver depend on it, rather then selecting.

Ivo

#2 lore raw
Quoted 23 lines · Ivo van Doorn
Quoted 11 lines · Sebastian Siewior

so select it.

---
 drivers/net/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/Kconfig +0 -0
index f337800..a116056 100644

drivers/net/Kconfig config GELIC_NET · line 2369

Quoted 7 lines
drivers/net/Kconfig +1 -0
@@ -2363,6 +2363,7 @@ config GELIC_NET
 config GELIC_WIRELESS
        bool "PS3 Wireless support"
        depends on GELIC_NET
+       select MAC80211
        help
         This option adds the support for the wireless feature of PS3.
         If you have the wireless-less model of PS3 or have no plan to

Is there any particular reason why this driver is in drivers/net instead of drivers/net/wireless (along with all other wireless drivers?

Quoted 3 lines

Additionally, all other mac80211 drivers depend on mac80211 instead of selecting it. So I think for consistency it might be better to also make this driver depend on it, rather then selecting.

Additionally, what part of the driver actually uses mac80211? I just browsed to the code, and it seems to work completely without using mac80211. Instead it seems to work directly by registering a net_device structure...

Ivo

#3 lore raw
Quoted 4 lines · * Ivo van Doorn | 2008-02-23 20:50:34 [+0100]:

Additionally, what part of the driver actually uses mac80211? I just browsed to the code, and it seems to work completely without using mac80211. Instead it seems to work directly by registering a net_device structure...

CC drivers/net/ps3_gelic_wireless.o
/home/bigeasy/git/linux-2.6/drivers/net/ps3_gelic_wireless.c: In function 'gelic_wl_setup_netdev_ops':
/home/bigeasy/git/linux-2.6/drivers/net/ps3_gelic_wireless.c:2660: error: 'struct net_device' has no member named 'wireless_data' /home/bigeasy/git/linux-2.6/drivers/net/ps3_gelic_wireless.c:2661: error: 'struct net_device' has no member named 'wireless_handlers' make[3]: *** [drivers/net/ps3_gelic_wireless.o] Error 1
make[2]: *** [drivers/net] Error 2
make[1]: *** [drivers] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [sub-make] Error 2

I add this to the patch desctiption and post a depends on patach

Quoted 1 line

Ivo

Sebastian

#4 lore raw
Quoted 1 line · * Sebastian Siewior | 2008-02-23 21:06:37 [+0100]:

I add this to the patch desctiption and post a depends on patach

ARGH, this was CONFIG_WIRELESS_EXT and not MAC80211. You would like to see a select or depend statement on that one?

Quoted 2 lines
Quoted 1 line

Ivo

Sebastian

#5 lore raw
Quoted 5 lines · Sebastian Siewior
Quoted 1 line · * Sebastian Siewior | 2008-02-23 21:06:37 [+0100]:

I add this to the patch desctiption and post a depends on patach

ARGH, this was CONFIG_WIRELESS_EXT and not MAC80211. You would like to see a select or depend statement on that one?

Other drivers do a select on WIRELESS_EXT, so selecting it would be fine.

Ivo

#6 lore raw
In reply to Sebastian Siewior
Quoted 17 lines · Sebastian Siewior
Quoted 4 lines · * Ivo van Doorn | 2008-02-23 20:50:34 [+0100]:

Additionally, what part of the driver actually uses mac80211? I just browsed to the code, and it seems to work completely without using mac80211. Instead it seems to work directly by registering a net_device structure...

CC drivers/net/ps3_gelic_wireless.o
/home/bigeasy/git/linux-2.6/drivers/net/ps3_gelic_wireless.c: In function 'gelic_wl_setup_netdev_ops':
/home/bigeasy/git/linux-2.6/drivers/net/ps3_gelic_wireless.c:2660: error: 'struct net_device' has no member named 'wireless_data' /home/bigeasy/git/linux-2.6/drivers/net/ps3_gelic_wireless.c:2661: error: 'struct net_device' has no member named 'wireless_handlers' make[3]: *** [drivers/net/ps3_gelic_wireless.o] Error 1
make[2]: *** [drivers/net] Error 2
make[1]: *** [drivers] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [sub-make] Error 2

Quoted 1 line

I add this to the patch desctiption and post a depends on patach

Looking at include/linux/netdevice.h:

#ifdef CONFIG_WIRELESS_EXT
	/* List of functions to handle Wireless Extensions (instead of ioctl).
	 * See <net/iw_handler.h> for details. Jean II */
	const struct iw_handler_def *	wireless_handlers;
	/* Instance data managed by the core of Wireless Extensions. */
	struct iw_public_data *	wireless_data;

#endif

There is no dependency on mac80211 but on WIRELESS_EXT.
That is a config option most other drivers select, so you best change your patch to
select WIRELESS_EXT
instead of MAC80211.

Ivo

#7 lore raw
In reply to Ivo van Doorn
Quoted 2 lines · * Ivo van Doorn | 2008-02-23 20:44:59 [+0100]:

Is there any particular reason why this driver is in drivers/net instead of drivers/net/wireless (along with all other wireless drivers?

My understanding is/was that the wireless device and the eth device are exposed by the hypervisor to the system and they share ressources.

Sebastian

#8 lore raw
Quoted 7 lines · Sebastian Siewior
Quoted 2 lines · * Ivo van Doorn | 2008-02-23 20:44:59 [+0100]:

Is there any particular reason why this driver is in drivers/net instead of drivers/net/wireless (along with all other wireless drivers?

My understanding is/was that the wireless device and the eth device are exposed by the hypervisor to the system and they share ressources.

Ah ok, makes sense. :)

Thanks.

Ivo

#9 lore raw
In reply to Sebastian Siewior
Quoted 11 lines · Sebastian Siewior

so select it.

---
 drivers/net/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/Kconfig +0 -0
index f337800..a116056 100644

drivers/net/Kconfig config GELIC_NET · line 2366

Quoted 4 lines
drivers/net/Kconfig +1 -0
@@ -2363,6 +2363,7 @@ config GELIC_NET
 config GELIC_WIRELESS
        bool "PS3 Wireless support"
        depends on GELIC_NET
+       select MAC80211

Given that this is straying clearly into wireless territory, I think the linux-wireless folks and John Linville (wireless maintainer) are appropriate patch targets.

Jeff

#10 lore raw
Quoted 3 lines · * Jeff Garzik | 2008-02-23 15:26:07 [-0500]:

Given that this is straying clearly into wireless territory, I think the linux-wireless folks and John Linville (wireless maintainer) are appropriate patch targets.

Okey, I'm going to forward the pach.

Quoted 1 line

Jeff

Sebastian

#11 lore raw
In reply to Jeff Garzik
Quoted 7 lines · Jeff Garzik
Quoted 6 lines · Sebastian Siewior

so select it.

---
 drivers/net/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Quoted 9 lines

drivers/net/Kconfig config GELIC_NET · line 2366

Quoted 9 lines
drivers/net/Kconfig +1 -0
index f337800..a116056 100644
@@ -2363,6 +2363,7 @@ config GELIC_NET
 config GELIC_WIRELESS
        bool "PS3 Wireless support"
        depends on GELIC_NET
+       select MAC80211

That seems completely wrong since it's a full-mac "chip" (implemented in the HV or so maybe). What exactly does it need from mac80211?

johannes

#12 lore raw
Quoted 2 lines · * Johannes Berg | 2008-02-25 11:13:56 [+0100]:

That seems completely wrong since it's a full-mac "chip" (implemented in the HV or so maybe). What exactly does it need from mac80211?

Nothing, please drop. I've sent another patch which enables WEXT what is the correct thing to do. Sorry for the noise.

Quoted 1 line

johannes

Sebastian

#13 lore raw
Quoted 6 lines · Sebastian Siewior
Quoted 2 lines · * Johannes Berg | 2008-02-25 11:13:56 [+0100]:

That seems completely wrong since it's a full-mac "chip" (implemented in the HV or so maybe). What exactly does it need from mac80211?

Nothing, please drop. I've sent another patch which enables WEXT what is the correct thing to do. Sorry for the noise.

No problem. I saw it later on netdev but had read linux-wireless first :)

johannes