Wifi driver question

Discussion to talk about software related topics only.
Post Reply
SeeCwriter
Posts: 622
Joined: Mon May 12, 2008 10:55 am

Wifi driver question

Post by SeeCwriter »

When I build a v3.x project there are a number of warnings about an unsigned conversion regarding the error codes in NB::Error::GeneralErrors. For example, in file nbWiFiWilcDriver.cpp there are a number of functions, such as GetSecurity(), that return an uint8_t value. But the error codes all exceed the range of an unsigned byte, hence the warning. For example, in GetSecurity(), it can return a Timeout error, which is a value of -256. When that value is converted to a byte to be returned, it becomes a value of 0, which is "NoError".

I don't use the WiFi feature, but if I did I would be concerned. Is this behavior intentional?
User avatar
mlara
Posts: 8
Joined: Tue Mar 29, 2016 10:40 am

Re: Wifi driver question

Post by mlara »

Thanks for bringing this to our attention. This has now been patched for the next release of the NNDK.

To answer your question, that behavior was not intentional.

For anyone using the NBWIFIIN modules, this did not affect it's driver since it does not return values outside the range of a uint8_t. This was an error in a driver for an unreleased product. It was an oversight in our NBWIFI API, though, that could have affected potential WiFi products that we may develop in the future.
Mike Lara
Project Engineer
Netburner, Inc
SeeCwriter
Posts: 622
Joined: Mon May 12, 2008 10:55 am

Re: Wifi driver question

Post by SeeCwriter »

Thanks for the update.
Post Reply