Changes return type from int to uint8 since returned value is being assigned into uint8_t. Changes return value from (-1) to 0, because of uint8_t. 0 is considered as an invalid LAN channel anyway, so there is no reason for returning (-1).