|
@@ -39,6 +39,27 @@ WIFI_NETWORKS_FILE=~/${PROJECT_NAME}-wifi.cfg
|
39
|
39
|
# repo for atheros AR9271 wifi driver
|
40
|
40
|
ATHEROS_WIFI_REPO="https://github.com/qca/open-ath9k-htc-firmware.git"
|
41
|
41
|
|
|
42
|
+function setup_wifi_atheros {
|
|
43
|
+ atheros_drivers_file=drivers/ath9k_htc_driver_bbb.tar.gz
|
|
44
|
+ if [ ! -f $atheros_drivers_file ]; then
|
|
45
|
+ if [ ! -f ~/freedombone/$atheros_drivers_file ]; then
|
|
46
|
+ return
|
|
47
|
+ else
|
|
48
|
+ atheros_drivers_file=drivers/$atheros_drivers_file
|
|
49
|
+ fi
|
|
50
|
+ fi
|
|
51
|
+ if [ ! -d /lib/firmware ]; then
|
|
52
|
+ return
|
|
53
|
+ fi
|
|
54
|
+ if [ -f /lib/firmware/htc_9271.fw ]; then
|
|
55
|
+ return
|
|
56
|
+ fi
|
|
57
|
+ curr_dir=$(pwd)
|
|
58
|
+ cd /lib/firmware
|
|
59
|
+ tar -xzvf $atheros_drivers_file
|
|
60
|
+ cd $curr_dir
|
|
61
|
+}
|
|
62
|
+
|
42
|
63
|
function setup_wifi {
|
43
|
64
|
if [[ $SYSTEM_TYPE == "mesh"* ]]; then
|
44
|
65
|
return
|