kernel-module-atheros: workaround driver crashing on load
There seems to be a race condition in the load of the 'cfg80211' and 'ath6kl_sdio' modules. If we try to load the atheros module before the cfg80211 is settled down, the driver crash. The workaround is just separate the load of both modules in two separate 'modprobe' commands and add a small delay between them. https://jira.digi.com/browse/DEL-814 Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
parent
4471d862e5
commit
47de17cc2d
|
|
@ -81,6 +81,10 @@ if [ ! -e "${BDATA_LINK}" ] || ! cmp -s "${BDATA_LINK}" "${FIRMWARE_DIR}/${BDATA
|
||||||
ln -sf "${BDATA_SOURCE}" "${BDATA_LINK}"
|
ln -sf "${BDATA_SOURCE}" "${BDATA_LINK}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Load 'cfg80211' and let it settle down (needed by 'ath6kl_sdio')
|
||||||
|
modprobe -q cfg80211 && sleep 0.1
|
||||||
|
|
||||||
# ath6kl_sdio.ko
|
# ath6kl_sdio.ko
|
||||||
if ! grep -qs ath6kl_sdio /proc/modules; then
|
if ! grep -qs ath6kl_sdio /proc/modules; then
|
||||||
RETRIES="5"
|
RETRIES="5"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue