]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: change function signature of cfg80211_get_p2p_attr()
authorArend van Spriel <arend@broadcom.com>
Sun, 25 Nov 2012 18:13:28 +0000 (19:13 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 26 Nov 2012 10:28:55 +0000 (11:28 +0100)
commitb97f8cfcf1ea2def01c6524a423a839e82f43298
tree78c737f511216e00167a8ddf802af97e421c22d6
parentd2196ff73701d072a2d0dc089455b17049e2ff7f
cfg80211: change function signature of cfg80211_get_p2p_attr()

The function cfg80211_get_p2p_attr() can fail and returns
a negative error code. However, the return type is unsigned
int. The largest positive number is determined by desired_len
variable in the function, which is u16. So changing the return
type to int to allow easy error checking. Also change the type
for the attribute to enum for improved type checking.

Signed-off-by: Arend van Spriel <arend@broadcom.com>
[fix indentation, don't use u8 attr variable]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
net/wireless/util.c