Skip to content

Commit

Permalink
P2P: Notify device expiry via P2P-DEVICE-LOST event
Browse files Browse the repository at this point in the history
[just un-#ifdef existing functionality]

Signed-off-by: Eliad Peller <eliad@wizery.com>
  • Loading branch information
Jithu Jance authored and elp committed Mar 5, 2012
1 parent ccda016 commit 5168c03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/common/wpa_ctrl.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,8 @@ extern "C" {
/** P2P device found */
#define P2P_EVENT_DEVICE_FOUND "P2P-DEVICE-FOUND "

#ifdef ANDROID_BRCM_P2P_PATCH
/** P2P device lost */
#define P2P_EVENT_DEVICE_LOST "P2P-DEVICE-LOST "
#endif

/** A P2P device requested GO negotiation, but we were not ready to start the
* negotiation */
Expand Down
4 changes: 2 additions & 2 deletions wpa_supplicant/p2p_supplicant.c
Original file line number Diff line number Diff line change
Expand Up @@ -1243,10 +1243,10 @@ void wpas_dev_found(void *ctx, const u8 *addr,
static void wpas_dev_lost(void *ctx, const u8 *dev_addr)
{
struct wpa_supplicant *wpa_s = ctx;
#ifdef ANDROID_BRCM_P2P_PATCH

wpa_msg(wpa_s, MSG_INFO, P2P_EVENT_DEVICE_LOST
"p2p_dev_addr=" MACSTR, MAC2STR(dev_addr));
#endif

wpas_notify_p2p_device_lost(wpa_s, dev_addr);
}

Expand Down

0 comments on commit 5168c03

Please sign in to comment.