On 12/19/14 10:43, Arend van Spriel wrote:
On 12/19/14 10:18, Johannes Berg wrote:
On Thu, 2014-12-18 at 21:42 +0100, Arend van Spriel wrote:

+    u8 ext_features[(NUM_NL80211_EXT_FEATURES / 8) + 1];

Should probably use DIV_ROUND_UP() here.

Will do.

Looking at this again I wonder if it would be of value to have this as NL80211_EXT_FEATURES_ATTR_LEN in nl80211.h so user-space can check the nla_len() against it and detect API in-compatibility. Just can not use DIV_ROUND_UP() in that case. What's your opinion?

Regards,
Arend
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to