wlan: prima: properly handle SETBAND wext ioctl

The wlan driver has multiple mechanisms for configuring the current
operating band including the SETBAND driver command and the SETBAND
wext ioctl.  Currently both the driver command and the wext ioctl call
the same hdd_setBand_helper() API which expects an ASCII command.
This is appropriate for the driver command since it uses an ASCII
string, but this is not appropriate for the wext ioctl since the data
is passed as an integer.  Create a new hdd_setBand() API which takes
binary data, and modify both hdd_setBand_helper() and the SETBAND wext
ioctl to invoke this API.  Also clean up other places where
hdd_setBand_helper() is being called with an ASCII command when it is
more efficient to call hdd_setBand() with an integer parameter.
set band helper api needs "SETBAND" as string to work properly but
from iwpriv command only the band number is received. band number
should be appended to "SETBAND" string manually.

Change-Id: I900618bea77c0eb46235eb11d33ad8aa22bde5a2
CRs-fixed: 642143
diff --git a/CORE/HDD/inc/wlan_hdd_wext.h b/CORE/HDD/inc/wlan_hdd_wext.h
index 933b51e..77b1fce 100644
--- a/CORE/HDD/inc/wlan_hdd_wext.h
+++ b/CORE/HDD/inc/wlan_hdd_wext.h
@@ -66,6 +66,8 @@
 #define WLAN_HDD_UI_BAND_AUTO                          0
 #define WLAN_HDD_UI_BAND_5_GHZ                         1
 #define WLAN_HDD_UI_BAND_2_4_GHZ                       2
+/* SETBAND x */
+/* 012345678 */
 #define WLAN_HDD_UI_SET_BAND_VALUE_OFFSET              8
 
 typedef enum
@@ -416,5 +418,8 @@
 #endif
 void* wlan_hdd_change_country_code_callback(void *pAdapter);
 
+int hdd_setBand(struct net_device *dev, u8 ui_band);
+int hdd_setBand_helper(struct net_device *dev, const char *command);
+
 #endif // __WEXT_IW_H__