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:
Javier Viguera 2013-11-27 14:41:00 +01:00
parent 4471d862e5
commit 47de17cc2d
1 changed files with 4 additions and 0 deletions

View File

@ -81,6 +81,10 @@ if [ ! -e "${BDATA_LINK}" ] || ! cmp -s "${BDATA_LINK}" "${FIRMWARE_DIR}/${BDATA
ln -sf "${BDATA_SOURCE}" "${BDATA_LINK}"
fi
# Load 'cfg80211' and let it settle down (needed by 'ath6kl_sdio')
modprobe -q cfg80211 && sleep 0.1
# ath6kl_sdio.ko
if ! grep -qs ath6kl_sdio /proc/modules; then
RETRIES="5"