Re: [Madwifi-devel] Madwifi-free compile error
Status: Beta
Brought to you by:
otaku
From: Louay S. <lou...@li...> - 2009-01-14 03:00:57
|
I am working on it and will post a solution soon, but I am sure it will not be clean. I look for long time on a way to do it cleanly, but my macro skills are little, and it seems impossibles to me, I even look at many other drivers in the kernel, and could not see any thing similar. I guess we have no other option than the kloji way! About the interest, I bet you we will see more people interested when they found ath5k is far from been ready,with too many missing features. Pavel Roskin wrote: > On Mon, 2009-01-12 at 12:06 -0500, Louay Sakka wrote: >> Dear All, >> >> Any one expert in Macros can help fixing this madwifi-free compile error: >> >> ERROR: "__stop_set_ah_chips" >> [drivers/net/wireless/madwifi/hal/ath_hal.ko] undefined! >> ERROR: "__start_set_ah_rfs" >> [drivers/net/wireless/madwifi/hal/ath_hal.ko] undefined! >> ERROR: "__start_set_ah_chips" >> [drivers/net/wireless/madwifi/hal/ath_hal.ko] undefined! >> ERROR: "__stop_set_ah_rfs" [drivers/net/wireless/madwifi/hal/ath_hal.ko] >> undefined! > > It's a known problem. The current version of HAL uses FreeBSD macros to > enumerate supported chips. This is done by placing dome data from > sources for those chips into a special section. FreeBSD allows modules > to find the section name and size. I'm not aware of a similar provision > in Linux. Linux uses a global linker script that provides access to > predefined sections. I don't see any way for modules to define and use > new sections is that way. > > I think it can be fixed in some hackish way. For instance, we could > predefine the two actually used sets in osdep.h and use macros to loop > through those sets. Obviously, osdep.h will need to be updated once HAL > changes to support new MAC or RF chips. But it won't happen often. > > This problem has always been in madwifi-free. However, you are are the > first person to report it. This probably means that there is very > little interest to madwifi-free, so I'm not sure if we should bother > fixing it. > -- Louay Sakka LinoWave Corp 1001-101 Champlain Av L7L5Z4 Burlington On Canada Tel: 12892880060 Fax: 12892880061 Cell:12898882248 |