diff options
author | Quytelda Kahja <quytelda@tamalin.org> | 2018-03-27 04:40:57 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-29 05:59:27 -0400 |
commit | c3e96015be4fe69e31acabfe5b8b6e03bd621f1f (patch) | |
tree | 314d7ed577b6f7470f971d659ccc73bcb7512fc3 | |
parent | d95908d567d2766c9b29662d185af24c370307a9 (diff) |
staging: rtl8723bs: Replace RTW_IEEE80211_STYPE_* with IEEE80211_STYPE_*.
This driver defines the constants RTW_IEEE80211_STYPE_*, but all these
values are already defined in 'linux/ieee80211.h' as IEEE80211_STYPE_*.
Remove the locally defined constants, and substitute the kernel constants.
Signed-off-by: Quytelda Kahja <quytelda@tamalin.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 2 | ||||
-rw-r--r-- | drivers/staging/rtl8723bs/include/ieee80211.h | 43 | ||||
-rw-r--r-- | drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 2 |
3 files changed, 2 insertions, 45 deletions
diff --git a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c b/drivers/staging/rtl8723bs/core/rtw_ieee80211.c index e31e06fd6e9f..74750dbce379 100644 --- a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c +++ b/drivers/staging/rtl8723bs/core/rtw_ieee80211.c | |||
@@ -1381,7 +1381,7 @@ int rtw_action_frame_parse(const u8 *frame, u32 frame_len, u8 *category, u8 *act | |||
1381 | fc = le16_to_cpu(((struct ieee80211_hdr_3addr *)frame)->frame_control); | 1381 | fc = le16_to_cpu(((struct ieee80211_hdr_3addr *)frame)->frame_control); |
1382 | 1382 | ||
1383 | if ((fc & (IEEE80211_FCTL_FTYPE|IEEE80211_FCTL_STYPE)) | 1383 | if ((fc & (IEEE80211_FCTL_FTYPE|IEEE80211_FCTL_STYPE)) |
1384 | != (IEEE80211_FTYPE_MGMT|RTW_IEEE80211_STYPE_ACTION) | 1384 | != (IEEE80211_FTYPE_MGMT|IEEE80211_STYPE_ACTION) |
1385 | ) { | 1385 | ) { |
1386 | return false; | 1386 | return false; |
1387 | } | 1387 | } |
diff --git a/drivers/staging/rtl8723bs/include/ieee80211.h b/drivers/staging/rtl8723bs/include/ieee80211.h index c33b9c4ccd56..2c7597ad0470 100644 --- a/drivers/staging/rtl8723bs/include/ieee80211.h +++ b/drivers/staging/rtl8723bs/include/ieee80211.h | |||
@@ -324,49 +324,6 @@ enum eap_type { | |||
324 | #define MIN_FRAG_THRESHOLD 256U | 324 | #define MIN_FRAG_THRESHOLD 256U |
325 | #define MAX_FRAG_THRESHOLD 2346U | 325 | #define MAX_FRAG_THRESHOLD 2346U |
326 | 326 | ||
327 | /* management */ | ||
328 | #define RTW_IEEE80211_STYPE_ASSOC_REQ 0x0000 | ||
329 | #define RTW_IEEE80211_STYPE_ASSOC_RESP 0x0010 | ||
330 | #define RTW_IEEE80211_STYPE_REASSOC_REQ 0x0020 | ||
331 | #define RTW_IEEE80211_STYPE_REASSOC_RESP 0x0030 | ||
332 | #define RTW_IEEE80211_STYPE_PROBE_REQ 0x0040 | ||
333 | #define RTW_IEEE80211_STYPE_PROBE_RESP 0x0050 | ||
334 | #define RTW_IEEE80211_STYPE_BEACON 0x0080 | ||
335 | #define RTW_IEEE80211_STYPE_ATIM 0x0090 | ||
336 | #define RTW_IEEE80211_STYPE_DISASSOC 0x00A0 | ||
337 | #define RTW_IEEE80211_STYPE_AUTH 0x00B0 | ||
338 | #define RTW_IEEE80211_STYPE_DEAUTH 0x00C0 | ||
339 | #define RTW_IEEE80211_STYPE_ACTION 0x00D0 | ||
340 | |||
341 | /* control */ | ||
342 | #define RTW_IEEE80211_STYPE_CTL_EXT 0x0060 | ||
343 | #define RTW_IEEE80211_STYPE_BACK_REQ 0x0080 | ||
344 | #define RTW_IEEE80211_STYPE_BACK 0x0090 | ||
345 | #define RTW_IEEE80211_STYPE_PSPOLL 0x00A0 | ||
346 | #define RTW_IEEE80211_STYPE_RTS 0x00B0 | ||
347 | #define RTW_IEEE80211_STYPE_CTS 0x00C0 | ||
348 | #define RTW_IEEE80211_STYPE_ACK 0x00D0 | ||
349 | #define RTW_IEEE80211_STYPE_CFEND 0x00E0 | ||
350 | #define RTW_IEEE80211_STYPE_CFENDACK 0x00F0 | ||
351 | |||
352 | /* data */ | ||
353 | #define RTW_IEEE80211_STYPE_DATA 0x0000 | ||
354 | #define RTW_IEEE80211_STYPE_DATA_CFACK 0x0010 | ||
355 | #define RTW_IEEE80211_STYPE_DATA_CFPOLL 0x0020 | ||
356 | #define RTW_IEEE80211_STYPE_DATA_CFACKPOLL 0x0030 | ||
357 | #define RTW_IEEE80211_STYPE_NULLFUNC 0x0040 | ||
358 | #define RTW_IEEE80211_STYPE_CFACK 0x0050 | ||
359 | #define RTW_IEEE80211_STYPE_CFPOLL 0x0060 | ||
360 | #define RTW_IEEE80211_STYPE_CFACKPOLL 0x0070 | ||
361 | #define RTW_IEEE80211_STYPE_QOS_DATA 0x0080 | ||
362 | #define RTW_IEEE80211_STYPE_QOS_DATA_CFACK 0x0090 | ||
363 | #define RTW_IEEE80211_STYPE_QOS_DATA_CFPOLL 0x00A0 | ||
364 | #define RTW_IEEE80211_STYPE_QOS_DATA_CFACKPOLL 0x00B0 | ||
365 | #define RTW_IEEE80211_STYPE_QOS_NULLFUNC 0x00C0 | ||
366 | #define RTW_IEEE80211_STYPE_QOS_CFACK 0x00D0 | ||
367 | #define RTW_IEEE80211_STYPE_QOS_CFPOLL 0x00E0 | ||
368 | #define RTW_IEEE80211_STYPE_QOS_CFACKPOLL 0x00F0 | ||
369 | |||
370 | /* sequence control field */ | 327 | /* sequence control field */ |
371 | #define RTW_IEEE80211_SCTL_FRAG 0x000F | 328 | #define RTW_IEEE80211_SCTL_FRAG 0x000F |
372 | #define RTW_IEEE80211_SCTL_SEQ 0xFFF0 | 329 | #define RTW_IEEE80211_SCTL_SEQ 0xFFF0 |
diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c index 4b84965ec5c5..46bc2e512557 100644 --- a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c | |||
@@ -2546,7 +2546,7 @@ static int rtw_cfg80211_monitor_if_xmit_entry(struct sk_buff *skb, struct net_de | |||
2546 | 2546 | ||
2547 | } | 2547 | } |
2548 | else if ((frame_control & (IEEE80211_FCTL_FTYPE|IEEE80211_FCTL_STYPE)) | 2548 | else if ((frame_control & (IEEE80211_FCTL_FTYPE|IEEE80211_FCTL_STYPE)) |
2549 | == (IEEE80211_FTYPE_MGMT|RTW_IEEE80211_STYPE_ACTION) | 2549 | == (IEEE80211_FTYPE_MGMT|IEEE80211_STYPE_ACTION) |
2550 | ) | 2550 | ) |
2551 | { | 2551 | { |
2552 | /* only for action frames */ | 2552 | /* only for action frames */ |