[SM-Discuss] mac80211 compile error

Craig Dyke grail69 at amnet.net.au
Wed Feb 20 12:21:45 EST 2008


Hi All

I have been working to get my wireless connection working on my laptop.

After some searching, both on our site and Google, I have found that the 
iwlwifi spell is the
way I should proceed to support my ipw3945 card.

My issue is with the dependance on the mac80211 spell asthis will not 
compile for me.

My problem seems to come in after the patches have been applied to the 
kernel files,
specifically (at this point as it is as far as i have gotten) the 
ieee80211.c file which is patched by
this spell.

Just wanted to know if anyone else has come across this issue as 
searching on Google yielded
no results.

I have attached the compile log for mac80211 but have the error listed 
below:

In file included from net/mac80211/ieee80211.c:30:
net/mac80211/ieee80211_i.h:39:1: warning: "BIT" redefined
In file included from include/linux/kernel.h:15,
                 from include/net/mac80211.h:14,
                 from net/mac80211/ieee80211.c:11:
include/linux/bitops.h:6:1: warning: this is the location of the 
previous definition
net/mac80211/ieee80211.c: In function 'ieee80211_tx_prepare':
net/mac80211/ieee80211.c:1376: warning: passing argument 1 of 
'dev_get_by_index' makes pointer from integer without a cast
net/mac80211/ieee80211.c:1376: error: too few arguments to function 
'dev_get_by_index'
net/mac80211/ieee80211.c: In function 'ieee80211_master_start_xmit':
net/mac80211/ieee80211.c:1657: warning: passing argument 1 of 
'dev_get_by_index' makes pointer from integer without a cast
net/mac80211/ieee80211.c:1657: error: too few arguments to function 
'dev_get_by_index'
net/mac80211/ieee80211.c: In function 'ieee80211_beacon_get':
net/mac80211/ieee80211.c:2089: warning: passing argument 1 of 
'dev_get_by_index' makes pointer from integer without a cast
net/mac80211/ieee80211.c:2089: error: too few arguments to function 
'dev_get_by_index'
net/mac80211/ieee80211.c: In function 'ieee80211_get_buffered_bc':
net/mac80211/ieee80211.c:2256: warning: passing argument 1 of 
'dev_get_by_index' makes pointer from integer without a cast
net/mac80211/ieee80211.c:2256: error: too few arguments to function 
'dev_get_by_index'
net/mac80211/ieee80211.c: In function 'ieee80211_if_mgmt_setup':
net/mac80211/ieee80211.c:5185: error: 'struct net_device' has no member 
named 'hard_header_parse'
net/mac80211/ieee80211.c: In function 'ieee80211_alloc_hw':
net/mac80211/ieee80211.c:5325: error: 'struct net_device' has no member 
named 'hard_header_parse'
make[2]: *** [net/mac80211/ieee80211.o] Error 1
make[1]: *** [net/mac80211] Error 2
 ! Problem Detected ! 
make: *** [net] Error 2

Now the reference to 'too few arguments' comes about as dev_get_by_index 
is defined as taking two arguments,
a pointer to a struct and an integer. Only the integer is being supplied 
in the code

I am using the test grimoire which is using 10.0.3 version mac80211 but 
I have also downloaded the latest version,
being 10.0.4, but this fails with the same issues.

Any help would be appreciated.
Please let me know if there is more information required?

Craig
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mac80211-10.0.3.bz2
Type: application/octet-stream
Size: 17962 bytes
Desc: not available
Url : http://lists.ibiblio.org/pipermail/sm-discuss/attachments/20080221/c4ee909c/attachment.obj 
-------------- next part --------------
No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.20.8/1288 - Release Date: 19/02/2008 8:47 PM


More information about the SM-Discuss mailing list