OSLL/greenmesh — pull request #1 by mporsch (2011-11-18 14:37:53+00:00)
Title: Devel branch

Hi,

here is the pull request for my current modifications.

First a fix for a missing bracket.
Secondly the awake window is added to mesh config.
I did not add storing the value for known STAs, because I think the value is only needed reactive (directly after receiving a beacon).
The value is accessible using 'iw'.
When mesh config power mode is light/deep sleep, the awake window is added to beacons.

There are 2 TODO markings:
1) a proper initial value for the mesh awake window
2) I have no idea yet how to properly and machine-independently convert a u32 into a 2byte-data field in the beacons.

I have tested the 'iw'-access and the beacon integration of the mesh awake window.
The awake window value is properly get/settable with 'iw'. After setting the mesh_power_mode to 2/3 with 'iw' the beacon information element is added. Whats currently not working, is the value field in the beacons (see TODO).

Regards
Marco