+if(sys.argv[1]=="reflexjam"):
+ #Setup the radio to listen promiscously on a frequency
+ client.RF_promiscuity(1);
+ client.RF_autocrc(0);
+ if len(sys.argv)>2:
+ freq=eval(sys.argv[2]);
+ if freq>100:
+ client.RF_setfreq(freq);
+ else:
+ client.RF_setchan(freq);
+ client.CC_RFST_RX();
+ print "Reflexively jamming on %i MHz" % (client.RF_getfreq()/10**6);
+ #Now we let the firmware take over, watching for packets and jamming them.
+ client.RF_reflexjam();
+