cfg80211: fix nl80211 cmd id in nl80211_send_mpath()
authorHenning Rogge <hrogge@gmail.com>
Tue, 4 Nov 2014 15:14:58 +0000 (16:14 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 4 Nov 2014 15:37:22 +0000 (16:37 +0100)
Netlink command for nl80211_send_mpath() should be NL80211_CMD_NEW_MPATH.

Signed-off-by: Henning Rogge <henning.rogge@fkie.fraunhofer.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c

index 1a31736914e5ca9a9ac2cd2083deb43bfb7e6fc3..24549cbe0b54edb38255b0beb058692de0acf837 100644 (file)
@@ -4453,7 +4453,7 @@ static int nl80211_send_mpath(struct sk_buff *msg, u32 portid, u32 seq,
        void *hdr;
        struct nlattr *pinfoattr;
 
-       hdr = nl80211hdr_put(msg, portid, seq, flags, NL80211_CMD_NEW_STATION);
+       hdr = nl80211hdr_put(msg, portid, seq, flags, NL80211_CMD_NEW_MPATH);
        if (!hdr)
                return -1;