fix AP warning; remove unused variable
Merge pull request #10147 from vipulnsward/fix_AP_live_warning

fix AP warning; remove unused variable