aircrack-ng / rtl8812au

RTL8812AU/21AU and RTL8814AU driver with monitor mode and frame injection
GNU General Public License v2.0
3.51k stars 768 forks source link

Edimax EW-7811UTC no longer works in AP or client mode with latest Raspian #442

Open picameratk opened 4 years ago

picameratk commented 4 years ago

After upgrading to Linux 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l GNU/Linux and running a make && make install I can no longer get the Edimax to work using hostapd or as a client (i.e., wpa_supplicant)

The Makefile has been changed so that CONFIG_PLATFORM_I386_PC = n and CONFIG_PLATFORM_ARM_RPI = y (if I try to use ARM64 version it throws an error)

While hostapd 2.9 will start successfully and iwconfig shows an SSID I can use iw xxxx scan on another wlan adapter and will not see the SSID being broadcast. Additionally I cannot see the SSID on my iPhone either.

When running in client mode dhclient will never find a router to get an ip address from.

One abnormal item is that the txpower will always show as zero. Of course, I run iw wlan2 set txpower fixed 2000 and then txpower shows.

I used git clone -b v5.6.4.1 https://github.com/aircrack-ng/rtl8812au.git to get rtl8812au. make and make install run without errors. I have also run make uninstall and make clean a few times as well.

Note that I have two identical Edimax devices and both of them are giving similar results. I also have a Raspberry Pi 3 B+ that I have not updated and the Edimax devices operate correctly.

Any idea what might be going wrong?

ETC: dpkg -l info: ii raspberrypi-bootloader 1.20190925+1-1 armhf Raspberry Pi bootloader

ii raspberrypi-kernel 1.20190925+1-1 armhf Raspberry Pi bootloader

ii raspberrypi-kernel-headers 1.20190925+1-1 armhf Header files for the Raspberry Pi Linux kernel

Environment: Raspberry Pi 3 B+ with a 2.5A power capability. The builtin Raspberry Pi wifi will operate correctly in both hostapd and in client mode. An additional Hawkings wifi adapter works as well.

picameratk commented 4 years ago

After using a v5.3.4 version I had left laying around I am able to get the Edimax to run either hostapd or client mode. In other words at the v5.3.4 level everything is working again. Note that the Makefile I used in this version is different and, therefore, I will post below. As a reminder I was using the default Makefile that was supplied with v5.6.4.1, with the two changes required to run on Raspian, but the Makefile posted below is customized (i.e., experimented with) on v5.3.4 and is in productive use.

(top portion only)

EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS) -fno-pie EXTRA_CFLAGS += -O1

EXTRA_CFLAGS += -O3

EXTRA_CFLAGS += -Wall EXTRA_CFLAGS += -Wextra

EXTRA_CFLAGS += -Werror

EXTRA_CFLAGS += -pedantic

EXTRA_CFLAGS += -Wshadow -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes

EXTRA_CFLAGS += -Wno-tautological-compare

EXTRA_CFLAGS += -Wno-incompatible-pointer-types

EXTRA_CFLAGS += -Wno-switch

EXTRA_CFLAGS += -Wmissing-field-initializers

EXTRA_CFLAGS += -Wno-cast-function-type EXTRA_CFLAGS += -Wno-unused-variable EXTRA_CFLAGS += -Wno-unused-value EXTRA_CFLAGS += -Wno-unused-label EXTRA_CFLAGS += -Wno-unused-parameter EXTRA_CFLAGS += -Wno-unused-function EXTRA_CFLAGS += -Wno-unused EXTRA_CFLAGS += -Wno-date-time

EXTRA_CFLAGS += -Wno-misleading-indentation

EXTRA_CFLAGS += -Wno-uninitialized

Relax some warnings from '-Wextra' so we won't get flooded with warnings

EXTRA_CFLAGS += -Wno-sign-compare

EXTRA_CFLAGS += -Wno-missing-field-initializers

EXTRA_CFLAGS += -Wno-type-limits

GCC_VER_49 := $(shell echo $(CC) -dumpversion | cut -f1-2 -d. >= 4.9 | bc ) ifeq ($(GCC_VER_49),1) EXTRA_CFLAGS += -Wno-date-time -Wno-error=date-time # Fix compile error && warning on gcc 4.9 and later endif

EXTRA_CFLAGS += -Wno-vla

EXTRA_CFLAGS += -I$(src)/include

EXTRA_LDFLAGS += --strip-debug

########################## WIFI IC ############################ CONFIG_MULTIDRV = n CONFIG_RTL8812A = y CONFIG_RTL8821A = y CONFIG_RTL8814A = y ######################### Interface ########################### CONFIG_USB_HCI = y ######################### LED ########################### CONFIG_LED_CONTROL = y CONFIG_LED_ENABLE = y ########################## Features ########################### CONFIG_NET_NS = n CONFIG_IPV6_DISABLE = n CONFIG_MP_INCLUDED = y CONFIG_CONCURRENT_MODE = n CONFIG_POWER_SAVING = n CONFIG_USB_AUTOSUSPEND = n CONFIG_HW_PWRP_DETECTION = y CONFIG_WIFI_TEST = n CONFIG_BT_COEXIST = n CONFIG_INTEL_WIDI = n CONFIG_WAPI_SUPPORT = n CONFIG_EFUSE_CONFIG_FILE = y CONFIG_EXT_CLK = n CONFIG_TRAFFIC_PROTECT = n CONFIG_LOAD_PHY_PARA_FROM_FILE = y CONFIG_TXPWR_BY_RATE_EN = y CONFIG_TXPWR_LIMIT_EN = n CONFIG_RTW_CHPLAN = 0xFF CONFIG_RTW_ADAPTIVITY_EN = disable CONFIG_RTW_ADAPTIVITY_MODE = normal CONFIG_SIGNAL_SCALE_MAPPING = n CONFIG_80211W = y CONFIG_REDUCE_TX_CPU_LOADING = y CONFIG_BR_EXT = y CONFIG_TDLS = n CONFIG_WIFI_MONITOR = y

If you are setting up AP (e.g. by hostapd) in 802.11ac mode, you may have to choose 'y' below.

Otherwise some channels may be flagged 'NO-IR' (i.e. Passive scanning) by the driver.

Please check your country's regulatory domain first,

to see whether active scanning is permitted by law/regulations on the desired channels.

CONFIG_DISABLE_REGD_C=y CONFIG_MCC_MODE = n CONFIG_APPEND_VENDOR_IE_ENABLE = n CONFIG_RTW_NAPI = y CONFIG_RTW_GRO = y CONFIG_RTW_NETIF_SG = n CONFIG_RTW_IPCAM_APPLICATION = n CONFIG_RTW_REPEATER_SON = n CONFIG_RTW_WIFI_HAL = y ########################## Debug ########################### CONFIG_DISABLE_PHYDM_DEBUG_FUNCTION = y CONFIG_RTW_DEBUG = n

default log level is _DRVINFO = 4,

please refer to "How_to_set_driver_debug_log_level.doc" to set the available level.

CONFIG_RTW_LOG_LEVEL = 4 ######################## Wake On Lan ########################## CONFIG_WOWLAN = n CONFIG_WAKEUP_TYPE = 0x7 #bit2: deauth, bit1: unicast, bit0: magic pkt. CONFIG_GPIO_WAKEUP = n CONFIG_WAKEUP_GPIO_IDX = default CONFIG_HIGH_ACTIVE = n CONFIG_PNO_SUPPORT = n CONFIG_PNO_SET_DEBUG = n CONFIG_AP_WOWLAN = n ######### Notify SDIO Host Keep Power During Syspend ########## CONFIG_RTW_SDIO_PM_KEEP_POWER = y ###################### MP HW TX MODE FOR VHT ####################### CONFIG_MP_VHT_HW_TX_MODE = y ###################### Platform Related ####################### CONFIG_PLATFORM_I386_PC = n CONFIG_PLATFORM_ANDROID_X86 = n CONFIG_PLATFORM_ANDROID_INTEL_X86 = n CONFIG_PLATFORM_OPENWRT_NEO2 = n CONFIG_PLATFORM_JB_X86 = n CONFIG_PLATFORM_ARM_S3C2K4 = n CONFIG_PLATFORM_ARM_PXA2XX = n CONFIG_PLATFORM_ARM_S3C6K4 = n CONFIG_PLATFORM_MIPS_RMI = n CONFIG_PLATFORM_RTD2880B = n CONFIG_PLATFORM_MIPS_AR9132 = n CONFIG_PLATFORM_OPENWRT_NEO2 = n CONFIG_PLATFORM_RTK_DMP = n CONFIG_PLATFORM_MIPS_PLM = n CONFIG_PLATFORM_MSTAR389 = n CONFIG_PLATFORM_MT53XX = n CONFIG_PLATFORM_ARM_MX51_241H = n CONFIG_PLATFORM_FS_MX61 = n CONFIG_PLATFORM_ACTIONS_ATJ227X = n CONFIG_PLATFORM_TEGRA3_CARDHU = n CONFIG_PLATFORM_TEGRA4_DALMORE = n CONFIG_PLATFORM_ARM_TCC8900 = n CONFIG_PLATFORM_ARM_TCC8920 = n CONFIG_PLATFORM_ARM_TCC8920_JB42 = n CONFIG_PLATFORM_ARM_TCC8930_JB42 = n CONFIG_PLATFORM_ARM_RK2818 = n CONFIG_PLATFORM_ARM_RK3066 = n CONFIG_PLATFORM_ARM_RK3188 = n CONFIG_PLATFORM_ARM_URBETTER = n CONFIG_PLATFORM_ARM_TI_PANDA = n CONFIG_PLATFORM_MIPS_JZ4760 = n CONFIG_PLATFORM_DMP_PHILIPS = n CONFIG_PLATFORM_MSTAR_TITANIA12 = n CONFIG_PLATFORM_MSTAR = n CONFIG_PLATFORM_SZEBOOK = n CONFIG_PLATFORM_ARM_SUNxI = n CONFIG_PLATFORM_ARM_SUN6I = n CONFIG_PLATFORM_ARM_SUN7I = n CONFIG_PLATFORM_ARM_SUN8I_W3P1 = n CONFIG_PLATFORM_ARM_SUN8I_W5P1 = n CONFIG_PLATFORM_ACTIONS_ATM702X = n CONFIG_PLATFORM_ACTIONS_ATV5201 = n CONFIG_PLATFORM_ACTIONS_ATM705X = n CONFIG_PLATFORM_ARM_SUN50IW1P1 = n CONFIG_PLATFORM_ARM_RTD299X = n CONFIG_PLATFORM_ARM_SPREADTRUM_6820 = n CONFIG_PLATFORM_ARM_SPREADTRUM_8810 = n CONFIG_PLATFORM_ARM_WMT = n CONFIG_PLATFORM_ARM_RPI = y CONFIG_PLATFORM_ARM64_RPI = y CONFIG_PLATFORM_ARM_ODROIDC2 = n CONFIG_PLATFORM_TI_DM365 = n CONFIG_PLATFORM_MOZART = n CONFIG_PLATFORM_RTK119X = n CONFIG_PLATFORM_RTK129X = n CONFIG_PLATFORM_RTK390X = n CONFIG_PLATFORM_NOVATEK_NT72668 = n CONFIG_PLATFORM_HISILICON = n CONFIG_PLATFORM_HISILICON_HI3798 = n CONFIG_PLATFORM_NV_TK1 = n CONFIG_PLATFORM_NV_TK1_UBUNTU = n CONFIG_PLATFORM_RTL8197D = n CONFIG_PLATFORM_AML_S905 = n CONFIG_PLATFORM_ZTE_ZX296716 = n ###############################################################

CONFIG_DRVEXT_MODULE = n

cedricbambooza commented 3 years ago

pls consider closing the issue, when it's solved by now :)

picameratk commented 3 years ago

Is it solved?

Sent from my iPad

On May 11, 2021, at 7:19 AM, cedricbambooza @.***> wrote:

 pls consider closing the issue, when it's solved by now :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.