From: Michal Kazior Date: Fri, 5 Jul 2013 13:15:08 +0000 (+0300) Subject: ath10k: silent warning in IBSS mode X-Git-Tag: accepted/tizen/common/20141203.182822~1141^2~225^2~25^2~111 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=09af8f85c6a1fbe9c1ffc6253a4c0e8a0d8a9033;p=platform%2Fkernel%2Flinux-arm64.git ath10k: silent warning in IBSS mode There is no TIM IE generated in IBSS beacons by mac80211. Signed-off-by: Michal Kazior Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c index 7d4b798..1b5312d 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.c +++ b/drivers/net/wireless/ath/ath10k/wmi.c @@ -501,8 +501,8 @@ static void ath10k_wmi_update_tim(struct ath10k *ar, ie = (u8 *)cfg80211_find_ie(WLAN_EID_TIM, ies, (u8 *)skb_tail_pointer(bcn) - ies); if (!ie) { - /* highly unlikely for mac80211 */ - ath10k_warn("no tim ie found;\n"); + if (arvif->vdev_type != WMI_VDEV_TYPE_IBSS) + ath10k_warn("no tim ie found;\n"); return; }