diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h index e7533e2ccd2e..4054e5460634 100644 --- a/drivers/net/wireless/rt2x00/rt2x00.h +++ b/drivers/net/wireless/rt2x00/rt2x00.h | |||
@@ -133,20 +133,20 @@ | |||
133 | */ | 133 | */ |
134 | static inline int is_rts_frame(u16 fc) | 134 | static inline int is_rts_frame(u16 fc) |
135 | { | 135 | { |
136 | return !!(((fc & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_CTL) && | 136 | return (((fc & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_CTL) && |
137 | ((fc & IEEE80211_FCTL_STYPE) == IEEE80211_STYPE_RTS)); | 137 | ((fc & IEEE80211_FCTL_STYPE) == IEEE80211_STYPE_RTS)); |
138 | } | 138 | } |
139 | 139 | ||
140 | static inline int is_cts_frame(u16 fc) | 140 | static inline int is_cts_frame(u16 fc) |
141 | { | 141 | { |
142 | return !!(((fc & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_CTL) && | 142 | return (((fc & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_CTL) && |
143 | ((fc & IEEE80211_FCTL_STYPE) == IEEE80211_STYPE_CTS)); | 143 | ((fc & IEEE80211_FCTL_STYPE) == IEEE80211_STYPE_CTS)); |
144 | } | 144 | } |
145 | 145 | ||
146 | static inline int is_probe_resp(u16 fc) | 146 | static inline int is_probe_resp(u16 fc) |
147 | { | 147 | { |
148 | return !!(((fc & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_MGMT) && | 148 | return (((fc & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_MGMT) && |
149 | ((fc & IEEE80211_FCTL_STYPE) == IEEE80211_STYPE_PROBE_RESP)); | 149 | ((fc & IEEE80211_FCTL_STYPE) == IEEE80211_STYPE_PROBE_RESP)); |
150 | } | 150 | } |
151 | 151 | ||
152 | /* | 152 | /* |