[wlan][ath10k] Change the peer->num_wlan_cfg logic.

The old code always advanced the peer->num_wlan_cfg. But new code
only advances it when the new key index is higher.

Also, if a key idx has been set in firmware, don't set it again.

BUG: WLAN-855
TEST: With go/fxr/233492.
      In client role: "wlantools client connect 0 fx-tplink -p XXX"

Change-Id: I6f3b878926cf30ed7d131b6b954e033ac646624b
1 file changed