Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(42)

Issue 96109: channel switching support for wifi

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 10 months ago by Ramon Bauza
Modified:
16 years, 9 months ago
Reviewers:
Mathieu Lacage
CC:
ns-3-reviews_googlegroups.com, ns-developers_isi.edu
Visibility:
Public.

Patch Set 1 #

Total comments: 14

Patch Set 2 : dcf-manager-test updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+490 lines, -20 lines) Patch
M examples/wifi-ap.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/devices/wifi/dca-txop.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/devices/wifi/dca-txop.cc View 1 2 chunks +10 lines, -0 lines 0 comments Download
M src/devices/wifi/dcf-manager.h View 5 chunks +18 lines, -0 lines 0 comments Download
M src/devices/wifi/dcf-manager.cc View 1 6 chunks +86 lines, -1 line 0 comments Download
M src/devices/wifi/dcf-manager-test.cc View 1 7 chunks +136 lines, -4 lines 0 comments Download
M src/devices/wifi/edca-txop-n.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/devices/wifi/edca-txop-n.cc View 1 2 chunks +10 lines, -0 lines 0 comments Download
M src/devices/wifi/interference-helper.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/devices/wifi/interference-helper.cc View 1 chunk +5 lines, -1 line 0 comments Download
M src/devices/wifi/mac-low.h View 1 3 chunks +12 lines, -0 lines 0 comments Download
M src/devices/wifi/mac-low.cc View 1 4 chunks +51 lines, -0 lines 0 comments Download
M src/devices/wifi/wifi-phy.h View 2 chunks +13 lines, -1 line 0 comments Download
M src/devices/wifi/wifi-phy-state-helper.h View 2 chunks +5 lines, -0 lines 0 comments Download
M src/devices/wifi/wifi-phy-state-helper.cc View 11 chunks +76 lines, -0 lines 0 comments Download
M src/devices/wifi/yans-wifi-phy.h View 1 3 chunks +2 lines, -2 lines 0 comments Download
M src/devices/wifi/yans-wifi-phy.cc View 1 4 chunks +60 lines, -11 lines 0 comments Download

Messages

Total messages: 2
Mathieu Lacage
http://codereview.appspot.com/96109/diff/1/6 File src/devices/wifi/dcf-manager.cc (right): http://codereview.appspot.com/96109/diff/1/6#newcode626 Line 626: DcfManager::NotifySwitchingStartNow (Time duration) I would like to see ...
16 years, 9 months ago (2009-08-19 08:19:11 UTC) #1
Ramon Bauza
16 years, 9 months ago (2009-09-08 11:36:07 UTC) #2
Hi Mathieu, all,

After almost a month (due to summer holidays and a lot of work :-), I have been
able now to update the patch related to channel switching support for wifi. I
have uploaded a new patch set with additions in dcf-manager-test
(http://codereview.appspot.com/96109/show).

Comments and suggestions are welcome.
Thank you very much.
Ramon.

http://codereview.appspot.com/96109/diff/1/6
File src/devices/wifi/dcf-manager.cc (right):

http://codereview.appspot.com/96109/diff/1/6#newcode626
Line 626: DcfManager::NotifySwitchingStartNow (Time duration)
On 2009/08/19 08:19:12, Mathieu Lacage wrote:
> I would like to see an associated test in dcf-manager-test.cc for this
function
> to exercise its many code paths.

done.

http://codereview.appspot.com/96109/diff/1/6#newcode633
Line 633: {
On 2009/08/19 08:19:12, Mathieu Lacage wrote:
> indent

done.

http://codereview.appspot.com/96109/diff/1/12
File src/devices/wifi/mac-low.cc (right):

http://codereview.appspot.com/96109/diff/1/12#newcode297
Line 297: m_phyMacLowListener = new PhyMacLowListener (this);
On 2009/08/19 08:19:12, Mathieu Lacage wrote:
> delete in DoDispose ?

Not before. done.

http://codereview.appspot.com/96109/diff/1/13
File src/devices/wifi/mac-low.h (right):

http://codereview.appspot.com/96109/diff/1/13#newcode284
Line 284: void SetupPhyMacLowListener (Ptr<WifiPhy> phy);
On 2009/08/19 08:19:12, Mathieu Lacage wrote:
> make this private

done.

http://codereview.appspot.com/96109/diff/1/17
File src/devices/wifi/yans-wifi-phy.cc (right):

http://codereview.appspot.com/96109/diff/1/17#newcode355
Line 355: m_channelNumber = nch;
On 2009/08/19 08:19:12, Mathieu Lacage wrote:
> I am curious: do you ever use m_channelNumber anywhere ? it seems all you do
in
> this patchset is keep track of this number, but never use it to implement an
> actual model of receiving packets on different channels ?

Yes, m_channelNumber is used (through YansWifiPhy::GetChannelNumber) in
YansWifiChannel::Send.

http://codereview.appspot.com/96109/diff/1/17#newcode359
Line 359: * This function wouldn't be really needed because channel switching
delay is
On 2009/08/19 08:19:12, Mathieu Lacage wrote:
> so, why is it needed ?

removed.

http://codereview.appspot.com/96109/diff/1/17#newcode412
Line 412: NS_LOG_DEBUG ("drop packet because of channel switching (power="<<
On 2009/08/19 08:19:12, Mathieu Lacage wrote:
> is this debug message really relevant ? I don't see how rx power is used here.

This message allows tracking those packets received during a switching period
(YansWifiPhy::m_channelSwitchDelay).
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b