linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mac80211: Beaconing adhoc process (ar9170 & ath9k)
@ 2010-08-10 11:35 Jónatan Muñoz
  0 siblings, 0 replies; only message in thread
From: Jónatan Muñoz @ 2010-08-10 11:35 UTC (permalink / raw)
  To: linux-wireless

Hi all,

I am modifying the beaconing system of adhoc mode for ath9k and ar9170.
Until now I change /net/mac80211/ibss.

static void __ieee80211_sta_join_ibss(struct ieee80211_sub_if_data *sdata,
				      const u8 *bssid, const int beacon_int,
				      struct ieee80211_channel *chan,
				      const u32 basic_rates,
				      const u16 capability, u64 tsf)
{

.....

if (ifibss->ie_len)
		memcpy(skb_put(skb, ifibss->ie_len),
		       ifibss->ie, ifibss->ie_len);

	rcu_assign_pointer(ifibss->presp, skb);

-	sdata->vif.bss_conf.beacon_int = beacon_int;
-	bss_change = BSS_CHANGED_BEACON_INT;
-	bss_change |= ieee80211_reset_erp_info(sdata);
+	bss_change = ieee80211_reset_erp_info(sdata);
	bss_change |= BSS_CHANGED_BSSID;
	bss_change |= BSS_CHANGED_BEACON;
	bss_change |= BSS_CHANGED_BEACON_ENABLED;
	bss_change |= BSS_CHANGED_IBSS;
	sdata->vif.bss_conf.ibss_joined = true;
	ieee80211_bss_info_change_notify(sdata, bss_change);

	ieee80211_sta_def_wmm_params(sdata, sband->n_bitrates, supp_rates);

	ifibss->state = IEEE80211_IBSS_MLME_JOINED;
	mod_timer(&ifibss->timer,
		  round_jiffies(jiffies + IEEE80211_IBSS_MERGE_INTERVAL));

	bss = cfg80211_inform_bss_frame(local->hw.wiphy,
local->hw.conf.channel,
					mgmt, skb->len, 0, GFP_KERNEL);
	cfg80211_put_bss(bss);
	cfg80211_ibss_joined(sdata->dev, ifibss->bssid, GFP_KERNEL);
}

I pretend that each node in an adhoc network send periodically beacons every
100ms. Until now I get that two nodes, one with driver ath9k and the other
one with ar9170, send their beacons in the way I want. But if another node
with ar9170 or ath9k driver is added to the network, the nodes with the same
driver send one beacon every 100ms in total, not each one as I wish. Is
there something more that I must to change?

I hope you bring me some ligth in this darkness.

Thanks in advance

John
------------------------------------------
Jónatan Muñoz
Email: jmunoz@umh.es
Ubiquitous Wireless Communications Research Laboratory 
Uwicore, http://www.uwicore.umh.es 
Signal Theory and Communications Division 
University Miguel Hernández of Elche 

Avenida de la Universidad s/n 
Edificio Quorum V P2 012
03202, Elche (Alicante) 
Spain 
Tel: +34 96522 2031 /+34 669256708
Fax: +34 96665 8903 
------------------------------------------




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-08-10 11:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-10 11:35 mac80211: Beaconing adhoc process (ar9170 & ath9k) Jónatan Muñoz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).