Fix warnings introduced by network code update

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
Remove totally outdated and useless legacy code for BME and HAL.

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>