aboutsummaryrefslogtreecommitdiffstats
path: root/package/broadcom-wl/src/wlc
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-07-24 07:10:13 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-07-24 07:10:13 +0000
commit9591f8917d4b2ac8e3b3eed701c8ed460fd45ffe (patch)
tree53668d63f513188b09c2181c4795ce9f7e80653a /package/broadcom-wl/src/wlc
parent21a3a1b8bad660fe54327fcece2c329297251111 (diff)
downloadupstream-9591f8917d4b2ac8e3b3eed701c8ed460fd45ffe.tar.gz
upstream-9591f8917d4b2ac8e3b3eed701c8ed460fd45ffe.tar.bz2
upstream-9591f8917d4b2ac8e3b3eed701c8ed460fd45ffe.zip
fix broadcom-wl patchtable
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4247 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-wl/src/wlc')
-rw-r--r--package/broadcom-wl/src/wlc/wlc.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/package/broadcom-wl/src/wlc/wlc.c b/package/broadcom-wl/src/wlc/wlc.c
index 99237c095a..76096df5ce 100644
--- a/package/broadcom-wl/src/wlc/wlc.c
+++ b/package/broadcom-wl/src/wlc/wlc.c
@@ -128,7 +128,7 @@ static int ptable_init(void)
if (ptable[0] == PTABLE_MAGIC)
return 0;
- glob("/lib/modules/2.4.*/wl.o", 0, NULL, &globbuf);
+ glob("/lib/modules/2.4.*/wl.o.patch", 0, NULL, &globbuf);
if (globbuf.gl_pathv[0] == NULL)
return -1;
@@ -139,13 +139,8 @@ static int ptable_init(void)
if (fstat(fd, &statbuf) < 0)
goto failed;
- if (statbuf.st_size <= 512)
+ if (statbuf.st_size < 512)
goto failed;
-
- if (lseek(fd, statbuf.st_size - 512, SEEK_SET) < 0) {
- perror("lseek");
- goto failed;
- }
if (read(fd, ptable, 512) < 512)
goto failed;