802.11n chipmaker swings to loss