From: David S. Miller Date: Wed, 27 May 2009 04:15:00 +0000 (-0700) Subject: nl80211: Eliminate reference to BUS_ID_SIZE. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=079e24ed80c8a91dd2884b88820bac6f340aaa83;p=openwrt%2Fstaging%2Fblogic.git nl80211: Eliminate reference to BUS_ID_SIZE. It's going away. Just leave the constant "20" here so that behavior doesn't change. Signed-off-by: David S. Miller --- diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 56d729c43b31..4b4d3c8a1aed 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -57,7 +57,7 @@ static int get_drv_dev_by_info_ifindex(struct nlattr **attrs, static struct nla_policy nl80211_policy[NL80211_ATTR_MAX+1] __read_mostly = { [NL80211_ATTR_WIPHY] = { .type = NLA_U32 }, [NL80211_ATTR_WIPHY_NAME] = { .type = NLA_NUL_STRING, - .len = BUS_ID_SIZE-1 }, + .len = 20-1 }, [NL80211_ATTR_WIPHY_TXQ_PARAMS] = { .type = NLA_NESTED }, [NL80211_ATTR_WIPHY_FREQ] = { .type = NLA_U32 }, [NL80211_ATTR_WIPHY_CHANNEL_TYPE] = { .type = NLA_U32 },