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

staging: wilc1000: use macro from ieee80211.h in register frame api's

Make use of ieee80211.h provided macros and removed the extra macro
defined for the same purpose.
Signed-off-by: default avatarAjay Singh <ajay.kathat@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dc19d43f
...@@ -3483,11 +3483,11 @@ void wilc_frame_register(struct wilc_vif *vif, u16 frame_type, bool reg) ...@@ -3483,11 +3483,11 @@ void wilc_frame_register(struct wilc_vif *vif, u16 frame_type, bool reg)
return; return;
switch (frame_type) { switch (frame_type) {
case ACTION: case IEEE80211_STYPE_ACTION:
msg->body.reg_frame.reg_id = ACTION_FRM_IDX; msg->body.reg_frame.reg_id = ACTION_FRM_IDX;
break; break;
case PROBE_REQ: case IEEE80211_STYPE_PROBE_REQ:
msg->body.reg_frame.reg_id = PROBE_REQ_IDX; msg->body.reg_frame.reg_id = PROBE_REQ_IDX;
break; break;
......
...@@ -14,9 +14,6 @@ ...@@ -14,9 +14,6 @@
#define STATION_MODE 0x02 #define STATION_MODE 0x02
#define GO_MODE 0x03 #define GO_MODE 0x03
#define CLIENT_MODE 0x04 #define CLIENT_MODE 0x04
#define ACTION 0xD0
#define PROBE_REQ 0x40
#define PROBE_RESP 0x50
#define ACTION_FRM_IDX 0 #define ACTION_FRM_IDX 0
#define PROBE_REQ_IDX 1 #define PROBE_REQ_IDX 1
......
...@@ -1700,12 +1700,12 @@ void wilc_mgmt_frame_register(struct wiphy *wiphy, struct wireless_dev *wdev, ...@@ -1700,12 +1700,12 @@ void wilc_mgmt_frame_register(struct wiphy *wiphy, struct wireless_dev *wdev,
return; return;
switch (frame_type) { switch (frame_type) {
case PROBE_REQ: case IEEE80211_STYPE_PROBE_REQ:
vif->frame_reg[0].type = frame_type; vif->frame_reg[0].type = frame_type;
vif->frame_reg[0].reg = reg; vif->frame_reg[0].reg = reg;
break; break;
case ACTION: case IEEE80211_STYPE_ACTION:
vif->frame_reg[1].type = frame_type; vif->frame_reg[1].type = frame_type;
vif->frame_reg[1].reg = reg; vif->frame_reg[1].reg = reg;
break; break;
......
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