Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 179951

Summary: net-wireless/ndiswrapper-1.44: Adding linux-2.6.22 compatibility
Product: Gentoo Linux Reporter: Fabio Correa <facorread>
Component: New packagesAssignee: Piotr Jaroszyński (RETIRED) <peper>
Status: VERIFIED FIXED    
Severity: enhancement CC: brebs, mobile+disabled
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ndiswrapper-1.44-r1.ebuild
ndiswrapper-1.45_rc3.ebuild

Description Fabio Correa 2007-05-27 01:11:35 UTC
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 Fabio Correa 2007-05-27 01:19:22 UTC
Created attachment 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 Paul Bredbury 2007-05-27 06:41:37 UTC
Created attachment 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 Piotr Jaroszyński (RETIRED) gentoo-dev 2007-05-28 19:45:10 UTC
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.