fixed bug on Linux (raspberrypi) not checking opened beacon port correctly