brcmfmac: fix end of loop check (signedness bug)