Re: [PATCH net-next v9 2/9] net: nl80211 - make rdev_add_virtual_intf take name_assign_type

From: Johannes Berg
Date: Thu Jul 17 2014 - 05:04:43 EST


On Thu, 2014-07-17 at 10:06 +0200, Tom Gundersen wrote:
> Pass the value down and set it at the same place the name itself is set.

Huh? What's this? Can you explain why?

> static struct wireless_dev *ath6kl_cfg80211_add_iface(struct wiphy *wiphy,
> const char *name,
> + unsigned char name_assign_type,

unsigned char for an enum is really odd.

johannes


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/