linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Jónatan Muñoz" <jmunoz@umh.es>
To: <linux-wireless@vger.kernel.org>
Subject: mac80211: Beaconing adhoc process (ar9170 & ath9k)
Date: Tue, 10 Aug 2010 13:35:13 +0200	[thread overview]
Message-ID: <001101cb3880$19129a50$4b37cef0$@es> (raw)

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 
------------------------------------------




                 reply	other threads:[~2010-08-10 11:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='001101cb3880$19129a50$4b37cef0$@es' \
    --to=jmunoz@umh.es \
    --cc=linux-wireless@vger.kernel.org \
    /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 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).