Hi wifiguru,
I have disabled power savings, no luck. The only way to keep the link opened seems to be constantly sending traffic (for instance by pinging my default gateway). Otherwise, my WiFi link does not stay up for more than ~ 10 seconds.
That's a bit short to be an ARP refresh problem, so it really looks like it is deeper down in the stack (802.11n).
I typed the command you asked for. Here is when I think I am losing my link:
Thu Jul 21 21:20:16.755 <kernel> vap-0: ieee80211_vap_iter_beacon_miss: Beacon miss, do internal reset!!
Thu Jul 21 21:20:16.755
Thu Jul 21 21:20:17.83 <kernel> vap-0: ieee80211_vap_iter_beacon_miss: HW iv_bmiss_count=1 reset=2 max=3 arg=00000000 swbmiss=1
Thu Jul 21 21:20:17.83
Thu Jul 21 21:20:17.86 <kernel> vap-0: clear beacon miss. frm type=00, subtype=80
Thu Jul 21 21:20:17.86
Thu Jul 21 21:20:17.803 <kernel> vap-0: mlme_sta_swbmiss_timer_handler: SW Beacon miss!!
Thu Jul 21 21:20:17.803
Thu Jul 21 21:20:17.803 <kernel> vap-0: ieee80211_vap_iter_beacon_miss: SW iv_bmiss_count=0 reset=2 max=3 arg=0xffffff8014ef0004 swbmiss=1
Thu Jul 21 21:20:17.803
Thu Jul 21 21:20:17.803 <kernel> vap-0: 8499.895 | ieee80211_vap_iter_beacon_miss: count=0 probe=1 beacon:18446743523953738445ms directed:18446743523953738375ms data:18446743523953738376ms ap_frame:18446743523953738375ms traffic_ind:18446743523953740553ms
Thu Jul 21 21:20:17.803
Thu Jul 21 21:20:17.803 <kernel> vap-0: ieee80211_vap_iter_beacon_miss: Beacon miss, do internal reset!!
Thu Jul 21 21:20:17.803
Thu Jul 21 21:20:18.130 <kernel> vap-0: ieee80211_vap_iter_beacon_miss: HW iv_bmiss_count=1 reset=2 max=3 arg=00000000 swbmiss=1
Thu Jul 21 21:20:18.130
Thu Jul 21 21:20:18.133 <kernel> vap-0: clear beacon miss. frm type=00, subtype=80
Thu Jul 21 21:20:18.133
Thu Jul 21 21:20:18.849 <kernel> vap-0: mlme_sta_swbmiss_timer_handler: SW Beacon miss!!
Thu Jul 21 21:20:18.849
Thu Jul 21 21:20:18.849 <kernel> vap-0: ieee80211_vap_iter_beacon_miss: SW iv_bmiss_count=0 reset=2 max=3 arg=0xffffff8014ef0004 swbmiss=1
Thu Jul 21 21:20:18.849
Thu Jul 21 21:20:18.849 <kernel> vap-0: 8500.941 | ieee80211_vap_iter_beacon_miss: count=0 probe=1 beacon:18446743523953738444ms directed:18446743523953738172ms data:18446743523953738173ms ap_frame:18446743523953738172ms traffic_ind:18446743523953738430ms
Thu Jul 21 21:20:18.849
Thu Jul 21 21:20:19.16 <configd[15]> _bsd_80211_event_callback: LINK_QUALITY (en1)
Thu Jul 21 21:20:19.16 <configd[15]> __AirPortOpportunisticRoamTriggerRSSI: <en1> Opportunistic Roam : Current RSSI <-64>, Last Opp Roam RSSI <-70>
Thu Jul 21 21:20:19.16 <configd[15]> __AirPortOpportunisticRoamTriggerRSSI: <en1> Opportunistic Roam : Destination BSSID <FF:FF:FF:FF:FF:FF>
Thu Jul 21 21:20:19.16 <configd[15]> __AirPortOpportunisticRoamTriggerRSSI: <en1> Opportunistic Roam : Next Attempt for this BSSID <-64>
Thu Jul 21 21:20:19.17 <kernel> vap-0: connection_sm_roam_check_timer_handler: roam check cur rssi 33 rssi thresh 23 policy 3 last_scan_rssi 0 rssi_change_thresh 7
Thu Jul 21 21:20:19.17
Thu Jul 21 21:20:19.17 <kernel> vap-0: HSM: connection :current state CONNECTED event BGSCAN_START[6]
Thu Jul 21 21:20:19.17
Thu Jul 21 21:20:19.17 <kernel> vap-0: HSM: connection: transition CONNECTED => BGSCAN
Thu Jul 21 21:20:19.17
Thu Jul 21 21:20:19.17 <kernel> vap-0: HSM: connection :current state BGSCAN event ROAM_CHECK[11]
Thu Jul 21 21:20:19.17
Thu Jul 21 21:20:19.17 <kernel> vap-0: HSM: connection : event 11 not handled in state BGSCAN
Thu Jul 21 21:20:19.17
Thu Jul 21 21:20:19.17 <kernel> vap-0: ieee80211_state_event: VAP state event 2
Thu Jul 21 21:20:19.17
Thu Jul 21 21:20:19.17 <kernel> vap-0: ieee80211_connection_sm_scan_evhandler event 0 reason 0
Thu Jul 21 21:20:19.17
Thu Jul 21 21:20:19.17 <kernel> vap-0: HSM: connection :current state BGSCAN event SCAN_START[9]
Thu Jul 21 21:20:19.17
Thu Jul 21 21:20:19.27 <kernel> vap-0: mlme_sta_swbmiss_timer_disable: swbmiss disabled by SCANNER curmask 0x1
Thu Jul 21 21:20:19.27
Thu Jul 21 21:20:19.27 <kernel> vap-0: ieee80211_connection_sm_scan_evhandler event 6 reason 0
I realize that my RSSI is not that great, but I really had no problem prior to my upgrade to Lion (iMac Core i7, 8 GB RAM).