Skip to content

Commit 5aaec65

Browse files
martin-kaisergregkh
authored andcommitted
staging: r8188eu: remove some unused local ieee80211 macros
Remove some macros from wifi.h which are not used by this driver. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20220315205041.2714168-6-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 3524c88 commit 5aaec65

File tree

1 file changed

+0
-27
lines changed
  • drivers/staging/r8188eu/include

1 file changed

+0
-27
lines changed

drivers/staging/r8188eu/include/wifi.h

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -167,17 +167,11 @@ enum WIFI_REG_DOMAIN {
167167

168168
#define GetToDs(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(_TO_DS_)) != 0)
169169

170-
#define ClearToDs(pbuf) \
171-
*(__le16 *)(pbuf) &= (~cpu_to_le16(_TO_DS_))
172-
173170
#define SetFrDs(pbuf) \
174171
*(__le16 *)(pbuf) |= cpu_to_le16(_FROM_DS_)
175172

176173
#define GetFrDs(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(_FROM_DS_)) != 0)
177174

178-
#define ClearFrDs(pbuf) \
179-
*(__le16 *)(pbuf) &= (~cpu_to_le16(_FROM_DS_))
180-
181175
#define get_tofr_ds(pframe) ((GetToDs(pframe) << 1) | GetFrDs(pframe))
182176

183177
#define SetMFrag(pbuf) \
@@ -186,46 +180,25 @@ enum WIFI_REG_DOMAIN {
186180
#define ClearMFrag(pbuf) \
187181
*(__le16 *)(pbuf) &= (~cpu_to_le16(_MORE_FRAG_))
188182

189-
#define SetRetry(pbuf) \
190-
*(__le16 *)(pbuf) |= cpu_to_le16(_RETRY_)
191-
192183
#define GetRetry(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(_RETRY_)) != 0)
193184

194-
#define ClearRetry(pbuf) \
195-
*(__le16 *)(pbuf) &= (~cpu_to_le16(_RETRY_))
196-
197185
#define SetPwrMgt(pbuf) \
198186
*(__le16 *)(pbuf) |= cpu_to_le16(_PWRMGT_)
199187

200188
#define GetPwrMgt(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(_PWRMGT_)) != 0)
201189

202-
#define ClearPwrMgt(pbuf) \
203-
*(__le16 *)(pbuf) &= (~cpu_to_le16(_PWRMGT_))
204-
205190
#define SetMData(pbuf) \
206191
*(__le16 *)(pbuf) |= cpu_to_le16(_MORE_DATA_)
207192

208-
#define ClearMData(pbuf) \
209-
*(__le16 *)(pbuf) &= (~cpu_to_le16(_MORE_DATA_))
210-
211193
#define SetPrivacy(pbuf) \
212194
*(__le16 *)(pbuf) |= cpu_to_le16(_PRIVACY_)
213195

214196
#define GetPrivacy(pbuf) \
215197
(((*(__le16 *)(pbuf)) & cpu_to_le16(_PRIVACY_)) != 0)
216198

217-
#define ClearPrivacy(pbuf) \
218-
*(__le16 *)(pbuf) &= (~cpu_to_le16(_PRIVACY_))
219-
220199
#define GetFrameType(pbuf) \
221200
(le16_to_cpu(*(__le16 *)(pbuf)) & (BIT(3) | BIT(2)))
222201

223-
#define SetFrameType(pbuf, type) \
224-
do { \
225-
*(unsigned short *)(pbuf) &= __constant_cpu_to_le16(~(BIT(3) | BIT(2))); \
226-
*(unsigned short *)(pbuf) |= __constant_cpu_to_le16(type); \
227-
} while (0)
228-
229202
#define GetFrameSubType(pbuf) (le16_to_cpu(*(__le16 *)(pbuf)) & (BIT(7) |\
230203
BIT(6) | BIT(5) | BIT(4) | BIT(3) | BIT(2)))
231204

0 commit comments

Comments
 (0)