libiwinfo: fix hw mode detection