From 2cd9fb4cdd09ca0a762018c37e19d6b34d26638e Mon Sep 17 00:00:00 2001 From: Francois Berder Date: Fri, 2 Dec 2016 14:24:02 +0000 Subject: [PATCH 1/2] pistachio: Do not read MAC address using proddata The MAC address for wifi is already set in the DTB by the bootloader. There is no need to read from the OTP again. --- uccp420wlan/files/etc/init.d/uccp420wlan | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/uccp420wlan/files/etc/init.d/uccp420wlan b/uccp420wlan/files/etc/init.d/uccp420wlan index 6525df9..ef60c4f 100755 --- a/uccp420wlan/files/etc/init.d/uccp420wlan +++ b/uccp420wlan/files/etc/init.d/uccp420wlan @@ -1,15 +1,11 @@ #!/bin/sh /etc/rc.common -. /lib/functions/mac.sh - START=10 STOP=10 start() { - generate_mac $WIFI_OTP_REG0 - local mac_param="mac_addr=\"$(echo $MAC | sed 's/://g')\"" modprobe mac80211 - insmod uccp420wlan $mac_param + insmod uccp420wlan } stop() { From 62f7a97149fdff4ddedc4dc7e266f86fd6ea3259 Mon Sep 17 00:00:00 2001 From: Francois Berder Date: Fri, 2 Dec 2016 09:39:26 +0000 Subject: [PATCH 2/2] uccp420wlan: Remove proddata dependency We are not relying on proddata anymore to read the MAC address. Signed-off-by: Francois Berder --- uccp420wlan/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uccp420wlan/Makefile b/uccp420wlan/Makefile index f74bedf..ed8cfe3 100644 --- a/uccp420wlan/Makefile +++ b/uccp420wlan/Makefile @@ -29,7 +29,7 @@ include $(INCLUDE_DIR)/package.mk define KernelPackage/uccp420wlan SUBMENU:=Wireless Drivers TITLE:=Imagination wireless driver - DEPENDS:=@TARGET_pistachio +proddata +kmod-cfg80211 +kmod-mac80211 +@DRIVER_11N_SUPPORT + DEPENDS:=@TARGET_pistachio +kmod-cfg80211 +kmod-mac80211 +@DRIVER_11N_SUPPORT FILES:=$(PKG_BUILD_DIR)/uccp420wlan.$(LINUX_KMOD_SUFFIX) endef