Adopt set_link_state to use hal.h api

set_link_state function was using hal.h file but in old manner. That was
the reason why command was failing. As a fix adopt set_link_stateto use
hal.h file in the right way by implementing INIT_HAL_MSG and
PREPARE_HAL_BUF macros.

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>