aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoman Khassraf <roman@khassraf.at>2015-09-13 12:23:59 +0200
committerRoman Khassraf <roman@khassraf.at>2015-09-13 12:23:59 +0200
commitf4307481cf25669ce9fe44ceb9f78a733cb60e50 (patch)
tree943b7a295338b96f48bd1a4de68d9fba13272527 /apps
parent262b53dcbd72b9d2995a2edee2e3df60c5042373 (diff)
Mandatory arfcn or frequency only for cfile input in airprobe_decode
Diffstat (limited to 'apps')
-rwxr-xr-xapps/airprobe_decode.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/airprobe_decode.py b/apps/airprobe_decode.py
index 202ebc6..ceb38ef 100755
--- a/apps/airprobe_decode.py
+++ b/apps/airprobe_decode.py
@@ -323,7 +323,7 @@ if __name__ == '__main__':
if options.a5 < 0 or options.a5 > 3:
parser.error("Invalid A5 version\n")
- if (options.fc is None and options.arfcn is None) or (options.fc is not None and options.arfcn is not None):
+ if options.cfile and (options.fc is None and options.arfcn is None) or (options.fc is not None and options.arfcn is not None):
parser.error("You have to provide either a frequency or an ARFCN (but not both).\n")
# handle frequency / arfcn input