garypang13 5 years ago
parent
commit
48db420e40
2 changed files with 29 additions and 15 deletions
  1. 13 14
      devices/common/patches/use_json_object_new_int64.patch
  2. 16 1
      devices/phicomm-N1/.config

+ 13 - 14
devices/common/patches/use_json_object_new_int64.patch

@@ -1,23 +1,22 @@
-From f0972c84d9ed457ba9b430792c4809bc6207399a Mon Sep 17 00:00:00 2001
-From: lisaac <[email protected]>
-Date: Fri, 27 Mar 2020 07:19:17 +0000
-Subject: [PATCH] luci-lib-jsonc: stringify int use json_object_new_int64
- instead
+From 3af274ad9e230907a9b74f9cd9832bc1879bbaa8 Mon Sep 17 00:00:00 2001
+From: garypang13 <[email protected]>
+Date: Sun, 15 Nov 2020 17:31:03 +0800
+Subject: [PATCH] Update jsonc.c
 
 ---
- feeds/luci/libs/luci-lib-jsonc/src/jsonc.c | 9 ++++-----
- 1 file changed, 4 insertions(+), 5 deletions(-)
+ libs/luci-lib-jsonc/src/jsonc.c | 10 ++++------
+ 1 file changed, 4 insertions(+), 6 deletions(-)
 
-diff --git a/feeds/luci/libs/luci-lib-jsonc/src/jsonc.c b/feeds/luci/libs/luci-lib-jsonc/src/jsonc.c
-index 2f56a4a688..1ccfda8765 100644
---- a/feeds/luci/libs/luci-lib-jsonc/src/jsonc.c
-+++ b/feeds/luci/libs/luci-lib-jsonc/src/jsonc.c
-@@ -365,12 +365,11 @@ static struct json_object * _lua_to_json_rec(lua_State *L, int index,
+diff --git a/libs/luci-lib-jsonc/src/jsonc.c b/libs/luci-lib-jsonc/src/jsonc.c
+index 2f56a4a688..aedd082d71 100644
+--- a/package/feeds/luci/luci-lib-jsonc/src/jsonc.c
++++ b/package/feeds/luci/luci-lib-jsonc/src/jsonc.c
+@@ -365,12 +365,10 @@ static struct json_object * _lua_to_json_rec(lua_State *L, int index,
  
  	case LUA_TNUMBER:
  		nd = lua_tonumber(L, index);
 -		ni = lua_tointeger(L, index);
- 
+-
 -		if (nd == ni)
 -			return json_object_new_int(nd);
 -
@@ -28,4 +27,4 @@ index 2f56a4a688..1ccfda8765 100644
 +			return json_object_new_double(nd);
  
  	case LUA_TSTRING:
- 		return json_object_new_string(lua_tostring(L, index));
+ 		return json_object_new_string(lua_tostring(L, index));

+ 16 - 1
devices/phicomm-N1/.config

@@ -12,7 +12,6 @@ CONFIG_PACKAGE_luci-app-gpsysupgrade=n
 # 其他需要安装的软件包:
 
 CONFIG_OPENSSL_PREFER_CHACHA_OVER_GCM=y
-CONFIG_PACKAGE_wpad=y
 
 # USB3.0支持:
 CONFIG_PACKAGE_kmod-usb2=y
@@ -41,6 +40,22 @@ CONFIG_PACKAGE_kmod-sound-hda-codec-realtek=y
 CONFIG_PACKAGE_kmod-sound-hda-intel=y
 CONFIG_PACKAGE_kmod-sound-hda-codec-hdmi=y
 #USB net driver
+CONFIG_PACKAGE_hostapd-common=y
+CONFIG_DRIVER_11AC_SUPPORT=y
+CONFIG_DRIVER_11N_SUPPORT=y
+CONFIG_DRIVER_11W_SUPPORT=y
+CONFIG_PACKAGE_kmod-cfg80211=y
+CONFIG_PACKAGE_kmod-rtlwifi=y
+CONFIG_PACKAGE_kmod-rtlwifi-btcoexist=y
+CONFIG_PACKAGE_kmod-rtlwifi-usb=y
+CONFIG_PACKAGE_iw=y
+CONFIG_PACKAGE_iwinfo=y
+CONFIG_PACKAGE_usb-modeswitch=y
+CONFIG_PACKAGE_wpad=y
+CONFIG_PACKAGE_wpa-supplicant=y
+CONFIG_PACKAGE_kmod-rtl8192cu=y
+CONFIG_PACKAGE_kmod-mt76x2u=y
 CONFIG_PACKAGE_kmod-usb-net-asix=y
 CONFIG_PACKAGE_kmod-usb-net-asix-ax88179=y
+CONFIG_PACKAGE_kmod-usb-net-rtl8152-vendor=y