projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c405c62
)
mac80211: enable WDS carrier only after adding station
author
Johannes Berg
<johannes.berg@intel.com>
Mon, 30 Jul 2012 17:48:09 +0000
(19:48 +0200)
committer
Johannes Berg
<johannes.berg@intel.com>
Tue, 31 Jul 2012 14:19:01 +0000
(16:19 +0200)
Enable the carrier on WDS type interfaces only
after having added the station entry for the
WDS peer so outgoing frames will find it.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/iface.c
patch
|
blob
|
blame
|
history
diff --git
a/net/mac80211/iface.c
b/net/mac80211/iface.c
index c65a03ba809f8b3d14b1f257b96da4dca0f386b0..2d6ac78971eaf1134e70ca86f5051a0f686f7756 100644
(file)
--- a/
net/mac80211/iface.c
+++ b/
net/mac80211/iface.c
@@
-546,6
+546,8
@@
static int ieee80211_do_open(struct net_device *dev, bool coming_up)
case NL80211_IFTYPE_MESH_POINT:
netif_carrier_off(dev);
break;
+ case NL80211_IFTYPE_WDS:
+ break;
default:
netif_carrier_on(dev);
}
@@
-580,6
+582,7
@@
static int ieee80211_do_open(struct net_device *dev, bool coming_up)
}
rate_control_rate_init(sta);
+ netif_carrier_on(dev);
}
/*