[LEDE-DEV] WRT3200ACM crashes after mac80211 wireless-testing 2017-11-01
wong.syrone at gmail.com
Wed Nov 22 16:25:14 PST 2017
1. minor warning
.config:5:warning: symbol value 'm' invalid for ATH_REG_DYNAMIC_USER_REG_HINTS
The config entry is of type bool.
bool "Atheros dynamic user regulatory hints"
depends on CFG80211_CERTIFICATION_ONUS
Say N. This should only be enabled in countries where
this feature is explicitly allowed and only on cards that
specifically have been tested for this.
python $(PKG_BUILD_DIR)/db2fw.py $(PKG_BUILD_DIR)/regulatory.db
$(PKG_BUILD_DIR)/db.txt in Build/Compile assumes python is linked to
python2 by default. But it's not the truth for bleeding edge distros,
for example, Archlinux.
It will fail on the system that links python to python 3.
print 'Usage: %s output-file input-file' % sys.argv
SyntaxError: Missing parentheses in call to 'print'. Did you mean
print(int 'Usage: %s output-file input-file' % sys.argv)?
The error got ignored silently.
I propose following `tools/scons/files/pywrap.sh` way, find python2
ourselves and call python2 explicitly.
3. About the crash
It crashes in ~5mins after clients connected to the router. No warning
or kernel panic messages at all, just rebooting.
I tried to build new backports based on wt-2017-11-14, drop some
patches already upstream, and still the same issue.
f9fa266faf9a2fdea48cc2fb72fa5a7e52a527c0, the crash disappears.
4. My thoughts
The big change has been made is switching from internal regdb to a
>From net/wireless/Kconfig, there are several config entries are
enabled by default.
bool "require regdb signature" if CFG80211_CERTIFICATION_ONUS
Require that in addition to the "regulatory.db" file a
"regulatory.db.p7s" can be loaded with a valid PKCS#7
signature for the regulatory.db file made by one of the
keys in the certs/ directory.
bool "allow regdb keys shipped with the kernel" if CFG80211_CERTIFICATION_ONUS
depends on CFG80211_REQUIRE_SIGNED_REGDB
Allow the regulatory database to be signed by one of the keys for
which certificates are part of the kernel sources
This is currently only Seth Forshee's key, who is the regulatory
bool "support CRDA" if EXPERT
depends on CFG80211
You should enable this option unless you know for sure you have no
need for it, for example when using internal regdb (above) or the
database loaded as a firmware file.
If unsure, say Y.
We don't have CRDA installed and there is no signing key being
installed. This might be the root cause. While I'm not familiar with
this series of changes. I wonder if someone can dig into it.
More information about the Lede-dev