rndis.c (4a7126a25b4dfd07d61c699f724118275acc0c25) | rndis.c (a4e6a8524f4327105c557eb05dd420a542d7cefc) |
---|---|
1/* 2 * RNDIS MSG parser 3 * 4 * Authors: Benedikt Spranger, Pengutronix 5 * Robert Schwebel, Pengutronix 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 460 unchanged lines hidden (view full) --- 469 /* mandatory */ 470 case RNDIS_OID_802_3_XMIT_MORE_COLLISIONS: 471 pr_debug("%s: RNDIS_OID_802_3_XMIT_MORE_COLLISIONS\n", __func__); 472 *outbuf = cpu_to_le32(0); 473 retval = 0; 474 break; 475 476 default: | 1/* 2 * RNDIS MSG parser 3 * 4 * Authors: Benedikt Spranger, Pengutronix 5 * Robert Schwebel, Pengutronix 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 460 unchanged lines hidden (view full) --- 469 /* mandatory */ 470 case RNDIS_OID_802_3_XMIT_MORE_COLLISIONS: 471 pr_debug("%s: RNDIS_OID_802_3_XMIT_MORE_COLLISIONS\n", __func__); 472 *outbuf = cpu_to_le32(0); 473 retval = 0; 474 break; 475 476 default: |
477 pr_warning("%s: query unknown OID 0x%08X\n", 478 __func__, OID); | 477 pr_warn("%s: query unknown OID 0x%08X\n", __func__, OID); |
479 } 480 if (retval < 0) 481 length = 0; 482 483 resp->InformationBufferLength = cpu_to_le32(length); 484 r->length = length + sizeof(*resp); 485 resp->MessageLength = cpu_to_le32(r->length); 486 return retval; --- 54 unchanged lines hidden (view full) --- 541 542 case RNDIS_OID_802_3_MULTICAST_LIST: 543 /* I think we can ignore this */ 544 pr_debug("%s: RNDIS_OID_802_3_MULTICAST_LIST\n", __func__); 545 retval = 0; 546 break; 547 548 default: | 478 } 479 if (retval < 0) 480 length = 0; 481 482 resp->InformationBufferLength = cpu_to_le32(length); 483 r->length = length + sizeof(*resp); 484 resp->MessageLength = cpu_to_le32(r->length); 485 return retval; --- 54 unchanged lines hidden (view full) --- 540 541 case RNDIS_OID_802_3_MULTICAST_LIST: 542 /* I think we can ignore this */ 543 pr_debug("%s: RNDIS_OID_802_3_MULTICAST_LIST\n", __func__); 544 retval = 0; 545 break; 546 547 default: |
549 pr_warning("%s: set unknown OID 0x%08X, size %d\n", 550 __func__, OID, buf_len); | 548 pr_warn("%s: set unknown OID 0x%08X, size %d\n", 549 __func__, OID, buf_len); |
551 } 552 553 return retval; 554} 555 556/* 557 * Response Functions 558 */ --- 290 unchanged lines hidden (view full) --- 849 (rndis_keepalive_msg_type *) 850 buf); 851 852 default: 853 /* At least Windows XP emits some undefined RNDIS messages. 854 * In one case those messages seemed to relate to the host 855 * suspending itself. 856 */ | 550 } 551 552 return retval; 553} 554 555/* 556 * Response Functions 557 */ --- 290 unchanged lines hidden (view full) --- 848 (rndis_keepalive_msg_type *) 849 buf); 850 851 default: 852 /* At least Windows XP emits some undefined RNDIS messages. 853 * In one case those messages seemed to relate to the host 854 * suspending itself. 855 */ |
857 pr_warning("%s: unknown RNDIS message 0x%08X len %d\n", | 856 pr_warn("%s: unknown RNDIS message 0x%08X len %d\n", |
858 __func__, MsgType, MsgLength); 859 print_hex_dump_bytes(__func__, DUMP_PREFIX_OFFSET, 860 buf, MsgLength); 861 break; 862 } 863 864 return -ENOTSUPP; 865} --- 315 unchanged lines hidden --- | 857 __func__, MsgType, MsgLength); 858 print_hex_dump_bytes(__func__, DUMP_PREFIX_OFFSET, 859 buf, MsgLength); 860 break; 861 } 862 863 return -ENOTSUPP; 864} --- 315 unchanged lines hidden --- |