iwlwifi: mvm: clarify time event end handling
authorJohannes Berg <johannes.berg@intel.com>
Wed, 11 Mar 2015 19:27:06 +0000 (20:27 +0100)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 12 Mar 2015 07:57:47 +0000 (09:57 +0200)
commitbca13904d0558ad4160441ebb00b37e44a19483f
treea55648bbb827b1896551aadbdef9d18c562b7913
parentf4a3ee493e69239ad9e76e42524d08c58ac31f11
iwlwifi: mvm: clarify time event end handling

The code here is a little confusing, the iwl_mvm_te_check_disconnect()
will check that the interface is a station, but going into it after
already having processed the time even end for P2P seems strange at
first look.

Put a switch statement there to distinguish the interface types and
make this more readable.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/time-event.c