免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1653 | 回复: 2
打印 上一主题 下一主题

linux无线上网 下了diff不知道怎么打补丁 谢谢大家。在线等 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-07-16 20:40 |只看该作者 |倒序浏览
HP笔记本操作系统redhat 5 .3 无线上网。输入iwconfig命令提示
Warning: Driver for device wlan0 recommend version 21 of Wireless Extension,
but has been compiled with version 20, therefore some driver features
may not be available...
    在网上找到相应的补丁iw267_we21-5.diff  寻找打补丁方法。patch -p1 <iw267_we21-5.diff
提示[root@Aaron Desktop]# patch -p1 < iw267_we21-5.diff
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u -p linux/include/linux/wireless.20.h linux/include/linux/wireless.h
|--- linux/include/linux/wireless.20.h  2006-04-03 16:32:34.000000000 -0700
|+++ linux/include/linux/wireless.h     2006-04-03 16:34:27.000000000 -0700
--------------------------
File to patch:
我填的是/usr/src/kernels/2.6.18-128.el5-i686/include/linux
然后另一个PATCH,按照上一个方法些出来。又出现一个。在写就是这个。进入了一个循环。希望大家帮忙。


另外附上我下的补丁开头部分
diff -u -p linux/include/linux/wireless.20.h linux/include/linux/wireless.h
--- linux/include/linux/wireless.20.h   2006-04-03 16:32:34.000000000 -0700
+++ linux/include/linux/wireless.h      2006-04-03 16:34:27.000000000 -0700
@@ -1,7 +1,7 @@
/*
  * This file define a set of standard wireless extensions
  *
- * Version :   20      17.2.06
+ * Version :   21      14.3.06
  *
  * Authors :   Jean Tourrilhes - HPL - <jt@hpl.hp.com>
  * Copyright (c) 1997-2006 Jean Tourrilhes, All Rights Reserved.
@@ -69,9 +69,14 @@

/***************************** INCLUDES *****************************/

+/* This header is used in user-space, therefore need to be sanitised
+ * for that purpose. Those includes are usually not compatible with glibc.
+ * To know which includes to use in user-space, check iwlib.h. */
+#ifdef __KERNEL__
#include <linux/types.h>               /* for "caddr_t" et al          */
#include <linux/socket.h>              /* for "struct sockaddr" et al  */
#include <linux/if.h>                  /* for IFNAMSIZ and co... */


他要求的wireless.h开头是
/*
* This file define a set of standard wireless extensions
*
* Version :    20      17.2.06
*
* Authors :    Jean Tourrilhes - HPL - <jt@hpl.hp.com>
* Copyright (c) 1997-2006 Jean Tourrilhes, All Rights Reserved.
*/

#ifndef _LINUX_WIRELESS_H
#define _LINUX_WIRELESS_H

/************************** DOCUMENTATION **************************/
/*
* Initial APIs (1996 -> onward) :
* -----------------------------
* Basically, the wireless extensions are for now a set of standard ioctl
* call + /proc/net/wireless
*
* The entry /proc/net/wireless give statistics and information on the
* driver.
* This is better than having each driver having its entry because
* its centralised and we may remove the driver module safely.

[ 本帖最后由 baibart 于 2009-7-16 20:44 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2009-07-16 21:56 |只看该作者
各位大大,帮帮忙,是我描述不够清晰吗?

论坛徽章:
0
3 [报告]
发表于 2009-07-17 21:21 |只看该作者
网卡啥牌子啥型号?
干脆点!


#lspci 看一下
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP