]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: make wiphy index start at 0 again
authorJohannes Berg <johannes.berg@intel.com>
Tue, 4 Jun 2013 20:23:36 +0000 (22:23 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 4 Jun 2013 20:28:23 +0000 (22:28 +0200)
commit54281e4462a01e2b677a2b8ef9daf31d252b34ff
tree6a0b36057cc217b138fb9fc27155ae193729972a
parentabb1675420cf5f99feba38bcea20cce0a21d56b9
cfg80211: make wiphy index start at 0 again

The change to use atomic_inc_return() for assigning the wiphy
index made the first wiphy index 1 instead of 0. This is fine,
but we all habitually type "phy0" when we're testing, so make
it go back to 0 instead of 1 by subtracting 1 from the index.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/core.c