mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
staging: rtl8821ae: a couple macro expansion bugs
These macros need parentheses, otherwise it causes a macro expansion bug when they are used like this: ch->flags &= ~IEEE80211_CHAN_NO_IBSS; This was found using Smatch: drivers/staging/rtl8821ae/regd.c:200 _rtl_reg_apply_beaconing_flags() warn: the 'IEEE80211_CHAN_NO_IBSS' macro might need parens Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
417c070ad4
commit
79285edd36
1 changed files with 2 additions and 2 deletions
|
|
@ -30,8 +30,8 @@
|
|||
#ifndef __RTL_REGD_H__
|
||||
#define __RTL_REGD_H__
|
||||
|
||||
#define IEEE80211_CHAN_NO_IBSS 1<<2
|
||||
#define IEEE80211_CHAN_PASSIVE_SCAN 1<<1
|
||||
#define IEEE80211_CHAN_NO_IBSS (1 << 2)
|
||||
#define IEEE80211_CHAN_PASSIVE_SCAN (1 << 1)
|
||||
#define WIPHY_FLAG_CUSTOM_REGULATORY BIT(0)
|
||||
#define WIPHY_FLAG_STRICT_REGULATORY BIT(1)
|
||||
#define WIPHY_FLAG_DISABLE_BEACON_HINTS BIT(2)
|
||||
|
|
|
|||
Loading…
Reference in a new issue