Bug 179951 - net-wireless/ndiswrapper-1.44: Adding linux-2.6.22 compatibility
Bug#: 179951 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: CLOSED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: peper@gentoo.org Reported By: facorread@gmail.com
Component: Ebuilds
URL: 
Summary: net-wireless/ndiswrapper-1.44: Adding linux-2.6.22 compatibility
Keywords:  
Status Whiteboard: 
Opened: 2007-05-27 01:11 0000
Description:   Opened: 2007-05-27 01:11 0000
net-wireless/ndiswrapper-1.44 has been released with support for the upcoming
2.6.22 version of the Linux kernel. However, the ebuild checks for the
NET_RADIO kernel build option, which is to be replaced by WLAN_80211.

A proposed ebuild is on the way.

------- Comment #1 From Fabio Correa 2007-05-27 01:19:22 0000 -------
Created an attachment (id=120407) [details]
ndiswrapper-1.44-r1.ebuild

This ebuild checks for the kernel build option "WLAN_80211" or "NET_RADIO"
depending on whether the kernel version is 2.6.22 or not. It works with current
release candidates and will surely work with releases.

------- Comment #2 From Paul Bredbury 2007-05-27 06:41:37 0000 -------
Created an attachment (id=120416) [details]
ndiswrapper-1.45_rc3.ebuild

Tidied ebuild. Adds support for "release candidate" versions.

I use an RTL8187 with ndiswrapper & WPA. WLAN_80211 is not required.

$ grep WLAN /usr/src/linux-2.6.22-rc2-git5/.config
# CONFIG_WLAN_PRE80211 is not set
# CONFIG_WLAN_80211 is not set

$ grep WIRELESS /usr/src/linux-2.6.22-rc2-git5/.config
CONFIG_WIRELESS_EXT=y
# CONFIG_USB_SERIAL_SIERRAWIRELESS is not set

From ntoskernel.h in ndiswrapper-1.45_rc3, it looks like the 2.6.22 kernel
option needed is CONFIG_WIRELESS_EXT:

#if defined(CONFIG_NET_RADIO) && !defined(CONFIG_WIRELESS_EXT)
#define CONFIG_WIRELESS_EXT
#endif

#ifndef CONFIG_WIRELESS_EXT
#warning "wirelss devices are not supported by this kernel"
#endif

------- Comment #3 From Piotr JaroszyƄski 2007-05-28 19:45:10 0000 -------
Thanks, I have included most of the changes in 1.45.
No need to make the check for WIRELESS_EXT conditional as it has been around
for quite some time. It is the NET_RADIO that has been removed in 2.6.22.