@@ -167,17 +167,11 @@ enum WIFI_REG_DOMAIN {
167
167
168
168
#define GetToDs (pbuf ) (((*(__le16 *)(pbuf)) & cpu_to_le16(_TO_DS_)) != 0)
169
169
170
- #define ClearToDs (pbuf ) \
171
- *(__le16 *)(pbuf) &= (~cpu_to_le16(_TO_DS_))
172
-
173
170
#define SetFrDs (pbuf ) \
174
171
*(__le16 *)(pbuf) |= cpu_to_le16(_FROM_DS_)
175
172
176
173
#define GetFrDs (pbuf ) (((*(__le16 *)(pbuf)) & cpu_to_le16(_FROM_DS_)) != 0)
177
174
178
- #define ClearFrDs (pbuf ) \
179
- *(__le16 *)(pbuf) &= (~cpu_to_le16(_FROM_DS_))
180
-
181
175
#define get_tofr_ds (pframe ) ((GetToDs(pframe) << 1) | GetFrDs(pframe))
182
176
183
177
#define SetMFrag (pbuf ) \
@@ -186,46 +180,25 @@ enum WIFI_REG_DOMAIN {
186
180
#define ClearMFrag (pbuf ) \
187
181
*(__le16 *)(pbuf) &= (~cpu_to_le16(_MORE_FRAG_))
188
182
189
- #define SetRetry (pbuf ) \
190
- *(__le16 *)(pbuf) |= cpu_to_le16(_RETRY_)
191
-
192
183
#define GetRetry (pbuf ) (((*(__le16 *)(pbuf)) & cpu_to_le16(_RETRY_)) != 0)
193
184
194
- #define ClearRetry (pbuf ) \
195
- *(__le16 *)(pbuf) &= (~cpu_to_le16(_RETRY_))
196
-
197
185
#define SetPwrMgt (pbuf ) \
198
186
*(__le16 *)(pbuf) |= cpu_to_le16(_PWRMGT_)
199
187
200
188
#define GetPwrMgt (pbuf ) (((*(__le16 *)(pbuf)) & cpu_to_le16(_PWRMGT_)) != 0)
201
189
202
- #define ClearPwrMgt (pbuf ) \
203
- *(__le16 *)(pbuf) &= (~cpu_to_le16(_PWRMGT_))
204
-
205
190
#define SetMData (pbuf ) \
206
191
*(__le16 *)(pbuf) |= cpu_to_le16(_MORE_DATA_)
207
192
208
- #define ClearMData (pbuf ) \
209
- *(__le16 *)(pbuf) &= (~cpu_to_le16(_MORE_DATA_))
210
-
211
193
#define SetPrivacy (pbuf ) \
212
194
*(__le16 *)(pbuf) |= cpu_to_le16(_PRIVACY_)
213
195
214
196
#define GetPrivacy (pbuf ) \
215
197
(((*(__le16 *)(pbuf)) & cpu_to_le16(_PRIVACY_)) != 0)
216
198
217
- #define ClearPrivacy (pbuf ) \
218
- *(__le16 *)(pbuf) &= (~cpu_to_le16(_PRIVACY_))
219
-
220
199
#define GetFrameType (pbuf ) \
221
200
(le16_to_cpu(*(__le16 *)(pbuf)) & (BIT(3) | BIT(2)))
222
201
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
-
229
202
#define GetFrameSubType (pbuf ) (le16_to_cpu(*(__le16 *)(pbuf)) & (BIT(7) |\
230
203
BIT(6) | BIT(5) | BIT(4) | BIT(3) | BIT(2)))
231
204
0 commit comments