找回密码

碧海潮声大学生网

查看: 1001|回复: 5
打印 上一主题 下一主题

[求助] 关于centos安装无线网卡的问题

[复制链接]
跳转到指定楼层
1#
发表于 2013-9-17 14:12 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
为了学习centos(有点自虐),安装的是minimal的,所以什么东西都没有。自己下载了DVD版,把里面的Packages都移到了笔记本里面,自己做了个yum的仓库包(不知道是不是这么叫的,就是之后安装软件的时候都可以用yum localinstall xxx来安装包了)
按照里面的提示安装了gcc kernel perl 等
我用的是笔记本去安装centos的 lspci 显示 网卡是BCM4313 自己去网上下载了个
hybrid-v35_64-nodebug-pcoem-6_30_223_141.tar 附上网址有README【http://www.broadcom.com/support/802.11/linux_sta.php】
进入到tar好后的驱动目录下,按照README指示,我先 #make clean (一切正常接下来make就提示error了,我用script把安装信息转出来,如下文所示) 我的理解是在/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.c的源文件下的第1764代码错误,参数定义少了。可是,我不知道怎么修改。。。。
script显示结果如下
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Script started on Tue 17 Sep 2013 09:44:08 PM CST
[root@vstarks hybrid_wl]# make
KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: Entering directory `/usr/src/kernels/2.6.32-358.el6.x86_64'
CFG80211 API is prefered for this kernel version
Using CFG80211 API
  CC [M]  /home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.o
/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.c:79: warning: ‘enum tx_power_setting’ declared inside parameter list
/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.c:79: warning: its scope is only this definition or declaration, which is probably not what you want
/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.c:1092: warning: ‘enum tx_power_setting’ declared inside parameter list
/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.c:1092: error: parameter 2 (‘type’) has incomplete type
/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.c: In function ‘wl_cfg80211_set_tx_power’:
/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.c:1103: error: ‘TX_POWER_AUTOMATIC’ undeclared (first use in this function)
/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.c:1103: error: (Each undeclared identifier is reported only once
/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.c:1103: error: for each function it appears in.)
/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.c:1105: error: ‘TX_POWER_LIMITED’ undeclared (first use in this function)
/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.c:1111: error: ‘TX_POWER_FIXED’ undeclared (first use in this function)
/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.c: At top level:
/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.c:1594: warning: initialization from incompatible pointer type
/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.c:1596: warning: initialization from incompatible pointer type
/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.c:1597: warning: initialization from incompatible pointer type
/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.c:1598: warning: initialization from incompatible pointer type
/home/hybrid_wl/srtc/wl/sys/wl_cfg80211_hybrid.c:1599: warning: initialization from incompatible pointer type
/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.c: In function ‘wl_inform_single_bss’:
/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.c:1764: error: too few arguments to function ‘ieee80211_channel_to_frequency’
/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.c: In function ‘wl_bss_roaming_done’:
/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.c:2090: warning: passing argument 2 of ‘cfg80211_roamed’ from incompatible pointer type
include/net/cfg80211.h:3124: note: expected ‘struct ieee80211_channel *’ but argument is of type ‘u8 *’
/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.c:2090: warning: passing argument 4 of ‘cfg80211_roamed’ makes pointer from integer without a cast
include/net/cfg80211.h:3124: note: expected ‘const u8 *’ but argument is of type ‘s32’
/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.c:2090: warning: passing argument 5 of ‘cfg80211_roamed’ makes integer from pointer without a cast
include/net/cfg80211.h:3124: note: expected ‘size_t’ but argument is of type ‘u8 *’
/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.c:2090: warning: passing argument 6 of ‘cfg80211_roamed’ makes pointer from integer without a cast
include/net/cfg80211.h:3124: note: expected ‘const u8 *’ but argument is of type ‘s32’
/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.c:2090: error: too few arguments to function ‘cfg80211_roamed’
/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.c: In function ‘wl_bss_connect_done’:
/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.c:2122: warning: passing argument 2 of ‘cfg80211_roamed’ from incompatible pointer type
include/net/cfg80211.h:3124: note: expected ‘struct ieee80211_channel *’ but argument is of type ‘u8 *’
/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.c:2122: warning: passing argument 4 of ‘cfg80211_roamed’ makes pointer from integer without a cast
include/net/cfg80211.h:3124: note: expected ‘const u8 *’ but argument is of type ‘s32’
/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.c:2122: warning: passing argument 5 of ‘cfg80211_roamed’ makes integer from pointer without a cast
include/net/cfg80211.h:3124: note: expected ‘size_t’ but argument is of type ‘u8 *’
/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.c:2122: warning: passing argument 6 of ‘cfg80211_roamed’ makes pointer from integer without a cast
include/net/cfg80211.h:3124: note: expected ‘const u8 *’ but argument is of type ‘s32’
/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.c:2122: error: too few arguments to function ‘cfg80211_roamed’
make[2]: *** [/home/hybrid_wl/src/wl/sys/wl_cfg80211_hybrid.o] Error 1
make[1]: *** [_module_/home/hybrid_wl] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.32-358.el6.x86_64'
make: *** [all] Error 2
[root@vstarks hybrid_wl]# exit
exit

Script done on Tue 17 Sep 2013 09:44:21 PM CST
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
为了折腾这无线网卡,纠结了一个多星期了。应为是学校(闪讯那可恶的软件我不会有线分网,只会无线分网),只能让centos使用无线环境。
希望有会的人可以在下面回我或者加我QQ 648594335 Tel:18058043106
我是在长峙岛学校的(能面对面的讲解那就太好了)【本人男,想泡妹的别想了!!!】

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享分享 顶 踩
2#
发表于 2013-9-17 14:16 | 只看该作者
技术男。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
回复 支持 反对

使用道具 举报

3#
发表于 2013-9-17 15:06 | 只看该作者
看不懂的说
回复 支持 反对

使用道具 举报

4#
 楼主| 发表于 2013-9-17 20:06 | 只看该作者
自己顶一下,不要沉啊。。。。。
回复 支持 反对

使用道具 举报

5#
发表于 2013-9-19 13:27 | 只看该作者
表示看不懂,这么多东西
回复 支持 反对

使用道具 举报

6#
 楼主| 发表于 2013-9-20 15:57 | 只看该作者
呵呵,终于解决了。
问题分析:
读驱动代码,驱动中对linux内核版本的各种
条件编译导致数据结构和函数声明不一致,编译失败。
解决办法:
驱动代码去掉了部分条件编译,解决了编译问题。安装过程不变.
而且终于在字符界面连接上了网络,学习了很多新的命令。哈哈!!!!
以后谁想学习centos可以来找我哦(我大三了,长峙岛)
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋| 碧海潮声大学生网  

Copyright © 2001-2013 Comsenz Inc.   All Rights Reserved.

Powered by Discuz! X3.2( 浙ICP备11026473号 )

快速回复 返回顶部 返回列表