STA: Add a utility function to set phymode

Replace the block of code to set phymode using iwpriv command
with a utility function to make the code more readable.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
1 file changed