Search Linux Wireless

Re: [PATCH v2] mac80211: Supporting of IFLA_INFO_KIND rtnl attribute

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You meant here ?

net/wireless/core.c : static int cfg80211_netdev_notifier_call(struct
notifier_block *nb,
                                          unsigned long state, void *ptr)
{

    ...
    switch (state) {
             case NETDEV_POST_INIT:
                     SET_NETDEV_DEVTYPE(dev, &wiphy_type);
                     break;
             case NETDEV_REGISTER:
                     ...
                     dev->rtnl_link_ops = &wireless_link_ops;
                     ...
    }
    ...
}

Regards,

On Mon, Dec 8, 2014 at 9:27 AM, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote:
> On Sun, 2014-12-07 at 12:20 +0200, Vadim Kochan wrote:
>
>> +++ b/net/mac80211/iface.c
>
>> @@ -1624,6 +1625,10 @@ static void ieee80211_assign_perm_addr(struct ieee80211_local *local,
>>       mutex_unlock(&local->iflist_mtx);
>>  }
>>
>> +static struct rtnl_link_ops wireless_link_ops __read_mostly = {
>> +     .kind = "wlan",
>> +};
>
> I think it would make sense to set it - if not already set - in the
> netdev notifier in cfg80211.
>
> johannes
>
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux