aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/rndis.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2012-05-11 18:16:08 -0400
committerDavid S. Miller <davem@davemloft.net>2012-05-12 15:04:19 -0400
commit8cdddc3f9d6692f5690841468a9f63c19fb734ed (patch)
tree9a2f0b7bb86d6dda3e48a0fba5aa39297a8d4dc5 /drivers/usb/gadget/rndis.c
parent007e5c8e6aad8526e234b2481d2104e3e1fe8b88 (diff)
usb/net: rndis: eliminate first set of duplicate OIDs
The RNDIS protocol contains a vast number of Object ID:s (OIDs). The current definitions had multiple definitions of these ID:s, let's use the nicely RNDIS_*-prefixed defines from the HyperV implementation, rename everywhere they're used, and copy+rename the few that were missing from this list of objects. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/usb/gadget/rndis.c')
-rw-r--r--drivers/usb/gadget/rndis.c160
1 files changed, 80 insertions, 80 deletions
diff --git a/drivers/usb/gadget/rndis.c b/drivers/usb/gadget/rndis.c
index 73a934a170d1..3ade168443a8 100644
--- a/drivers/usb/gadget/rndis.c
+++ b/drivers/usb/gadget/rndis.c
@@ -73,48 +73,48 @@ static rndis_resp_t *rndis_add_response(int configNr, u32 length);
73static const u32 oid_supported_list[] = 73static const u32 oid_supported_list[] =
74{ 74{
75 /* the general stuff */ 75 /* the general stuff */
76 OID_GEN_SUPPORTED_LIST, 76 RNDIS_OID_GEN_SUPPORTED_LIST,
77 OID_GEN_HARDWARE_STATUS, 77 RNDIS_OID_GEN_HARDWARE_STATUS,
78 OID_GEN_MEDIA_SUPPORTED, 78 RNDIS_OID_GEN_MEDIA_SUPPORTED,
79 OID_GEN_MEDIA_IN_USE, 79 RNDIS_OID_GEN_MEDIA_IN_USE,
80 OID_GEN_MAXIMUM_FRAME_SIZE, 80 RNDIS_OID_GEN_MAXIMUM_FRAME_SIZE,
81 OID_GEN_LINK_SPEED, 81 RNDIS_OID_GEN_LINK_SPEED,
82 OID_GEN_TRANSMIT_BLOCK_SIZE, 82 RNDIS_OID_GEN_TRANSMIT_BLOCK_SIZE,
83 OID_GEN_RECEIVE_BLOCK_SIZE, 83 RNDIS_OID_GEN_RECEIVE_BLOCK_SIZE,
84 OID_GEN_VENDOR_ID, 84 RNDIS_OID_GEN_VENDOR_ID,
85 OID_GEN_VENDOR_DESCRIPTION, 85 RNDIS_OID_GEN_VENDOR_DESCRIPTION,
86 OID_GEN_VENDOR_DRIVER_VERSION, 86 RNDIS_OID_GEN_VENDOR_DRIVER_VERSION,
87 OID_GEN_CURRENT_PACKET_FILTER, 87 RNDIS_OID_GEN_CURRENT_PACKET_FILTER,
88 OID_GEN_MAXIMUM_TOTAL_SIZE, 88 RNDIS_OID_GEN_MAXIMUM_TOTAL_SIZE,
89 OID_GEN_MEDIA_CONNECT_STATUS, 89 RNDIS_OID_GEN_MEDIA_CONNECT_STATUS,
90 OID_GEN_PHYSICAL_MEDIUM, 90 RNDIS_OID_GEN_PHYSICAL_MEDIUM,
91 91
92 /* the statistical stuff */ 92 /* the statistical stuff */
93 OID_GEN_XMIT_OK, 93 RNDIS_OID_GEN_XMIT_OK,
94 OID_GEN_RCV_OK, 94 RNDIS_OID_GEN_RCV_OK,
95 OID_GEN_XMIT_ERROR, 95 RNDIS_OID_GEN_XMIT_ERROR,
96 OID_GEN_RCV_ERROR, 96 RNDIS_OID_GEN_RCV_ERROR,
97 OID_GEN_RCV_NO_BUFFER, 97 RNDIS_OID_GEN_RCV_NO_BUFFER,
98#ifdef RNDIS_OPTIONAL_STATS 98#ifdef RNDIS_OPTIONAL_STATS
99 OID_GEN_DIRECTED_BYTES_XMIT, 99 RNDIS_OID_GEN_DIRECTED_BYTES_XMIT,
100 OID_GEN_DIRECTED_FRAMES_XMIT, 100 RNDIS_OID_GEN_DIRECTED_FRAMES_XMIT,
101 OID_GEN_MULTICAST_BYTES_XMIT, 101 RNDIS_OID_GEN_MULTICAST_BYTES_XMIT,
102 OID_GEN_MULTICAST_FRAMES_XMIT, 102 RNDIS_OID_GEN_MULTICAST_FRAMES_XMIT,
103 OID_GEN_BROADCAST_BYTES_XMIT, 103 RNDIS_OID_GEN_BROADCAST_BYTES_XMIT,
104 OID_GEN_BROADCAST_FRAMES_XMIT, 104 RNDIS_OID_GEN_BROADCAST_FRAMES_XMIT,
105 OID_GEN_DIRECTED_BYTES_RCV, 105 RNDIS_OID_GEN_DIRECTED_BYTES_RCV,
106 OID_GEN_DIRECTED_FRAMES_RCV, 106 RNDIS_OID_GEN_DIRECTED_FRAMES_RCV,
107 OID_GEN_MULTICAST_BYTES_RCV, 107 RNDIS_OID_GEN_MULTICAST_BYTES_RCV,
108 OID_GEN_MULTICAST_FRAMES_RCV, 108 RNDIS_OID_GEN_MULTICAST_FRAMES_RCV,
109 OID_GEN_BROADCAST_BYTES_RCV, 109 RNDIS_OID_GEN_BROADCAST_BYTES_RCV,
110 OID_GEN_BROADCAST_FRAMES_RCV, 110 RNDIS_OID_GEN_BROADCAST_FRAMES_RCV,
111 OID_GEN_RCV_CRC_ERROR, 111 RNDIS_OID_GEN_RCV_CRC_ERROR,
112 OID_GEN_TRANSMIT_QUEUE_LENGTH, 112 RNDIS_OID_GEN_TRANSMIT_QUEUE_LENGTH,
113#endif /* RNDIS_OPTIONAL_STATS */ 113#endif /* RNDIS_OPTIONAL_STATS */
114 114
115 /* mandatory 802.3 */ 115 /* mandatory 802.3 */
116 /* the general stuff */ 116 /* the general stuff */
117 OID_802_3_PERMANENT_ADDRESS, 117 RNDIS_OID_802_3_PERMANENT_ADDRESS,
118 OID_802_3_CURRENT_ADDRESS, 118 OID_802_3_CURRENT_ADDRESS,
119 OID_802_3_MULTICAST_LIST, 119 OID_802_3_MULTICAST_LIST,
120 OID_802_3_MAC_OPTIONS, 120 OID_802_3_MAC_OPTIONS,
@@ -200,8 +200,8 @@ static int gen_ndis_query_resp(int configNr, u32 OID, u8 *buf,
200 /* general oids (table 4-1) */ 200 /* general oids (table 4-1) */
201 201
202 /* mandatory */ 202 /* mandatory */
203 case OID_GEN_SUPPORTED_LIST: 203 case RNDIS_OID_GEN_SUPPORTED_LIST:
204 pr_debug("%s: OID_GEN_SUPPORTED_LIST\n", __func__); 204 pr_debug("%s: RNDIS_OID_GEN_SUPPORTED_LIST\n", __func__);
205 length = sizeof(oid_supported_list); 205 length = sizeof(oid_supported_list);
206 count = length / sizeof(u32); 206 count = length / sizeof(u32);
207 for (i = 0; i < count; i++) 207 for (i = 0; i < count; i++)
@@ -210,8 +210,8 @@ static int gen_ndis_query_resp(int configNr, u32 OID, u8 *buf,
210 break; 210 break;
211 211
212 /* mandatory */ 212 /* mandatory */
213 case OID_GEN_HARDWARE_STATUS: 213 case RNDIS_OID_GEN_HARDWARE_STATUS:
214 pr_debug("%s: OID_GEN_HARDWARE_STATUS\n", __func__); 214 pr_debug("%s: RNDIS_OID_GEN_HARDWARE_STATUS\n", __func__);
215 /* Bogus question! 215 /* Bogus question!
216 * Hardware must be ready to receive high level protocols. 216 * Hardware must be ready to receive high level protocols.
217 * BTW: 217 * BTW:
@@ -223,23 +223,23 @@ static int gen_ndis_query_resp(int configNr, u32 OID, u8 *buf,
223 break; 223 break;
224 224
225 /* mandatory */ 225 /* mandatory */
226 case OID_GEN_MEDIA_SUPPORTED: 226 case RNDIS_OID_GEN_MEDIA_SUPPORTED:
227 pr_debug("%s: OID_GEN_MEDIA_SUPPORTED\n", __func__); 227 pr_debug("%s: RNDIS_OID_GEN_MEDIA_SUPPORTED\n", __func__);
228 *outbuf = cpu_to_le32(rndis_per_dev_params[configNr].medium); 228 *outbuf = cpu_to_le32(rndis_per_dev_params[configNr].medium);
229 retval = 0; 229 retval = 0;
230 break; 230 break;
231 231
232 /* mandatory */ 232 /* mandatory */
233 case OID_GEN_MEDIA_IN_USE: 233 case RNDIS_OID_GEN_MEDIA_IN_USE:
234 pr_debug("%s: OID_GEN_MEDIA_IN_USE\n", __func__); 234 pr_debug("%s: RNDIS_OID_GEN_MEDIA_IN_USE\n", __func__);
235 /* one medium, one transport... (maybe you do it better) */ 235 /* one medium, one transport... (maybe you do it better) */
236 *outbuf = cpu_to_le32(rndis_per_dev_params[configNr].medium); 236 *outbuf = cpu_to_le32(rndis_per_dev_params[configNr].medium);
237 retval = 0; 237 retval = 0;
238 break; 238 break;
239 239
240 /* mandatory */ 240 /* mandatory */
241 case OID_GEN_MAXIMUM_FRAME_SIZE: 241 case RNDIS_OID_GEN_MAXIMUM_FRAME_SIZE:
242 pr_debug("%s: OID_GEN_MAXIMUM_FRAME_SIZE\n", __func__); 242 pr_debug("%s: RNDIS_OID_GEN_MAXIMUM_FRAME_SIZE\n", __func__);
243 if (rndis_per_dev_params[configNr].dev) { 243 if (rndis_per_dev_params[configNr].dev) {
244 *outbuf = cpu_to_le32( 244 *outbuf = cpu_to_le32(
245 rndis_per_dev_params[configNr].dev->mtu); 245 rndis_per_dev_params[configNr].dev->mtu);
@@ -248,9 +248,9 @@ static int gen_ndis_query_resp(int configNr, u32 OID, u8 *buf,
248 break; 248 break;
249 249
250 /* mandatory */ 250 /* mandatory */
251 case OID_GEN_LINK_SPEED: 251 case RNDIS_OID_GEN_LINK_SPEED:
252 if (rndis_debug > 1) 252 if (rndis_debug > 1)
253 pr_debug("%s: OID_GEN_LINK_SPEED\n", __func__); 253 pr_debug("%s: RNDIS_OID_GEN_LINK_SPEED\n", __func__);
254 if (rndis_per_dev_params[configNr].media_state 254 if (rndis_per_dev_params[configNr].media_state
255 == NDIS_MEDIA_STATE_DISCONNECTED) 255 == NDIS_MEDIA_STATE_DISCONNECTED)
256 *outbuf = cpu_to_le32(0); 256 *outbuf = cpu_to_le32(0);
@@ -261,8 +261,8 @@ static int gen_ndis_query_resp(int configNr, u32 OID, u8 *buf,
261 break; 261 break;
262 262
263 /* mandatory */ 263 /* mandatory */
264 case OID_GEN_TRANSMIT_BLOCK_SIZE: 264 case RNDIS_OID_GEN_TRANSMIT_BLOCK_SIZE:
265 pr_debug("%s: OID_GEN_TRANSMIT_BLOCK_SIZE\n", __func__); 265 pr_debug("%s: RNDIS_OID_GEN_TRANSMIT_BLOCK_SIZE\n", __func__);
266 if (rndis_per_dev_params[configNr].dev) { 266 if (rndis_per_dev_params[configNr].dev) {
267 *outbuf = cpu_to_le32( 267 *outbuf = cpu_to_le32(
268 rndis_per_dev_params[configNr].dev->mtu); 268 rndis_per_dev_params[configNr].dev->mtu);
@@ -271,8 +271,8 @@ static int gen_ndis_query_resp(int configNr, u32 OID, u8 *buf,
271 break; 271 break;
272 272
273 /* mandatory */ 273 /* mandatory */
274 case OID_GEN_RECEIVE_BLOCK_SIZE: 274 case RNDIS_OID_GEN_RECEIVE_BLOCK_SIZE:
275 pr_debug("%s: OID_GEN_RECEIVE_BLOCK_SIZE\n", __func__); 275 pr_debug("%s: RNDIS_OID_GEN_RECEIVE_BLOCK_SIZE\n", __func__);
276 if (rndis_per_dev_params[configNr].dev) { 276 if (rndis_per_dev_params[configNr].dev) {
277 *outbuf = cpu_to_le32( 277 *outbuf = cpu_to_le32(
278 rndis_per_dev_params[configNr].dev->mtu); 278 rndis_per_dev_params[configNr].dev->mtu);
@@ -281,16 +281,16 @@ static int gen_ndis_query_resp(int configNr, u32 OID, u8 *buf,
281 break; 281 break;
282 282
283 /* mandatory */ 283 /* mandatory */
284 case OID_GEN_VENDOR_ID: 284 case RNDIS_OID_GEN_VENDOR_ID:
285 pr_debug("%s: OID_GEN_VENDOR_ID\n", __func__); 285 pr_debug("%s: RNDIS_OID_GEN_VENDOR_ID\n", __func__);
286 *outbuf = cpu_to_le32( 286 *outbuf = cpu_to_le32(
287 rndis_per_dev_params[configNr].vendorID); 287 rndis_per_dev_params[configNr].vendorID);
288 retval = 0; 288 retval = 0;
289 break; 289 break;
290 290
291 /* mandatory */ 291 /* mandatory */
292 case OID_GEN_VENDOR_DESCRIPTION: 292 case RNDIS_OID_GEN_VENDOR_DESCRIPTION:
293 pr_debug("%s: OID_GEN_VENDOR_DESCRIPTION\n", __func__); 293 pr_debug("%s: RNDIS_OID_GEN_VENDOR_DESCRIPTION\n", __func__);
294 if (rndis_per_dev_params[configNr].vendorDescr) { 294 if (rndis_per_dev_params[configNr].vendorDescr) {
295 length = strlen(rndis_per_dev_params[configNr]. 295 length = strlen(rndis_per_dev_params[configNr].
296 vendorDescr); 296 vendorDescr);
@@ -303,38 +303,38 @@ static int gen_ndis_query_resp(int configNr, u32 OID, u8 *buf,
303 retval = 0; 303 retval = 0;
304 break; 304 break;
305 305
306 case OID_GEN_VENDOR_DRIVER_VERSION: 306 case RNDIS_OID_GEN_VENDOR_DRIVER_VERSION:
307 pr_debug("%s: OID_GEN_VENDOR_DRIVER_VERSION\n", __func__); 307 pr_debug("%s: RNDIS_OID_GEN_VENDOR_DRIVER_VERSION\n", __func__);
308 /* Created as LE */ 308 /* Created as LE */
309 *outbuf = rndis_driver_version; 309 *outbuf = rndis_driver_version;
310 retval = 0; 310 retval = 0;
311 break; 311 break;
312 312
313 /* mandatory */ 313 /* mandatory */
314 case OID_GEN_CURRENT_PACKET_FILTER: 314 case RNDIS_OID_GEN_CURRENT_PACKET_FILTER:
315 pr_debug("%s: OID_GEN_CURRENT_PACKET_FILTER\n", __func__); 315 pr_debug("%s: RNDIS_OID_GEN_CURRENT_PACKET_FILTER\n", __func__);
316 *outbuf = cpu_to_le32(*rndis_per_dev_params[configNr].filter); 316 *outbuf = cpu_to_le32(*rndis_per_dev_params[configNr].filter);
317 retval = 0; 317 retval = 0;
318 break; 318 break;
319 319
320 /* mandatory */ 320 /* mandatory */
321 case OID_GEN_MAXIMUM_TOTAL_SIZE: 321 case RNDIS_OID_GEN_MAXIMUM_TOTAL_SIZE:
322 pr_debug("%s: OID_GEN_MAXIMUM_TOTAL_SIZE\n", __func__); 322 pr_debug("%s: RNDIS_OID_GEN_MAXIMUM_TOTAL_SIZE\n", __func__);
323 *outbuf = cpu_to_le32(RNDIS_MAX_TOTAL_SIZE); 323 *outbuf = cpu_to_le32(RNDIS_MAX_TOTAL_SIZE);
324 retval = 0; 324 retval = 0;
325 break; 325 break;
326 326
327 /* mandatory */ 327 /* mandatory */
328 case OID_GEN_MEDIA_CONNECT_STATUS: 328 case RNDIS_OID_GEN_MEDIA_CONNECT_STATUS:
329 if (rndis_debug > 1) 329 if (rndis_debug > 1)
330 pr_debug("%s: OID_GEN_MEDIA_CONNECT_STATUS\n", __func__); 330 pr_debug("%s: RNDIS_OID_GEN_MEDIA_CONNECT_STATUS\n", __func__);
331 *outbuf = cpu_to_le32(rndis_per_dev_params[configNr] 331 *outbuf = cpu_to_le32(rndis_per_dev_params[configNr]
332 .media_state); 332 .media_state);
333 retval = 0; 333 retval = 0;
334 break; 334 break;
335 335
336 case OID_GEN_PHYSICAL_MEDIUM: 336 case RNDIS_OID_GEN_PHYSICAL_MEDIUM:
337 pr_debug("%s: OID_GEN_PHYSICAL_MEDIUM\n", __func__); 337 pr_debug("%s: RNDIS_OID_GEN_PHYSICAL_MEDIUM\n", __func__);
338 *outbuf = cpu_to_le32(0); 338 *outbuf = cpu_to_le32(0);
339 retval = 0; 339 retval = 0;
340 break; 340 break;
@@ -343,8 +343,8 @@ static int gen_ndis_query_resp(int configNr, u32 OID, u8 *buf,
343 * of MS-Windows expect OIDs that aren't specified there. Other 343 * of MS-Windows expect OIDs that aren't specified there. Other
344 * versions emit undefined RNDIS messages. DOCUMENT ALL THESE! 344 * versions emit undefined RNDIS messages. DOCUMENT ALL THESE!
345 */ 345 */
346 case OID_GEN_MAC_OPTIONS: /* from WinME */ 346 case RNDIS_OID_GEN_MAC_OPTIONS: /* from WinME */
347 pr_debug("%s: OID_GEN_MAC_OPTIONS\n", __func__); 347 pr_debug("%s: RNDIS_OID_GEN_MAC_OPTIONS\n", __func__);
348 *outbuf = cpu_to_le32( 348 *outbuf = cpu_to_le32(
349 NDIS_MAC_OPTION_RECEIVE_SERIALIZED 349 NDIS_MAC_OPTION_RECEIVE_SERIALIZED
350 | NDIS_MAC_OPTION_FULL_DUPLEX); 350 | NDIS_MAC_OPTION_FULL_DUPLEX);
@@ -354,9 +354,9 @@ static int gen_ndis_query_resp(int configNr, u32 OID, u8 *buf,
354 /* statistics OIDs (table 4-2) */ 354 /* statistics OIDs (table 4-2) */
355 355
356 /* mandatory */ 356 /* mandatory */
357 case OID_GEN_XMIT_OK: 357 case RNDIS_OID_GEN_XMIT_OK:
358 if (rndis_debug > 1) 358 if (rndis_debug > 1)
359 pr_debug("%s: OID_GEN_XMIT_OK\n", __func__); 359 pr_debug("%s: RNDIS_OID_GEN_XMIT_OK\n", __func__);
360 if (stats) { 360 if (stats) {
361 *outbuf = cpu_to_le32(stats->tx_packets 361 *outbuf = cpu_to_le32(stats->tx_packets
362 - stats->tx_errors - stats->tx_dropped); 362 - stats->tx_errors - stats->tx_dropped);
@@ -365,9 +365,9 @@ static int gen_ndis_query_resp(int configNr, u32 OID, u8 *buf,
365 break; 365 break;
366 366
367 /* mandatory */ 367 /* mandatory */
368 case OID_GEN_RCV_OK: 368 case RNDIS_OID_GEN_RCV_OK:
369 if (rndis_debug > 1) 369 if (rndis_debug > 1)
370 pr_debug("%s: OID_GEN_RCV_OK\n", __func__); 370 pr_debug("%s: RNDIS_OID_GEN_RCV_OK\n", __func__);
371 if (stats) { 371 if (stats) {
372 *outbuf = cpu_to_le32(stats->rx_packets 372 *outbuf = cpu_to_le32(stats->rx_packets
373 - stats->rx_errors - stats->rx_dropped); 373 - stats->rx_errors - stats->rx_dropped);
@@ -376,9 +376,9 @@ static int gen_ndis_query_resp(int configNr, u32 OID, u8 *buf,
376 break; 376 break;
377 377
378 /* mandatory */ 378 /* mandatory */
379 case OID_GEN_XMIT_ERROR: 379 case RNDIS_OID_GEN_XMIT_ERROR:
380 if (rndis_debug > 1) 380 if (rndis_debug > 1)
381 pr_debug("%s: OID_GEN_XMIT_ERROR\n", __func__); 381 pr_debug("%s: RNDIS_OID_GEN_XMIT_ERROR\n", __func__);
382 if (stats) { 382 if (stats) {
383 *outbuf = cpu_to_le32(stats->tx_errors); 383 *outbuf = cpu_to_le32(stats->tx_errors);
384 retval = 0; 384 retval = 0;
@@ -386,9 +386,9 @@ static int gen_ndis_query_resp(int configNr, u32 OID, u8 *buf,
386 break; 386 break;
387 387
388 /* mandatory */ 388 /* mandatory */
389 case OID_GEN_RCV_ERROR: 389 case RNDIS_OID_GEN_RCV_ERROR:
390 if (rndis_debug > 1) 390 if (rndis_debug > 1)
391 pr_debug("%s: OID_GEN_RCV_ERROR\n", __func__); 391 pr_debug("%s: RNDIS_OID_GEN_RCV_ERROR\n", __func__);
392 if (stats) { 392 if (stats) {
393 *outbuf = cpu_to_le32(stats->rx_errors); 393 *outbuf = cpu_to_le32(stats->rx_errors);
394 retval = 0; 394 retval = 0;
@@ -396,8 +396,8 @@ static int gen_ndis_query_resp(int configNr, u32 OID, u8 *buf,
396 break; 396 break;
397 397
398 /* mandatory */ 398 /* mandatory */
399 case OID_GEN_RCV_NO_BUFFER: 399 case RNDIS_OID_GEN_RCV_NO_BUFFER:
400 pr_debug("%s: OID_GEN_RCV_NO_BUFFER\n", __func__); 400 pr_debug("%s: RNDIS_OID_GEN_RCV_NO_BUFFER\n", __func__);
401 if (stats) { 401 if (stats) {
402 *outbuf = cpu_to_le32(stats->rx_dropped); 402 *outbuf = cpu_to_le32(stats->rx_dropped);
403 retval = 0; 403 retval = 0;
@@ -407,7 +407,7 @@ static int gen_ndis_query_resp(int configNr, u32 OID, u8 *buf,
407 /* ieee802.3 OIDs (table 4-3) */ 407 /* ieee802.3 OIDs (table 4-3) */
408 408
409 /* mandatory */ 409 /* mandatory */
410 case OID_802_3_PERMANENT_ADDRESS: 410 case RNDIS_OID_802_3_PERMANENT_ADDRESS:
411 pr_debug("%s: OID_802_3_PERMANENT_ADDRESS\n", __func__); 411 pr_debug("%s: OID_802_3_PERMANENT_ADDRESS\n", __func__);
412 if (rndis_per_dev_params[configNr].dev) { 412 if (rndis_per_dev_params[configNr].dev) {
413 length = ETH_ALEN; 413 length = ETH_ALEN;
@@ -516,7 +516,7 @@ static int gen_ndis_set_resp(u8 configNr, u32 OID, u8 *buf, u32 buf_len,
516 516
517 params = &rndis_per_dev_params[configNr]; 517 params = &rndis_per_dev_params[configNr];
518 switch (OID) { 518 switch (OID) {
519 case OID_GEN_CURRENT_PACKET_FILTER: 519 case RNDIS_OID_GEN_CURRENT_PACKET_FILTER:
520 520
521 /* these NDIS_PACKET_TYPE_* bitflags are shared with 521 /* these NDIS_PACKET_TYPE_* bitflags are shared with
522 * cdc_filter; it's not RNDIS-specific 522 * cdc_filter; it's not RNDIS-specific
@@ -525,7 +525,7 @@ static int gen_ndis_set_resp(u8 configNr, u32 OID, u8 *buf, u32 buf_len,
525 * MULTICAST, ALL_MULTICAST, BROADCAST 525 * MULTICAST, ALL_MULTICAST, BROADCAST
526 */ 526 */
527 *params->filter = (u16)get_unaligned_le32(buf); 527 *params->filter = (u16)get_unaligned_le32(buf);
528 pr_debug("%s: OID_GEN_CURRENT_PACKET_FILTER %08x\n", 528 pr_debug("%s: RNDIS_OID_GEN_CURRENT_PACKET_FILTER %08x\n",
529 __func__, *params->filter); 529 __func__, *params->filter);
530 530
531 /* this call has a significant side effect: it's 531 /* this call has a significant side effect: it's