All of lore.kernel.org
 help / color / mirror / Atom feed
From: vadim4j@gmail.com
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Vadim Kochan <vadim4j@gmail.com>,
	John Linville <linville@tuxdriver.com>,
	linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH v2] mac80211: Supporting of IFLA_INFO_KIND rtnl attribute
Date: Mon, 8 Dec 2014 23:48:45 +0200	[thread overview]
Message-ID: <20141208214845.GA1709@angus-think.lan> (raw)
In-Reply-To: <1418033823.2001.1.camel@sipsolutions.net>

On Mon, Dec 08, 2014 at 11:17:03AM +0100, Johannes Berg wrote:
> On Mon, 2014-12-08 at 12:07 +0200, Vadim Kochan wrote:
> > 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;
> >                      ...
> >     }
> 
> Well it seems it could go more with the SET_NETDEV_TYPE()?
> 
> johannes
> 

What I worry about is this peace of code in net/core/dev.c : 

    int register_netdevice(struct net_device *dev)
    {
            ...

            if (!dev->rtnl_link_ops ||
                dev->rtnl_link_state == RTNL_LINK_INITIALIZED)
                    rtmsg_ifinfo(RTM_NEWLINK, dev, ~0U, GFP_KERNEL);
            ...
    }

which will skip sending RTM_NEWLINK message if it has rtnl_link_ops ...
Actually meanwhile I dont see any problems as my wifi works OK with
these changes, but I want to be sure in 100% that it does not break
anything ...

So I am under investigating this ... Maybe you can suggest ?

Thanks,

  reply	other threads:[~2014-12-08 21:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-07 10:20 [PATCH v2] mac80211: Supporting of IFLA_INFO_KIND rtnl attribute Vadim Kochan
2014-12-08  7:27 ` Johannes Berg
2014-12-08 10:07   ` Vadim Kochan
2014-12-08 10:17     ` Johannes Berg
2014-12-08 21:48       ` vadim4j [this message]
2014-12-09  8:24         ` Johannes Berg
2014-12-09 22:08           ` vadim4j

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141208214845.GA1709@angus-think.lan \
    --to=vadim4j@gmail.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.