linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/14] RFC: Driver for Wireless RNDIS USB devices.
@ 2008-01-20  0:13 Jussi Kivilinna
  2008-01-23 13:21 ` Jussi Kivilinna
  2008-01-25  1:19 ` David Brownell
  0 siblings, 2 replies; 9+ messages in thread
From: Jussi Kivilinna @ 2008-01-20  0:13 UTC (permalink / raw)
  To: linux-wireless; +Cc: bjd, dbrownell, netdev

Hello,

This is second try on wireless RNDIS patchset started by Bjorge Dijkstra. Since
Bjorge has disappeared, I claim maintainership of rndis_wext and this patchset
until he returns.

This patchset adds support for various 802.11 USB devices based on Broadcom
4320 chip. Chip uses RNDIS to communicate with the host, so module depend
heavily on rndis_host/cdc_ether/usbnet and needs some changes on these 
modules in order to work.

Patches 1-6 are from first patchset:
 1. Fix sparse warning: returning void valued expression
 2. [cdc_ether] Hardwire CDC descriptors when missing
 3. [rndis_host] Use 1KB buffer in rndis_unbind
 4. [rndis_host] Halt device if rndis_bind fails
 5. [rndis_host] Fix rndis packet filter flags
 6. [usbnet] Use wlan device name for RNDIS wireless devices

Of these 1, 3 and 4 are not required for this version of rndis_wext to work.

Actual wireless part is changed from extension on rndis_host to separate 
driver. Different devices are detected by device specific USB vendor/product 
IDs as the way done with Windows drivers instead of detecting RNDIS media type 
like in first patchset.

New patches 7-14:
 7. [rndis_host] Split up rndis_host.c
 8. [rndis_host] export functions
 9. [usbnet] add driver_priv pointer to 'struct usbnet'
10. [rndis_host] Add rndis_early_init function pointer to 'struct rndis_data'.
11. [rndis_host] Add rndis_link_change function pointer to 'struct rndis_data'.
12. Move usbnet.h and rndis_host.h to include/linux/usb
13. [rndis_host] blacklist known wireless RNDIS devices
14. Add new driver 'rndis_wext' for wireless RNDIS devices.

Patches should be applied in order, series apply cleanly to 2.6.24-rc8.

 - Jussi Kivilinna


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

* Re: [PATCH 00/14] RFC: Driver for Wireless RNDIS USB devices.
  2008-01-20  0:13 [PATCH 00/14] RFC: Driver for Wireless RNDIS USB devices Jussi Kivilinna
@ 2008-01-23 13:21 ` Jussi Kivilinna
  2008-01-23 14:52   ` John W. Linville
  2008-01-25  1:19 ` David Brownell
  1 sibling, 1 reply; 9+ messages in thread
From: Jussi Kivilinna @ 2008-01-23 13:21 UTC (permalink / raw)
  To: linux-wireless

Hi,

Any change of getting driver merged in 2.6.25?

 - Jussi

On Sun, 2008-01-20 at 02:13 +0200, Jussi Kivilinna wrote:
> Hello,
> 
> This is second try on wireless RNDIS patchset started by Bjorge Dijkstra. Since
> Bjorge has disappeared, I claim maintainership of rndis_wext and this patchset
> until he returns.
> 
> This patchset adds support for various 802.11 USB devices based on Broadcom
> 4320 chip. Chip uses RNDIS to communicate with the host, so module depend
> heavily on rndis_host/cdc_ether/usbnet and needs some changes on these 
> modules in order to work.
> 
> Patches 1-6 are from first patchset:
>  1. Fix sparse warning: returning void valued expression
>  2. [cdc_ether] Hardwire CDC descriptors when missing
>  3. [rndis_host] Use 1KB buffer in rndis_unbind
>  4. [rndis_host] Halt device if rndis_bind fails
>  5. [rndis_host] Fix rndis packet filter flags
>  6. [usbnet] Use wlan device name for RNDIS wireless devices
> 
> Of these 1, 3 and 4 are not required for this version of rndis_wext to work.
> 
> Actual wireless part is changed from extension on rndis_host to separate 
> driver. Different devices are detected by device specific USB vendor/product 
> IDs as the way done with Windows drivers instead of detecting RNDIS media type 
> like in first patchset.
> 
> New patches 7-14:
>  7. [rndis_host] Split up rndis_host.c
>  8. [rndis_host] export functions
>  9. [usbnet] add driver_priv pointer to 'struct usbnet'
> 10. [rndis_host] Add rndis_early_init function pointer to 'struct rndis_data'.
> 11. [rndis_host] Add rndis_link_change function pointer to 'struct rndis_data'.
> 12. Move usbnet.h and rndis_host.h to include/linux/usb
> 13. [rndis_host] blacklist known wireless RNDIS devices
> 14. Add new driver 'rndis_wext' for wireless RNDIS devices.
> 
> Patches should be applied in order, series apply cleanly to 2.6.24-rc8.
> 
>  - Jussi Kivilinna
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


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

* Re: [PATCH 00/14] RFC: Driver for Wireless RNDIS USB devices.
  2008-01-23 13:21 ` Jussi Kivilinna
@ 2008-01-23 14:52   ` John W. Linville
  2008-01-23 17:44     ` Jussi Kivilinna
  0 siblings, 1 reply; 9+ messages in thread
From: John W. Linville @ 2008-01-23 14:52 UTC (permalink / raw)
  To: Jussi Kivilinna; +Cc: linux-wireless

On Wed, Jan 23, 2008 at 03:21:15PM +0200, Jussi Kivilinna wrote:
> On Sun, 2008-01-20 at 02:13 +0200, Jussi Kivilinna wrote:
> > Hello,
> > 
> > This is second try on wireless RNDIS patchset started by Bjorge Dijkstra. Since
> > Bjorge has disappeared, I claim maintainership of rndis_wext and this patchset
> > until he returns.
> > 
> > This patchset adds support for various 802.11 USB devices based on Broadcom
> > 4320 chip. Chip uses RNDIS to communicate with the host, so module depend
> > heavily on rndis_host/cdc_ether/usbnet and needs some changes on these 
> > modules in order to work.

> Any change of getting driver merged in 2.6.25?

I would like to have this driver soon, and FWIW I just put it in the
Fedora Rawhide kernel last night.

However, I find that it does not seem to associate with WEP networks
on my USR5421.  I haven't had a chance to try it on open or WPA
networks, nor have I had a chance to debug it.  It does scan and see
the networks.

Have you tested the driver as posted?  What device(s) are you using?
Have you used it on encrypted networks?

Thanks,

John
-- 
John W. Linville
linville@tuxdriver.com

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

* Re: [PATCH 00/14] RFC: Driver for Wireless RNDIS USB devices.
  2008-01-23 14:52   ` John W. Linville
@ 2008-01-23 17:44     ` Jussi Kivilinna
  2008-01-24 18:53       ` John W. Linville
  0 siblings, 1 reply; 9+ messages in thread
From: Jussi Kivilinna @ 2008-01-23 17:44 UTC (permalink / raw)
  To: linux-wireless

On Wed, 2008-01-23 at 09:52 -0500, John W. Linville wrote:
> I would like to have this driver soon, and FWIW I just put it in the
> Fedora Rawhide kernel last night.
> 
> However, I find that it does not seem to associate with WEP networks
> on my USR5421.  I haven't had a chance to try it on open or WPA
> networks, nor have I had a chance to debug it.  It does scan and see
> the networks.
> 
> Have you tested the driver as posted?  What device(s) are you using?
> Have you used it on encrypted networks?

I guess I should start testing more if I'm going to be maintainer,
you're right WEP doesn't work. Unencrypted and WPA/WPA2 networks do work
for me but not WEP. Ad-Hoc and hidden WPA networks do not work either. I
have Buffalo WLI-U2-KG125S which should have same hardware/firmware as
USR5421.

 - Jussi


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

* Re: [PATCH 00/14] RFC: Driver for Wireless RNDIS USB devices.
  2008-01-23 17:44     ` Jussi Kivilinna
@ 2008-01-24 18:53       ` John W. Linville
  2008-01-25 13:25         ` Jussi Kivilinna
  0 siblings, 1 reply; 9+ messages in thread
From: John W. Linville @ 2008-01-24 18:53 UTC (permalink / raw)
  To: Jussi Kivilinna; +Cc: linux-wireless

On Wed, Jan 23, 2008 at 07:44:46PM +0200, Jussi Kivilinna wrote:
> On Wed, 2008-01-23 at 09:52 -0500, John W. Linville wrote:
> > I would like to have this driver soon, and FWIW I just put it in the
> > Fedora Rawhide kernel last night.
> > 
> > However, I find that it does not seem to associate with WEP networks
> > on my USR5421.  I haven't had a chance to try it on open or WPA
> > networks, nor have I had a chance to debug it.  It does scan and see
> > the networks.
> > 
> > Have you tested the driver as posted?  What device(s) are you using?
> > Have you used it on encrypted networks?
> 
> I guess I should start testing more if I'm going to be maintainer,
> you're right WEP doesn't work. Unencrypted and WPA/WPA2 networks do work
> for me but not WEP. Ad-Hoc and hidden WPA networks do not work either. I
> have Buffalo WLI-U2-KG125S which should have same hardware/firmware as
> USR5421.

Overall this looks fine to me for initial merge.  I have a couple
of comments:

	-- I'm not too excited about the "Ndis_802_*" naming scheme for
	data structures, although I know you copied it from elsewhere.
	I'd like to see it changed, but I don't consider that a
	merge blocker.

	-- I foresee this driver surviving a conversion to use the
	new cfg80211 configuraiton API.  So the "rndis_wext" name may
	not be the best long-term choice.  I might suggest something
	like "rndis_wlan".  I don't see why we couldn't change that
	post-merge, although I would prefer to do that before the
	final 2.6.25 release.

So, I intend to push this upstream for 2.6.25.  Please consider making
the changes cited above, especially the name change.

Thanks,

John
-- 
John W. Linville
linville@tuxdriver.com

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

* Re: [PATCH 00/14] RFC: Driver for Wireless RNDIS USB devices.
  2008-01-20  0:13 [PATCH 00/14] RFC: Driver for Wireless RNDIS USB devices Jussi Kivilinna
  2008-01-23 13:21 ` Jussi Kivilinna
@ 2008-01-25  1:19 ` David Brownell
  2008-01-25 13:20   ` Jussi Kivilinna
  1 sibling, 1 reply; 9+ messages in thread
From: David Brownell @ 2008-01-25  1:19 UTC (permalink / raw)
  To: Jussi Kivilinna; +Cc: linux-wireless, bjd, netdev

On Saturday 19 January 2008, Jussi Kivilinna wrote:
> Hello,
> 
> This is second try on wireless RNDIS patchset started by Bjorge Dijkstra. Since
> Bjorge has disappeared, I claim maintainership of rndis_wext and this patchset
> until he returns.
> 
> This patchset adds support for various 802.11 USB devices based on Broadcom
> 4320 chip. Chip uses RNDIS to communicate with the host, so module depend
> heavily on rndis_host/cdc_ether/usbnet and needs some changes on these 
> modules in order to work.
> 
> Patches 1-6 are from first patchset:
>  1. Fix sparse warning: returning void valued expression
>  2. [cdc_ether] Hardwire CDC descriptors when missing
>  3. [rndis_host] Use 1KB buffer in rndis_unbind
>  4. [rndis_host] Halt device if rndis_bind fails
>  5. [rndis_host] Fix rndis packet filter flags
>  6. [usbnet] Use wlan device name for RNDIS wireless devices
> 
> Of these 1, 3 and 4 are not required for this version of rndis_wext to work.
> 
> Actual wireless part is changed from extension on rndis_host to separate 
> driver. Different devices are detected by device specific USB vendor/product 
> IDs as the way done with Windows drivers instead of detecting RNDIS media type 
> like in first patchset.
> 
> New patches 7-14:
>  7. [rndis_host] Split up rndis_host.c
>  8. [rndis_host] export functions
>  9. [usbnet] add driver_priv pointer to 'struct usbnet'

So far as I'm concerned patches 1-9 can go in any time.

The other patches I won't ack yet; see below.


> 10. [rndis_host] Add rndis_early_init function pointer to 'struct rndis_data'.
> 11. [rndis_host] Add rndis_link_change function pointer to 'struct rndis_data'.

Those aren't added to "struct rndis_data" ... they're added to
the struct at the core of the usbnet framework.  So they should
not be RNDIS-specific ... even though the only current user will
be the RNDIS host code.  Rename those methods and I'll be happy.


> 12. Move usbnet.h and rndis_host.h to include/linux/usb

No problem with that, except that fixing #10 and #11 will
break them.


> 13. [rndis_host] blacklist known wireless RNDIS devices

That will be a headache over time though ... can't you just
let the probe succeed enough to recogize it's wireless (using
the media flag) and then bail, so the next driver can try?


> 14. Add new driver 'rndis_wext' for wireless RNDIS devices.

The real goods!  :)

 
> Patches should be applied in order, series apply cleanly to 2.6.24-rc8.
> 
>  - Jussi Kivilinna
> 



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

* Re: [PATCH 00/14] RFC: Driver for Wireless RNDIS USB devices.
  2008-01-25  1:19 ` David Brownell
@ 2008-01-25 13:20   ` Jussi Kivilinna
  2008-01-25 20:08     ` David Brownell
  0 siblings, 1 reply; 9+ messages in thread
From: Jussi Kivilinna @ 2008-01-25 13:20 UTC (permalink / raw)
  To: David Brownell; +Cc: linux-wireless, bjd, netdev

On Thu, 2008-01-24 at 17:19 -0800, David Brownell wrote:
> > 13. [rndis_host] blacklist known wireless RNDIS devices
> 
> That will be a headache over time though ... can't you just
> let the probe succeed enough to recogize it's wireless (using
> the media flag) and then bail, so the next driver can try?

Sure, that works too (but causes a little bit more message flood).



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

* Re: [PATCH 00/14] RFC: Driver for Wireless RNDIS USB devices.
  2008-01-24 18:53       ` John W. Linville
@ 2008-01-25 13:25         ` Jussi Kivilinna
  0 siblings, 0 replies; 9+ messages in thread
From: Jussi Kivilinna @ 2008-01-25 13:25 UTC (permalink / raw)
  To: John W. Linville; +Cc: linux-wireless

On Thu, 2008-01-24 at 13:53 -0500, John W. Linville wrote:
> Overall this looks fine to me for initial merge.  I have a couple
> of comments:
> 
> 	-- I'm not too excited about the "Ndis_802_*" naming scheme for
> 	data structures, although I know you copied it from elsewhere.
> 	I'd like to see it changed, but I don't consider that a
> 	merge blocker.
To be honest I'm not either, but I'll prioritise this for later.

> 	-- I foresee this driver surviving a conversion to use the
> 	new cfg80211 configuraiton API.  So the "rndis_wext" name may
> 	not be the best long-term choice.  I might suggest something
> 	like "rndis_wlan".  I don't see why we couldn't change that
> 	post-merge, although I would prefer to do that before the
> 	final 2.6.25 release.
Sure.

> So, I intend to push this upstream for 2.6.25.  Please consider making
> the changes cited above, especially the name change.
Ok, I'll make new patchset with name change and changes David Brownell
wants on usbnet patches.

 - Jussi



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

* Re: [PATCH 00/14] RFC: Driver for Wireless RNDIS USB devices.
  2008-01-25 13:20   ` Jussi Kivilinna
@ 2008-01-25 20:08     ` David Brownell
  0 siblings, 0 replies; 9+ messages in thread
From: David Brownell @ 2008-01-25 20:08 UTC (permalink / raw)
  To: Jussi Kivilinna; +Cc: linux-wireless, bjd, netdev

On Friday 25 January 2008, Jussi Kivilinna wrote:
> On Thu, 2008-01-24 at 17:19 -0800, David Brownell wrote:
> > > 13. [rndis_host] blacklist known wireless RNDIS devices
> > 
> > That will be a headache over time though ... can't you just
> > let the probe succeed enough to recogize it's wireless (using
> > the media flag) and then bail, so the next driver can try?
> 
> Sure, that works too (but causes a little bit more message flood).

Excess messages can be dealt with, or at worst, ignored.

Thanks.


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

end of thread, other threads:[~2008-01-25 20:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-20  0:13 [PATCH 00/14] RFC: Driver for Wireless RNDIS USB devices Jussi Kivilinna
2008-01-23 13:21 ` Jussi Kivilinna
2008-01-23 14:52   ` John W. Linville
2008-01-23 17:44     ` Jussi Kivilinna
2008-01-24 18:53       ` John W. Linville
2008-01-25 13:25         ` Jussi Kivilinna
2008-01-25  1:19 ` David Brownell
2008-01-25 13:20   ` Jussi Kivilinna
2008-01-25 20:08     ` David Brownell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).