-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NRC7292 Software Package v1.3.2 release
- Loading branch information
Aaron J. Lee
committed
Sep 17, 2020
1 parent
828f9ee
commit 34a691a
Showing
492 changed files
with
566 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
VERSION_MAJOR 1 | ||
VERSION_MINOR 3 | ||
VERSION_REVISION 1 | ||
VERSION_REVISION 2 | ||
|
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Binary file not shown.
Binary file modified
BIN
+8.41 KB
(100%)
package/host/doc/UG-7292-001-Host mode SDK.pdf
100644 → 100755
Binary file not shown.
Empty file.
Binary file modified
BIN
-71 Bytes
(100%)
package/host/doc/UG-7292-003-S1G_Channel.pdf
100644 → 100755
Binary file not shown.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
VERSION_MAJOR 1 | ||
VERSION_MINOR 3 | ||
VERSION_REVISION 1 | ||
VERSION_REVISION 2 | ||
|
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
3 changes: 2 additions & 1 deletion
3
package/host/evk/sw_pkg/nrc_pkg/VERSION-SDK.txt
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
VERSION_MAJOR 1 | ||
VERSION_MINOR 3 | ||
VERSION_REVISION 1 | ||
VERSION_REVISION 2 | ||
|
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/CN/ap_halow_open.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/CN/ap_halow_owe.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/CN/ap_halow_sae.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/CN/ap_halow_wpa2.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/CN/sta_halow_open.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/CN/sta_halow_owe.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/CN/sta_halow_sae.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/CN/sta_halow_wpa2.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/EU/ap_halow_open.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/EU/ap_halow_owe.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/EU/ap_halow_sae.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/EU/ap_halow_wpa2.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/EU/sta_halow_open.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/EU/sta_halow_owe.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/EU/sta_halow_sae.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/EU/sta_halow_wpa2.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/JP/ap_halow_open.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/JP/ap_halow_owe.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/JP/ap_halow_sae.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/JP/ap_halow_wpa2.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/JP/sta_halow_open.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/JP/sta_halow_owe.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/JP/sta_halow_sae.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/JP/sta_halow_wpa2.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/KR/ap_halow_open.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/KR/ap_halow_owe.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/KR/ap_halow_sae.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/KR/ap_halow_wpa2.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/KR/sta_halow_open.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/KR/sta_halow_owe.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/KR/sta_halow_sae.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/KR/sta_halow_wpa2.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/TW/ap_halow_open.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/TW/ap_halow_owe.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/TW/ap_halow_sae.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/TW/ap_halow_wpa2.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/TW/sta_halow_open.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/TW/sta_halow_owe.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/TW/sta_halow_sae.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/TW/sta_halow_wpa2.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/US/ap_halow_open.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/US/ap_halow_owe.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/US/ap_halow_sae.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/US/ap_halow_wpa2.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/US/sta_halow_open.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/US/sta_halow_owe.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/US/sta_halow_sae.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/US/sta_halow_wpa2.conf
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/conf/etc/clock_config.sh
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/sniffer/NewraPeek_v0-1.4/README.txt
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/sniffer/NewraPeek_v0-1.4/newrapeek_0-1.4_armhf.deb
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/sniffer/NewraPeek_v0-1.4/rpcapd
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/sniffer/NewraPeek_v0-1.4/run_rpcapd.py
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/sniffer/NewraPeek_v0-1.4/run_tshark.py
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg/script/sniffer/change_channel.py
100644 → 100755
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Binary file modified
BIN
+1.49 KB
(100%)
package/host/evk/sw_pkg/nrc_pkg/sw/driver/nrc.ko
100644 → 100755
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
package/host/evk/sw_pkg/nrc_pkg/sw/firmware/copy
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
cp /home/pi/nrc_pkg/sw/firmware/nrc$1_cspi.bin /home/pi/nrc_pkg/sw/firmware/uni_s1g.bin | ||
sudo cp /home/pi/nrc_pkg/sw/firmware/uni_s1g.bin /lib/firmware | ||
sudo cp /home/pi/nrc_pkg/sw/firmware/nrc7292_bd.dat /lib/firmware | ||
sudo cp /home/pi/nrc_pkg/sw/firmware/$2 /lib/firmware | ||
ls -al /home/pi/nrc_pkg/sw/firmware | ||
ls -al /lib/firmware/uni_s1g* | ||
|
Binary file modified
BIN
+0 Bytes
(100%)
package/host/evk/sw_pkg/nrc_pkg/sw/firmware/nrc7292_bd.dat
100644 → 100755
Binary file not shown.
Binary file modified
BIN
-232 Bytes
(100%)
package/host/evk/sw_pkg/nrc_pkg/sw/firmware/nrc7292_cspi.bin
100644 → 100755
Binary file not shown.
Empty file.
3 changes: 2 additions & 1 deletion
3
package/host/evk/sw_pkg/nrc_pkg_dual/VERSION-SDK.txt
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
VERSION_MAJOR 1 | ||
VERSION_MINOR 3 | ||
VERSION_REVISION 1 | ||
VERSION_REVISION 2 | ||
|
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/etc/dhcpcd/dhcpcd_ap.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/etc/dhcpcd/dhcpcd_ap_sta.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/etc/dhcpcd/dhcpcd_sta.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/etc/dhcpcd/dhcpcd_sta_ap.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/etc/dhcpcd/dnsmasq/dnsmasq_ap.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/etc/dhcpcd/dnsmasq/dnsmasq_ap_sta.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/etc/dhcpcd/dnsmasq/dnsmasq_sta_ap.conf
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/etc/python/test_send_addba.py
100644 → 100755
Empty file.
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/11N/hostapd_AP.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/11N/hostapd_STA.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/11N/wpa_supplicant.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/CN/ap_halow_open.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/CN/ap_halow_owe.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/CN/ap_halow_sae.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/CN/ap_halow_wpa2.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/CN/sta_halow_open.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/CN/sta_halow_owe.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/CN/sta_halow_sae.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/CN/sta_halow_wpa2.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/EU/ap_halow_open.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/EU/ap_halow_owe.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/EU/ap_halow_sae.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/EU/ap_halow_wpa2.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/EU/sta_halow_open.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/EU/sta_halow_owe.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/EU/sta_halow_sae.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/EU/sta_halow_wpa2.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/JP/ap_halow_open.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/JP/ap_halow_owe.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/JP/ap_halow_sae.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/JP/ap_halow_wpa2.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/JP/sta_halow_open.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/JP/sta_halow_owe.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/JP/sta_halow_sae.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/JP/sta_halow_wpa2.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/KR/ap_halow_open.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/KR/ap_halow_owe.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/KR/ap_halow_sae.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/KR/ap_halow_wpa2.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/KR/sta_halow_open.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/KR/sta_halow_owe.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/KR/sta_halow_sae.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/KR/sta_halow_wpa2.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/TW/ap_halow_open.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/TW/ap_halow_owe.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/TW/ap_halow_sae.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/TW/ap_halow_wpa2.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/TW/sta_halow_open.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/TW/sta_halow_owe.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/TW/sta_halow_sae.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/TW/sta_halow_wpa2.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/US/ap_halow_open.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/US/ap_halow_owe.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/US/ap_halow_sae.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/US/ap_halow_wpa2.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/US/sta_halow_open.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/US/sta_halow_owe.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/US/sta_halow_sae.conf
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/conf/US/sta_halow_wpa2.conf
100644 → 100755
Empty file.
Empty file.
131 changes: 131 additions & 0 deletions
131
package/host/evk/sw_pkg/nrc_pkg_dual/script/run_recovery.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
import os | ||
import sys | ||
import time | ||
import ctypes | ||
import threading | ||
import libnl.handlers | ||
from libnl.error import errmsg | ||
from libnl.nl import nl_recvmsgs | ||
from libnl.attr import nla_parse | ||
from libnl.nl80211 import nl80211 | ||
from libnl.msg import nlmsg_data, nlmsg_hdr | ||
from libnl.linux_private.genetlink import genlmsghdr | ||
from libnl.genl.ctrl import genl_ctrl_resolve, genl_ctrl_resolve_grp | ||
from libnl.genl.genl import genl_connect, genlmsg_attrdata, genlmsg_attrlen | ||
from libnl.socket_ import nl_socket_add_membership, nl_socket_alloc, nl_socket_drop_membership | ||
|
||
NL_CMD_RECOVERY_MSG = 27 | ||
|
||
PATH_TO_DRIVER = "/home/pi/nrc_pkg/sw/driver/nrc.ko" | ||
PATH_TO_CONFIG = "/home/pi/nrc_pkg/script/conf/{}/" | ||
FIRMWARE = "uni_s1g.bin" | ||
|
||
class Recovery: | ||
def __init__(self): | ||
self.recovery = False | ||
self.recovery_count = 0 | ||
self.keyboard = False | ||
self.sk = None | ||
self.driver_id = None | ||
self.station_type = 0 | ||
self.config = -1 | ||
self.country = "US" | ||
|
||
def trigger_recovery(self): | ||
self.recovery_count += 1 | ||
self.recovery = False | ||
|
||
#startup routine | ||
self.startup() | ||
|
||
print("Recovery Count: {}".format(self.recovery_count)) | ||
self.connect() | ||
|
||
def startup(self): #example | ||
app = "wpa_supplicant" if self.is_sta() else "hostapd" | ||
|
||
os.system("sudo killall -9 {} > /dev/null 2>&1".format(app)) | ||
os.system("sudo rmmod nrc > /dev/null 2>&1") | ||
|
||
os.system("sudo insmod {} fw_name={} > /dev/null".format(PATH_TO_DRIVER, FIRMWARE)) | ||
time.sleep(5) | ||
os.system("sudo {} {} {}/{} -B > /dev/null".format(app, "-iwlan0 -c" if self.is_sta() else "", PATH_TO_CONFIG.format(self.country), self.get_config())) | ||
time.sleep(7) | ||
|
||
def parse_arg(self): | ||
if (len(sys.argv) < 4): | ||
sys.exit("Usage: python run_recovery.py <station-type> <security-type> <country-code>") | ||
|
||
self.station_type = int(sys.argv[1]) | ||
self.config = int(sys.argv[2]) | ||
self.country = sys.argv[3] | ||
|
||
def is_sta(self): | ||
return self.station_type == 0 | ||
|
||
def get_config(self): | ||
station = "sta" if self.is_sta() else "ap" | ||
if self.config == 0: | ||
return "{}_halow_open.conf".format(station) | ||
elif self.config == 1: | ||
return "{}_halow_wpa2.conf".format(station) | ||
elif self.config == 2: | ||
return "{}_halow_owe.conf".format(station) | ||
elif self.config == 3: | ||
return "{}_halow_sae.conf".format(station) | ||
else: | ||
return "{}_halow_open.conf".format(station) | ||
|
||
def connect(self): | ||
self.sk = nl_socket_alloc() | ||
recovery.ok(0, genl_connect, self.sk) | ||
self.driver_id = recovery.ok(0, genl_ctrl_resolve, self.sk, b'NRC-NL-FAM') | ||
|
||
def ok(self, no_exit, func, *args, **kwargs): | ||
ret = func(*args, **kwargs) | ||
if no_exit or ret >= 0: | ||
return ret | ||
reason = errmsg[abs(ret)] | ||
print('{0}() returned {1} ({2})'.format(func.__name__, ret, reason)) | ||
|
||
def callback_trigger(self, msg, arg): | ||
gnlh = genlmsghdr(nlmsg_data(nlmsg_hdr(msg))) | ||
|
||
tb = dict((i, None) for i in range(10 + 1)) | ||
nla_parse(tb, nl80211.NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), genlmsg_attrlen(gnlh, 0), None) | ||
if tb.get(NL_CMD_RECOVERY_MSG): | ||
self.recovery = True | ||
|
||
return libnl.handlers.NL_STOP | ||
|
||
def mcast_handler(self): | ||
mcid = self.ok(0, genl_ctrl_resolve_grp, self.sk, b'NRC-NL-FAM', b'nrc-log') | ||
ret = nl_socket_add_membership(self.sk, mcid) | ||
err = ctypes.c_int(1) | ||
results = ctypes.c_int(-1) | ||
cb = libnl.handlers.nl_cb_alloc(libnl.handlers.NL_CB_DEFAULT) | ||
libnl.handlers.nl_cb_set(cb, libnl.handlers.NL_CB_VALID, libnl.handlers.NL_CB_CUSTOM, self.callback_trigger, results) | ||
libnl.handlers.nl_cb_set(cb, libnl.handlers.NL_CB_SEQ_CHECK, libnl.handlers.NL_CB_CUSTOM, lambda *_: libnl.handlers.NL_OK, None) | ||
|
||
try: | ||
while True: | ||
ret = nl_recvmsgs(self.sk, cb) | ||
if self.recovery: break | ||
except KeyboardInterrupt: | ||
self.keyboard = True | ||
finally: | ||
nl_socket_drop_membership(self.sk, mcid) | ||
|
||
if __name__ == "__main__": | ||
recovery = Recovery() | ||
recovery.parse_arg() | ||
recovery.connect() | ||
|
||
while True: | ||
print("Waiting for recovery trigger...") | ||
recovery.mcast_handler() | ||
if recovery.keyboard: | ||
break | ||
if recovery.recovery: | ||
print("Recovery Triggered...") | ||
recovery.trigger_recovery() |
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/sniffer/NewraPeek_v0-1.4/README.txt
100644 → 100755
Empty file.
Empty file modified
0
...ge/host/evk/sw_pkg/nrc_pkg_dual/script/sniffer/NewraPeek_v0-1.4/newrapeek_0-1.4_armhf.deb
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/sniffer/NewraPeek_v0-1.4/rpcapd
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/sniffer/NewraPeek_v0-1.4/run_rpcapd.py
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/sniffer/NewraPeek_v0-1.4/run_tshark.py
100644 → 100755
Empty file.
Empty file modified
0
package/host/evk/sw_pkg/nrc_pkg_dual/script/sniffer/change_channel.py
100644 → 100755
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
1 change: 0 additions & 1 deletion
1
package/host/evk/sw_pkg/nrc_pkg_dual/sw/driver/README.txt
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
SDK-v1.3.0 | ||
built on Linux kernel 4.14.70 |
Binary file modified
BIN
+1.49 KB
(100%)
package/host/evk/sw_pkg/nrc_pkg_dual/sw/driver/nrc.ko
100644 → 100755
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
package/host/evk/sw_pkg/nrc_pkg_dual/sw/firmware/copy
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
cp /home/pi/nrc_pkg/sw/firmware/nrc$1_cspi.bin /home/pi/nrc_pkg/sw/firmware/uni_s1g.bin | ||
sudo cp /home/pi/nrc_pkg/sw/firmware/uni_s1g.bin /lib/firmware | ||
sudo cp /home/pi/nrc_pkg/sw/firmware/nrc7292_bd.dat /lib/firmware | ||
sudo cp /home/pi/nrc_pkg/sw/firmware/$2 /lib/firmware | ||
ls -al /home/pi/nrc_pkg/sw/firmware | ||
ls -al /lib/firmware/uni_s1g* | ||
|
Binary file modified
BIN
+0 Bytes
(100%)
package/host/evk/sw_pkg/nrc_pkg_dual/sw/firmware/nrc7292_bd.dat
100644 → 100755
Binary file not shown.
Binary file modified
BIN
-232 Bytes
(100%)
package/host/evk/sw_pkg/nrc_pkg_dual/sw/firmware/nrc7292_cspi.bin
100644 → 100755
Binary file not shown.
Empty file.
Empty file.
Empty file modified
0
package/host/nrc_driver/source/nrc_driver/nrc/Makefile.11n.sdio
100644 → 100755
Empty file.
Empty file modified
0
package/host/nrc_driver/source/nrc_driver/nrc/Makefile.halow.cspi
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Oops, something went wrong.