wiphy->wowlan is a pointer to struct not a struct.
Change IEEE80211_CHAN_NO_IBSS and IEEE80211_CHAN_PASSIVE_SCAN to IEEE80211_CHAN_NO_IR. Comment lines with undefined WIPHY_FLAG_...