Thread (1 message) 1 message, 1 author, 2014-06-03

Re: [RFC 4/4] mac80211: OCB mode interface configuration

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2014-06-03 20:14:14
Also in: lkml

On Fri, 2014-05-30 at 18:56 +0200, Rostislav Lisovy wrote:
+	static u8 bssid_wildcard[ETH_ALEN] = { 0xff, 0xff, 0xff,
+					       0xff, 0xff, 0xff };
const

that doesn't actually exist anywhere already? Maybe not I guess.
quoted hunk
+int ieee80211_start_ocb(struct ieee80211_sub_if_data *sdata)
+{
+	u32 changed = BSS_CHANGED_BEACON_ENABLED;
+
+	sdata->vif.bss_conf.enable_beacon = false;
+	ieee80211_bss_info_change_notify(sdata, changed);
Why would beacon_enabled be changing?
+	/* MORE TO BE DONE ... */
From a brief look it seems that you should at least be setting the QoS
parameters, but what, if anything, else is there?

Certainly there should also be some indication to the low-level driver
that it should now consider being part of the OCB network though.
quoted hunk
+	netif_carrier_on(sdata->dev);
+	return 0;
+}
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 7e0dd4b..bf4fd61 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -1689,6 +1689,11 @@ int ieee80211_reconfig(struct ieee80211_local *local)
 			ieee80211_bss_info_change_notify(sdata, changed);
 			sdata_unlock(sdata);
 			break;
+		case NL80211_IFTYPE_OCB:
+			changed |= BSS_CHANGED_IBSS |
+				   BSS_CHANGED_BEACON_ENABLED;
CHANGED_IBSS?

I guess you need a new CHANGED_OCB flag and ocb_active bool value.

johannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help