Skip to content

Instantly share code, notes, and snippets.

@ddrown
Last active March 22, 2016 04:36
Show Gist options
  • Save ddrown/b0c674a4eab37e7b0e58 to your computer and use it in GitHub Desktop.
Save ddrown/b0c674a4eab37e7b0e58 to your computer and use it in GitHub Desktop.
gfiber spectral
Code from https://gfiber.googlesource.com/vendor/google/platform/+/master/spectralanalyzer/
Slight modifications to use USB wifi based on the ath9k chipset
# quiet time
# ./spectral
Starting background spectral scanner
Performing wifi spectral scan at freq 2412
Performing wifi spectral scan at freq 2417
Performing wifi spectral scan at freq 2422
Performing wifi spectral scan at freq 2427
Performing wifi spectral scan at freq 2432
Performing wifi spectral scan at freq 2437
Performing wifi spectral scan at freq 2442
Performing wifi spectral scan at freq 2447
Performing wifi spectral scan at freq 2452
Performing wifi spectral scan at freq 2457
Performing wifi spectral scan at freq 2462
fft- 1: 97
fft- 2: 97
fft- 3: 97
fft- 4: 97 1
fft- 5: 96 2 1
fft- 6: 96 2 1
fft- 7: 96 2
fft- 8: 97 1
fft- 9: 98
fft-10: 99
fft-11: 99
# iperf on channel 1
# ./spectral
Starting background spectral scanner
Performing wifi spectral scan at freq 2412
Performing wifi spectral scan at freq 2417
Performing wifi spectral scan at freq 2422
Performing wifi spectral scan at freq 2427
Performing wifi spectral scan at freq 2432
Performing wifi spectral scan at freq 2437
Performing wifi spectral scan at freq 2442
Performing wifi spectral scan at freq 2447
Performing wifi spectral scan at freq 2452
Performing wifi spectral scan at freq 2457
Performing wifi spectral scan at freq 2462
fft- 1: 67 2 1 1 9 14 2
fft- 2: 58 2 3 6 4 1 1 8 11 1
fft- 3: 52 4 7 10 5 1 1 6 9 1
fft- 4: 53 8 9 10 5 1 4 4
fft- 5: 62 10 9 10 5
fft- 6: 72 10 7 6 2
fft- 7: 85 8 3 1
fft- 8: 93 3
fft- 9: 96 1
fft-10: 97 1
fft-11: 98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment