I tried to make the driver rtl8189fs and 8189es, when I wanted to apply the patch there was an error
can't find file to patch at input line 14
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From 10f5956da995a89b4b803f276dc282f2cac3ae4e Mon Sep 17 00:00:00 2001
|From: Hauke Mehrtens <hauke@hauke-m.de>
|Date: Wed, 27 Sep 2017 23:32:33 +0200
|Subject: rename sta_info.h
|
|---
| include/drv_types.h | 2 +-
| include/{sta_info.h => rtl_sta_info.h} | 0
| 2 files changed, 1 insertion(+), 1 deletion(-)
| rename include/{sta_info.h => rtl_sta_info.h} (100%)
|
|--- a/include/drv_types.h
|+++ b/include/drv_types.h
--------------------------
File to patch:
From 10f5956da995a89b4b803f276dc282f2cac3ae4e Mon Sep 17 00:00:00 2001
2 From: Hauke Mehrtens <hauke@hauke-m.de>
3 Date: Wed, 27 Sep 2017 23:32:33 +0200
4 Subject: rename sta_info.h
5
6 ---
7 include/drv_types.h | 2 +-
8 include/{sta_info.h => rtl_sta_info.h} | 0
9 2 files changed, 1 insertion(+), 1 deletion(-)
10 rename include/{sta_info.h => rtl_sta_info.h} (100%)
11
12 --- a/include/drv_types.h
13 +++ b/include/drv_types.h
14 @@ -113,7 +113,7 @@ typedef struct _ADAPTER _adapter, ADAPTE
15 #include <rtw_ioctl_rtl.h>
16 #include <osdep_intf.h>
17 #include <rtw_eeprom.h>
18 -#include <sta_info.h>
19 +#include <rtl_sta_info.h>
20 #include <rtw_event.h>
21 #include <rtw_mlme_ext.h>
22 #include <rtw_ap.h>
23 --- /dev/null
24 +++ b/include/rtl_sta_info.h
25 @@ -0,0 +1,591 @@
26 +/******************************************************************************
27 + *
28 + * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
29 + *
30 + * This program is free software; you can redistribute it and/or modify it
31 + * under the terms of version 2 of the GNU General Public License as
32 + * published by the Free Software Foundation.
33 + *
34 + * This program is distributed in the hope that it will be useful, but WITHOUT
35 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
36 + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
37 + * more details.
38 + *
39 + * You should have received a copy of the GNU General Public License along with
40 + * this program; if not, write to the Free Software Foundation, Inc.,
41 + * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
42 + *
43 + *
44 + ******************************************************************************/
45 +#ifndef __STA_INFO_H_
46 +#define __STA_INFO_H_
47 +
48 +
49 +#define IBSS_START_MAC_ID 2
include/drv_types.h is not in the package folder. You provably need to put that file into some patches folder for your board and it will be applied automatically during the build.
clasic@classicnet:~/openwrt-sdk-ath79-generic_gcc-8.4.0_musl.Linux-x86_64/package/rtl8189fs/patches$ patch --dry-run -p1 -i 011-activate-all-backport-code.patch
can't find file to patch at input line 12
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From 7b5628021a32aefd1c620d1557b9d07721f6896c Mon Sep 17 00:00:00 2001
|From: Hauke Mehrtens <hauke@hauke-m.de>
|Date: Wed, 27 Sep 2017 23:38:49 +0200
|Subject: activate all backport code
|
|---
| os_dep/linux/ioctl_cfg80211.c | 34 +++++++++++++++++-----------------
| 1 file changed, 17 insertions(+), 17 deletions(-)
|
|--- a/os_dep/linux/ioctl_cfg80211.c
|+++ b/os_dep/linux/ioctl_cfg80211.c
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
6 out of 6 hunks ignored
clasic@classicnet:~/openwrt-sdk-ath79-generic_gcc-8.4.0_musl.Linux-x86_64/package/rtl8189fs/patches$ patch --dry-run -p1 -i 1.patch
patch: **** Can't open patch file 1.patch : No such file or directory
clasic@classicnet:~/openwrt-sdk-ath79-generic_gcc-8.4.0_musl.Linux-x86_64/package/rtl8189fs/patches$ patch --dry-run -p1 -i 1.patch
patch: **** Can't open patch file 1.patch : No such file or directory
clasic@classicnet:~/openwrt-sdk-ath79-generic_gcc-8.4.0_musl.Linux-x86_64/package/rtl8189fs/patches$
You need to patch all three files in a the correct order. Follow that link you posted earlier and click on patch link in the top left corner. Save what you get into a patch file, and then apply.
ch --dry-run -p1 -i 011-activate-all-backport-code.patch
checking file package/kernel/rtl8189fs/patches/011-activate-all-backport-code.patch
patch unexpectedly ends in middle of line
Just make sure to remove --dry-run or the patch does not actually apply. That is a test mode to test if the patch is good, but not actually make any changes.