Re: [PATCH v1 6/6] neard: Add partial support for wifi provisionning via NFC

2013-02-24 Thread Tomasz Bursztyka
*val = htons(tlv_msg[0] | tlv_msg[1] 8); Let's take that one, but with ntohs() (patch has a bug here) Tomasz ___ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman

Re: [PATCH v1 6/6] neard: Add partial support for wifi provisionning via NFC

2013-02-22 Thread Jukka Rissanen
Hi Tomasz, On 22.02.2013 15:31, Tomasz Bursztyka wrote: +static int recover_2b_from_tlv(const uint8_t *tlv_msg, uint16_t *val) +{ + uint16_t ne_val; + uint8_t *rec; + + rec = (uint8_t *) ne_val; + rec[0] = tlv_msg[0]; + rec[1] = tlv_msg[1]; + + *val =