|
Bugzilla – Full Text Bug Listing |
| Summary: | align WifiPhy frequency and channel number | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Tom Henderson <tomh> |
| Component: | wifi | Assignee: | sebastien.deronne |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | ns-bugs |
| Priority: | P3 | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: | https://www.nsnam.org/bugzilla/show_bug.cgi?id=2270 | ||
| Bug Depends on: | 2452 | ||
| Bug Blocks: | 2400 | ||
| Attachments: |
suggested patch
suggested patch revised patch |
||
|
Description
Tom Henderson
2016-05-17 19:59:26 UTC
Created attachment 2436 [details]
suggested patch
Tom, do you have some updates about the refactoring of your previous patch? Created attachment 2463 [details]
suggested patch
improved patch
I uploaded a better patch for this issue. The main change is that (center) Frequency and ChannelWidth are now proposed as the attributes that will be really used by the model code, and ChannelNumber and WifiHelper::SetStandard are more like convenience attributes/methods to configure these things. The basic idea is that ChannelNumber and Frequency are related; by changing one, the other value is changed. ChannelNumber must be set to a value defined by the standard in effect (e.g. setting channel number to 14 for 802.11ac is not a valid combination). Users can define their own channel numbers at runtime for later use in their programs. However, Frequency and ChannelWidth are what ultimately get used by the underlying model. I've attached a complete patch; the individual commits can be viewed (and commented on, if you prefer) here: https://github.com/tomhenderson/ns-3-dev-git/commits/ns-3-dev-bug-2412 The first commit is the patch for issue 2270 (which will be committed shortly). The remaining 8 commits are proposed for ns-3-dev such as laid out in the git repository. From my perspective, this is ready to merge (test, example, documentation completed) unless any comments are received. I've just quickly looked and I don't have comments so far. Tom to push the patch Created attachment 2498 [details] revised patch Fixed issue reported by N. Sapoval regarding the fact that the WifiPhyStandard is often set later in the configuration than the ChannelNumber, so some consistency checking must be deferred. Also updates RELEASE_NOTES and CHANGES.html. Current patch depends on patch to bug 2452 (Object::IsInitialized ()). Tom, I did not test, but the patch looks ok. pushed in changeset 12215:ffa8e03e95f4 |