summaryrefslogtreecommitdiffstats
path: root/net/mac80211/trace.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-10-19 09:44:42 -0400
committerJohannes Berg <johannes.berg@intel.com>2012-10-26 06:57:06 -0400
commit1041638f2bba0f1de75e66086d50fb1251d64dcf (patch)
tree95d5ea3a83302d27887dcdc2d425682216937f3f /net/mac80211/trace.h
parent7b20b8e8d70a0f4f18c254b42e5b157f93731e9f (diff)
mac80211: add explicit AP/GO driver operations
Depending on the driver, a lot of setup may be necessary to start operating as an AP, some of which may fail. Add an explicit AP start driver method to make such failures easier to handle, and add an AP stop driver method for symmetry. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/trace.h')
-rw-r--r--net/mac80211/trace.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/net/mac80211/trace.h b/net/mac80211/trace.h
index 0638541b625f..5e74e77cba9a 100644
--- a/net/mac80211/trace.h
+++ b/net/mac80211/trace.h
@@ -1396,6 +1396,43 @@ DEFINE_EVENT(local_sdata_chanctx, drv_unassign_vif_chanctx,
1396 TP_ARGS(local, sdata, ctx) 1396 TP_ARGS(local, sdata, ctx)
1397); 1397);
1398 1398
1399TRACE_EVENT(drv_start_ap,
1400 TP_PROTO(struct ieee80211_local *local,
1401 struct ieee80211_sub_if_data *sdata,
1402 struct ieee80211_bss_conf *info),
1403
1404 TP_ARGS(local, sdata, info),
1405
1406 TP_STRUCT__entry(
1407 LOCAL_ENTRY
1408 VIF_ENTRY
1409 __field(u8, dtimper)
1410 __field(u16, bcnint)
1411 __dynamic_array(u8, ssid, info->ssid_len);
1412 __field(bool, hidden_ssid);
1413 ),
1414
1415 TP_fast_assign(
1416 LOCAL_ASSIGN;
1417 VIF_ASSIGN;
1418 __entry->dtimper = info->dtim_period;
1419 __entry->bcnint = info->beacon_int;
1420 memcpy(__get_dynamic_array(ssid), info->ssid, info->ssid_len);
1421 __entry->hidden_ssid = info->hidden_ssid;
1422 ),
1423
1424 TP_printk(
1425 LOCAL_PR_FMT VIF_PR_FMT,
1426 LOCAL_PR_ARG, VIF_PR_ARG
1427 )
1428);
1429
1430DEFINE_EVENT(local_sdata_evt, drv_stop_ap,
1431 TP_PROTO(struct ieee80211_local *local,
1432 struct ieee80211_sub_if_data *sdata),
1433 TP_ARGS(local, sdata)
1434);
1435
1399/* 1436/*
1400 * Tracing for API calls that drivers call. 1437 * Tracing for API calls that drivers call.
1401 */ 1438 */