def __intermediate_hwmode(self, radio):
protocol = radio['<STR_LIT>']<EOL>if protocol in ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>return protocol[<NUM_LIT:4>:]<EOL><DEDENT>if radio['<STR_LIT>'] is <NUM_LIT:0>:<EOL><INDENT>return radio.get('<STR_LIT>')<EOL><DEDENT>elif radio['<STR_LIT>'] <= <NUM_LIT>:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>
possible return values are: 11a, 11b, 11g