aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel
diff options
context:
space:
mode:
authorGabe Rodriguez <lifehacksback@gmail.com>2018-03-15 02:56:51 -0700
committerHauke Mehrtens <hauke@hauke-m.de>2018-03-17 22:15:38 +0100
commit12d3d87a91e9f333ed067a6db43711bd89992346 (patch)
tree9b250afc052e5d5012db80521517bfeddb799de7 /package/kernel
parent96288dc139129b8b70a8418ee3c97de93b0b5198 (diff)
downloadupstream-12d3d87a91e9f333ed067a6db43711bd89992346.tar.gz
upstream-12d3d87a91e9f333ed067a6db43711bd89992346.tar.bz2
upstream-12d3d87a91e9f333ed067a6db43711bd89992346.zip
mwlwifi: Updated to upstream stable release
mwlwifi was updated to a new stable. Included in this stable release are the followin benefits: - Fixed compiling for kernel 4.14 - Fixed crash on 88W8864 binary Compiled and tested on: WRT3200ACM and WRT1900AC Signed-off-by: Gabe Rodriguez <lifehacksback@gmail.com>
Diffstat (limited to 'package/kernel')
-rw-r--r--package/kernel/mwlwifi/Makefile6
-rw-r--r--package/kernel/mwlwifi/patches/001-remove-vfs_write.patch92
2 files changed, 3 insertions, 95 deletions
diff --git a/package/kernel/mwlwifi/Makefile b/package/kernel/mwlwifi/Makefile
index 8e9c88d304..1613fb4058 100644
--- a/package/kernel/mwlwifi/Makefile
+++ b/package/kernel/mwlwifi/Makefile
@@ -15,9 +15,9 @@ PKG_LICENSE_FILES:=
PKG_SOURCE_URL:=https://github.com/kaloz/mwlwifi
PKG_SOURCE_PROTO:=git
-PKG_SOURCE_DATE:=2018-02-26
-PKG_SOURCE_VERSION:=51350a3e085a811179a270baddcae03ec9384f07
-PKG_MIRROR_HASH:=847f064b13e76e38402e118ee16569d49887051294eb99611cf025039721d4cc
+PKG_SOURCE_DATE:=2018-03-05
+PKG_SOURCE_VERSION:=b1b9a9e1c1beee30a8cce4038f4109727362ebe0
+PKG_MIRROR_HASH:=720a3bc5ecb31419fdeebe02efba764ecc77815332114e97dc80f989d85a816f
PKG_MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>
PKG_BUILD_PARALLEL:=1
diff --git a/package/kernel/mwlwifi/patches/001-remove-vfs_write.patch b/package/kernel/mwlwifi/patches/001-remove-vfs_write.patch
deleted file mode 100644
index f638dc6c9a..0000000000
--- a/package/kernel/mwlwifi/patches/001-remove-vfs_write.patch
+++ /dev/null
@@ -1,92 +0,0 @@
---- a/debugfs.c
-+++ b/debugfs.c
-@@ -279,7 +279,6 @@ static void core_dump_file(u8 *valbuf, u
- u32 append, u32 totallen, bool textmode)
- {
- struct file *filp_core = NULL;
-- mm_segment_t oldfs;
- char file_name[40];
- u8 *buf = kmalloc(length * 3, GFP_KERNEL);
- u8 *data_p = buf;
-@@ -292,9 +291,6 @@ static void core_dump_file(u8 *valbuf, u
- sprintf(file_name, "/dev/shm/coredump-%x-%x",
- region, (region + totallen));
-
-- oldfs = get_fs();
-- set_fs(KERNEL_DS);
--
- if (append)
- filp_core = filp_open(file_name, O_RDWR | O_APPEND, 0);
- else
-@@ -317,15 +313,15 @@ static void core_dump_file(u8 *valbuf, u
- }
- data_p = buf + j;
- data_p += sprintf(data_p, "\n");
-- vfs_write(filp_core, buf, strlen(buf),
-- &filp_core->f_pos);
-+ kernel_write(filp_core, buf, strlen(buf),
-+ &filp_core->f_pos);
- } else
-- vfs_write(filp_core, valbuf, length, &filp_core->f_pos);
-+ kernel_write(filp_core, valbuf, length,
-+ &filp_core->f_pos);
-
- filp_close(filp_core, current->files);
- }
-
-- set_fs(oldfs);
- kfree(buf);
- }
-
-@@ -1339,7 +1335,6 @@ static ssize_t mwl_debugfs_ba_hist_read(
- u8 bmap0flag, nobaflag;
- char buff[500], file_location[20];
- struct file *filp_bahisto;
-- mm_segment_t oldfs;
- u8 *data_p = buff;
- ssize_t ret;
-
-@@ -1355,13 +1350,10 @@ static ssize_t mwl_debugfs_ba_hist_read(
- memset(file_location, 0, sizeof(file_location));
- sprintf(file_location, "/tmp/ba_histo-%d", priv->ba_aid);
-
-- oldfs = get_fs();
-- set_fs(KERNEL_DS);
- filp_bahisto = filp_open(file_location,
- O_RDWR | O_CREAT | O_TRUNC, 0);
-
- if (IS_ERR(filp_bahisto)) {
-- set_fs(oldfs);
- ret = -EIO;
- goto err;
- }
-@@ -1402,8 +1394,8 @@ static ssize_t mwl_debugfs_ba_hist_read(
-
- /* Buffer is full. Write to file and reset buf */
- if ((strlen(buff) + 36) >= 500) {
-- vfs_write(filp_bahisto, buff, strlen(buff),
-- &filp_bahisto->f_pos);
-+ kernel_write(filp_bahisto, buff, strlen(buff),
-+ &filp_bahisto->f_pos);
- mdelay(2);
- memset(buff, 0, sizeof(buff));
- data_p = buff;
-@@ -1427,8 +1419,8 @@ static ssize_t mwl_debugfs_ba_hist_read(
- data_p += sprintf(data_p, "%8d\n", nobaflag);
- }
-
-- vfs_write(filp_bahisto, buff, strlen(buff),
-- &filp_bahisto->f_pos);
-+ kernel_write(filp_bahisto, buff, strlen(buff),
-+ &filp_bahisto->f_pos);
- len += scnprintf(p + len, size - len,
- "hole: %d, expect: %d, bmap0: %d, noba: %d\n",
- baholecnt, baexpcnt, bmap0cnt, nobacnt);
-@@ -1441,7 +1433,6 @@ static ssize_t mwl_debugfs_ba_hist_read(
- priv->ba_aid);
-
- filp_close(filp_bahisto, current->files);
-- set_fs(oldfs);
-
- ret = simple_read_from_buffer(ubuf, count, ppos, p, len);
-