]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: add wiphy_idx_valid to check for wiphy_idx sanity
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Sat, 21 Feb 2009 05:04:20 +0000 (00:04 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Feb 2009 19:52:54 +0000 (14:52 -0500)
commit839624217c8b9b1b7db15882f082bcb4302daffe
tree9e8563ce2e42ad4a6b426984b9067448a3a4129b
parent48e40ea522eb96921d802900db7d1329a7277c90
cfg80211: add wiphy_idx_valid to check for wiphy_idx sanity

This will later be used by others, for now make use of it in
cfg80211_drv_by_wiphy_idx() to return early if an invalid
wiphy_idx has been provided.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/core.c
net/wireless/core.h