Search Linux Wireless

RE: [PATCH] NFC: Export new attributes sensb_res and sensf_res

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Samuel, 

> > diff --git a/include/net/nfc/nfc.h b/include/net/nfc/nfc.h
> > index 8696b77..d8aef2e 100644
> > --- a/include/net/nfc/nfc.h
> > +++ b/include/net/nfc/nfc.h
> > @@ -66,6 +66,8 @@ struct nfc_ops {
> >  #define NFC_TARGET_IDX_ANY -1
> >  #define NFC_MAX_GT_LEN 48
> >  #define NFC_MAX_NFCID1_LEN 10
> > +#define NFC_MAX_SENSB_RES_LEN 12
> > +#define NFC_MAX_SENSF_RES_LEN 18
> I think those values should be exported to user space though
> include/linux/nfc.h.
> When fetching the byte stream from the netlink socket, you 
> usually want
> to check if it has a valid length in order to memcpy it to a static
> array embedded with your target structure.
> Same applies to NFC_MAX_NFCID1_LEN.
Sure, I will move the definitions to include/linux/nfc.h.

> The rest of the code looks fine to me.
> 
> Cheers,
> Samuel.

Thanks & BR,
Ilan--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux