P2P: Derive group interface name bit more sensibly
authorArend van Spriel <arend@broadcom.com>
Sun, 30 Jun 2013 07:19:31 +0000 (10:19 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 30 Jun 2013 07:50:14 +0000 (10:50 +0300)
commit2e5ba4b6d14e600d259bbaf59a8fca61dab8f987
tree4495dcc884ff1577676dc10d7582aab24c219093
parentc68f6200a72f2b33304f583859b09e57757b9d2a
P2P: Derive group interface name bit more sensibly

The interface name for the P2P group interface is derived from the
P2P management interface. When the P2P management interface is a
P2P Device interface, i.e., p2p-dev-wlanX, the name for the group
interface is abbreviated to p2p-X (X being group index). When the
P2P management interface starts with p2p-dev- use its postfix
instead. So P2P management interface p2p-dev-wlan3 results in group
interface name p2p-wlan3-0.

Signed-hostap: Arend van Spriel <arend@broadcom.com>
wpa_supplicant/p2p_supplicant.c