hal: fix compilation error for 8952 hal

Fix 'idx' undeclared

Change-Id: I647d74e63566403e2f3118e600d50cc22b402655
1 file changed