cdc_ncm: fix MTU and max_datagram_size handling
authorAlexey Orishko <alexey.orishko@gmail.com>
Wed, 14 Mar 2012 11:26:11 +0000 (11:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Mar 2012 09:08:36 +0000 (02:08 -0700)
commit3f658cde9401bd45429ee720cf2c69f0bc5547b9
tree369600921781f515c587853aa7c7b7cacd1d6884
parentc84ff1d6dff38058a5bd20cb633d13a0f685788a
cdc_ncm: fix MTU and max_datagram_size handling

Changes/fixes:
- inform device if max_datagram_size was changed by host
- max_datagram_size can't be bigger MTU in ETH func descr
- fix constants definitions to enable running CAIF service over NCM

Tested on Intel/ARM.

Reviewed-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Tested-by: Dmitry Tarnyagin <Dmitry.Tarnyagin@stericsson.com>
Signed-off-by: Alexey Orishko <alexey.orishko@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_ncm.c