1. 查看无线网卡型号

    lspci |grep Network    #为BCM43142网卡

  2. 安装需要的工具/包

    yum groupinstall 'Development Tools'

    yum install kernel-abi-whitelists

    yum install kernel-devel-$(uname -r)

  3. 以普通用户运行下面命令

    mkdir -p ~/rpmbuild/{BUILD,RPMS,SPECS,SOURCES,SRPMS}

    echo -e "%_topdir $(echo $HOME)/rpmbuild\n%dist .el$(lsb_release -s -r|cut -d"." -f1).local" >> ~/.rpmmacros

  4. 下载wl-kmod*nosrc.rpm包,

    cd ~/rpmbuild/SOURCES

    wget -c http://elrepo.org/linux/elrepo/el6/SRPMS/wl-kmod-6_30_223_248-2.el6.elrepo.nosrc.rpm

  5. 下载Broadcom驱动(64位)

    wget -c http://www.broadcom.com/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-6_30_223_248.tar.gz

  6. 以普通用户运行下面命令

    rpmbuild --rebuild --target=`uname -m` --define 'packager huangyandong' ~/rpmbuild/SOURCES/wl-kmod*nosrc.rpm

  7. 以root执行下面命令

    yum remove \*ndiswrapper\*

    rpm -Uvh /home/huangyandong/rpmbuild/RPMS/kmod-wl*rpm

  8. 重启机器