Merge "qca-wifi: Added condition checks for pdev to avoid deference issue."