• David Brownell's avatar
    [PATCH] USB: rndis updates (mostly cleanup) · 340600ab
    David Brownell authored
    Some bugfixes and lots of cleanup (net code shrink):
    
      - On reset, force the RNDIS state machine its initial state
    
      - Hook up the RNDIS (outgoing) filters to the CDC mechanism
    
      - Lots of cleanup:
         * Eliminate duplicate copy of OID table;
         * Unify handlying of the OID "query" response data pointer;
         * Reduce code duplication for calculating query response lengths;
         * Remove some checks for "can't happen" errors;
         * Get rid of debugging #ifdefs by making the debug flag an integer level
    
    Most of the patch, by volume, relates to those query response cleanups.
    It incidentally shaves off a few hundred bytes of object code.
    Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    340600ab
rndis.h 6.58 KB