Commit d378599a authored by Ajay Singh's avatar Ajay Singh Committed by Greg Kroah-Hartman

staging: wilc1000: rename firmware related constants to follow better namespace

Rename the firmware related macro by prefix with 'WILC_FW_' prefix for
a better namespace. Also, move them to wilc_wlan_if.h file along with other
FW related macros.
Signed-off-by: default avatarAjay Singh <ajay.kathat@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c140dd91
...@@ -3485,11 +3485,11 @@ void wilc_frame_register(struct wilc_vif *vif, u16 frame_type, bool reg) ...@@ -3485,11 +3485,11 @@ void wilc_frame_register(struct wilc_vif *vif, u16 frame_type, bool reg)
switch (frame_type) { switch (frame_type) {
case IEEE80211_STYPE_ACTION: case IEEE80211_STYPE_ACTION:
msg->body.reg_frame.reg_id = ACTION_FRM_IDX; msg->body.reg_frame.reg_id = WILC_FW_ACTION_FRM_IDX;
break; break;
case IEEE80211_STYPE_PROBE_REQ: case IEEE80211_STYPE_PROBE_REQ:
msg->body.reg_frame.reg_id = PROBE_REQ_IDX; msg->body.reg_frame.reg_id = WILC_FW_PROBE_REQ_IDX;
break; break;
default: default:
......
...@@ -15,13 +15,7 @@ ...@@ -15,13 +15,7 @@
#define GO_MODE 0x03 #define GO_MODE 0x03
#define CLIENT_MODE 0x04 #define CLIENT_MODE 0x04
#define ACTION_FRM_IDX 0
#define PROBE_REQ_IDX 1
#define MAX_NUM_STA 9 #define MAX_NUM_STA 9
#define DEFAULT_SCAN 0
#define USER_SCAN BIT(0)
#define OBSS_PERIODIC_SCAN BIT(1)
#define OBSS_ONETIME_SCAN BIT(2)
#define ADDKEY 0x1 #define ADDKEY 0x1
#define REMOVEKEY 0x2 #define REMOVEKEY 0x2
#define DEFAULTKEY 0x4 #define DEFAULTKEY 0x4
......
...@@ -612,15 +612,15 @@ static int scan(struct wiphy *wiphy, struct cfg80211_scan_request *request) ...@@ -612,15 +612,15 @@ static int scan(struct wiphy *wiphy, struct cfg80211_scan_request *request)
&hidden_ntwk)) &hidden_ntwk))
return -ENOMEM; return -ENOMEM;
ret = wilc_scan(vif, USER_SCAN, WILC_FW_ACTIVE_SCAN, ret = wilc_scan(vif, WILC_FW_USER_SCAN,
scan_ch_list, WILC_FW_ACTIVE_SCAN, scan_ch_list,
request->n_channels, request->n_channels,
(const u8 *)request->ie, (const u8 *)request->ie,
request->ie_len, cfg_scan_result, request->ie_len, cfg_scan_result,
(void *)priv, &hidden_ntwk); (void *)priv, &hidden_ntwk);
} else { } else {
ret = wilc_scan(vif, USER_SCAN, WILC_FW_ACTIVE_SCAN, ret = wilc_scan(vif, WILC_FW_USER_SCAN,
scan_ch_list, WILC_FW_ACTIVE_SCAN, scan_ch_list,
request->n_channels, request->n_channels,
(const u8 *)request->ie, (const u8 *)request->ie,
request->ie_len, cfg_scan_result, request->ie_len, cfg_scan_result,
......
...@@ -209,6 +209,18 @@ enum { ...@@ -209,6 +209,18 @@ enum {
WILC_FW_TX_RATE_MBPS_54 = 54 WILC_FW_TX_RATE_MBPS_54 = 54
}; };
enum {
WILC_FW_DEFAULT_SCAN = 0,
WILC_FW_USER_SCAN = BIT(0),
WILC_FW_OBSS_PERIODIC_SCAN = BIT(1),
WILC_FW_OBSS_ONETIME_SCAN = BIT(2)
};
enum {
WILC_FW_ACTION_FRM_IDX = 0,
WILC_FW_PROBE_REQ_IDX = 1
};
enum wid_type { enum wid_type {
WID_CHAR = 0, WID_CHAR = 0,
WID_SHORT = 1, WID_SHORT = 1,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment