Comment 7 for bug 1329945

Revision history for this message
Antti Kaijanmäki (kaijanmaki) wrote :

IMHO indicator-network should not accommodate for a specific technology, but instead the abstraction should be done as close to the HW as possible and therefore the natural place for that would be inside ofono modem driver.

Ofono is the abstractor of different modem HW and that abstraction also has to take care of dealing with modems reporting their signal strengths in arbitrary ways. Right now the only way of getting the signal strength from ofono API is the Strength property and that has been specified to be a percentage from 0 to 100 and indeed it's up to the particular modem driver to provide mapping of that percentage.

We have 5 different signal strength icons available so from indicator-network POV we split the percentage to 5 even ranges independently of specific modem technology:

>= 80% -> 4 bars
>= 60% -> 3 bars
>= 40% -> 2 bars
>= 20% -> 1 bar
< 20% -> 0 bars