cfg80211: support creating wiphy with suggested name
authorBen Greear <greearb@candelatech.com>
Wed, 22 Oct 2014 19:23:00 +0000 (12:23 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 27 Oct 2014 07:48:18 +0000 (08:48 +0100)
commit1998d90ad424c1ff12ea24816ce158d5262e06a5
treead30c598208b3c85525810af268787cad5bb774d
parent8cdd9e1c37dd888894922b8209d5fc8055cfde52
cfg80211: support creating wiphy with suggested name

Kernel will attempt to use the name if it is supplied,
but if name cannot be used for some reason, the default
phyX name will be used instead.

Signed-off-by: Ben Greear <greearb@candelatech.com>
[while at it, use wiphy_name() instead of dev_name(),
 fix format string issue reported by Kees Cook]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
net/wireless/core.c