diff options
| author | Felix Fietkau <nbd@openwrt.org> | 2006-07-24 07:10:13 +0000 |
|---|---|---|
| committer | Felix Fietkau <nbd@openwrt.org> | 2006-07-24 07:10:13 +0000 |
| commit | c6a54e2f10877799e3614f918a17f87a05fab5ea (patch) | |
| tree | 570c7a38f2c161607ab3aa059e6a6fb787efe05f /openwrt/package/broadcom-wl/src/wlc | |
| parent | 07eaf1e1b1c03d2c9308bdba4ec0fa32bbb96a48 (diff) | |
| download | mtk-20170518-c6a54e2f10877799e3614f918a17f87a05fab5ea.zip mtk-20170518-c6a54e2f10877799e3614f918a17f87a05fab5ea.tar.gz mtk-20170518-c6a54e2f10877799e3614f918a17f87a05fab5ea.tar.bz2 | |
fix broadcom-wl patchtable
SVN-Revision: 4247
Diffstat (limited to 'openwrt/package/broadcom-wl/src/wlc')
| -rw-r--r-- | openwrt/package/broadcom-wl/src/wlc/wlc.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/openwrt/package/broadcom-wl/src/wlc/wlc.c b/openwrt/package/broadcom-wl/src/wlc/wlc.c index 99237c0..76096df 100644 --- a/openwrt/package/broadcom-wl/src/wlc/wlc.c +++ b/openwrt/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; |
