qcacmn: Check max scan allowed through API from scan component

Scan component provides API to check maximum scan
allowed. Replace all MAX_SCAN macros with API

Change-Id: I094b61978af015e5800784b90340e39aae94e7ba
CRs-Fixed: 2033852
2 files changed