Instantly share code, notes, and snippets.

@Noltari Noltari/log.txt
Last active Apr 23, 2017

Embed
What would you like to do?
mac80211_rpi_fix.patch
Sun Apr 23 14:18:13 2017 daemon.notice netifd: radio0 (433): command failed: No error information (-524)
Sun Apr 23 14:18:14 2017 daemon.notice netifd: radio0 (433): command failed: Not supported (-95)
Sun Apr 23 14:18:14 2017 daemon.notice netifd: radio0 (433): command failed: I/O error (-5)
Sun Apr 23 14:18:14 2017 daemon.notice netifd: radio0 (433): command failed: Too many open files in system (-23)
Sun Apr 23 14:18:14 2017 daemon.err hostapd: Configuration file: /var/run/hostapd-phy0.conf
diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
index 9ebd76b..cfa4b34 100644
--- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
+++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
@@ -421,6 +421,10 @@ mac80211_iw_interface_add() {
iw phy "$phy" interface add "$ifname" type "$type" $wdsflag
rc="$?"
+ case "$path" in
+ *mmc_host*) rc=0;; # brcmfmac43438-sdio fix (RPi)
+ esac
+
[ "$rc" = 233 ] && {
# Device might have just been deleted, give the kernel some time to finish cleaning it up
sleep 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment