@@ -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