cfg80211: add wiphy_idx_valid to check for wiphy_idx sanity
commit85fd129a721e6e892dbaaf05203baf819730f699
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Sat, 21 Feb 2009 05:04:20 +0000 (21 00:04 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Feb 2009 19:52:54 +0000 (27 14:52 -0500)
tree9e8563ce2e42ad4a6b426984b9067448a3a4129b
parentb5850a7a4fd5bcab4f6a2c49e5b4ab9ebb1d5d44
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