Qualcomm to gain stake in Pantech