Chinaunix

标题: hp笔记本无线上网问题 diff补丁 在线等 [打印本页]

作者: baibart    时间: 2009-07-16 21:03
标题: hp笔记本无线上网问题 diff补丁 在线等
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.
作者: unixlinuxsys    时间: 2009-07-17 21:20
网卡啥牌子啥型号?
干脆点!


#lspci 看一下
作者: kns1024wh    时间: 2009-07-29 11:29
标题: 回复 #1 baibart 的帖子
建议本本上还是 安装ubuntu的好,这个是作为桌面使用的
rh5.3 这个是作为server用途的,没有很好的无线支持也是正常的呀




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2