Thread (12 messages) 12 messages, 4 authors, 2016-12-13

Re: [PATCH] mac80211: Remove invalid flag operations in mesh TSF synchronization

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2016-12-07 09:24:16

Hi,

I'm not sure what to do with this now :)
quoted
There are two functionalities.

1) 13.13.2.2 Neighbor offset synchronization method
2) 13.13.4.4 TBTT adjustment
Yes, this much is obvious.
quoted
The flag is updated by 2).
Yes, the definition of the flag says:

"The TBTT Adjusting subfield is set to 1 while the TBTT adjustment
procedure is ongoing, and is set to 0 otherwise. (See 13.13.4.4.3.)"

(802.11-2012 8.4.2.100.8 Mesh Capability)
quoted
13.13.4.4.3 TBTT scanning and adjustment procedures:
The mesh STA shall set the TBTT Adjusting field in the Mesh
Configuration element to 1 in order to announce that the TBTT
adjustment procedure is ongoing.
That's saying the same thing again, I guess :)
quoted
And the flag is refered by 1) as you said.


The purpose of the flag is to prevent 1) while 2) is ongoing.

In other words, 1) has only read access authority to the flag.
However,
previous code updated the flag in 1). In addition, there is no code
for
2). So I just remove the invalid accessing codes.
I don't think 1) has read only access to that flag. A TSF adjust will
by definition move the TBTT as well.
It seems that the wording in the spec disagrees with that - it says
(twice) to set the bit only while the TBTT adjustment procedure is
ongoing, which isn't the case here?

Then again, what exactly *is* this code doing?

It's called mesh_sync_offset_adjust_tbtt() which matches more closely
"TBTT adjustment" than "neighbor offset synchronization"? The code
looks more like offset synchronization though. Perhaps there's some
confusing and it's kinda doing both?

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