]> rtime.felk.cvut.cz Git - linux-imx.git/commit
mac80211: call dev_alloc_name before copying name to sdata
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Thu, 2 Jun 2011 20:28:37 +0000 (17:28 -0300)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 3 Jun 2011 18:22:06 +0000 (14:22 -0400)
commit59e7e7078d6c2c6294caf454c6e3695f9d3e46a2
tree6ef8de26cd28e6ac4fff34258300889ef989e98c
parent6f213ff1919fab6f8244ceae55631b5d6ef750a7
mac80211: call dev_alloc_name before copying name to sdata

This partially reverts 1c5cae815d19ffe02bdfda1260949ef2b1806171, because
the netdev name is copied into sdata->name, which is used for debugging
messages, for example. Otherwise, we get messages like this:

wlan%d: authenticated

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Cc: Jiri Pirko <jpirko@redhat.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: "John W. Linville" <linville@tuxdriver.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/iface.c