ARGS --strip-unneeded -O binary -j .fwdsc carl9170.elf carl9170.dsc
TARGET firmware
OUTPUTS carl9170.dsc)
-
+
add_custom_command(
SOURCE firmware
TARGET firmware
# error "See: http://gcc.gnu.org/gcc-4.4/changes.html / Caveats No. 4"
#endif
-#if ((defined CONFIG_CARL9170FW_PRINTF) && \
- (!defined CONFIG_CARL9170FW_DEBUG_USB) && \
- (!defined CONFIG_CARL9170FW_DEBUG_UART))
+#if ((defined CONFIG_CARL9170FW_PRINTF) && \
+ (!defined CONFIG_CARL9170FW_DEBUG_USB) && \
+ (!defined CONFIG_CARL9170FW_DEBUG_UART))
# warning "You have disabled all debug message transports."
# warning "However CONFIG_CARL9170FW_PRINTF is still set..."
# warning "Which is a waste of firmware space, if you ask me."
#define CONFIG_CARL9170FW_BACK_REQS_NUM 4
#if ((defined CONFIG_CARL9170FW_DEBUG) || \
- (defined CONFIG_CARL9170FW_LOOPBACK))
+ (defined CONFIG_CARL9170FW_LOOPBACK))
#define CARL9170FW_UNUSABLE y
#endif
desc = (queue)->head)
#define __for_each_desc_continue(desc, queue) \
- for (;desc != (queue)->terminator; \
+ for (; desc != (queue)->terminator; \
desc = (desc)->lastAddr->nextAddr)
#define __for_each_desc(desc, queue) \
const unsigned int bcn_addr,
const unsigned int bcn_len);
-void wlan_tx_complete(struct carl9170_tx_superframe *super,
- bool txs);
-
+void wlan_tx_complete(struct carl9170_tx_superframe *super, bool txs);
void wlan_prepare_wol(void);
static inline void __check_wlantx(void)
}
__for_each_desc_continue(desc, &fw.pta.down_queue) {
- if ((desc->status & AR9170_OWN_BITS) == AR9170_OWN_BITS_SW) {
+ if ((desc->status & AR9170_OWN_BITS) == AR9170_OWN_BITS_SW)
dma_fix_downqueue(desc);
- }
}
* So watch out, if you need _stable_ timer interrupts.
*/
#ifdef CONFIG_CARL9170FW_RADIO_FUNCTIONS
- if (fw.phy.frequency < 3000000)
+ if (fw.phy.frequency < 3000000)
set(AR9170_PWR_REG_PLL_ADDAC, 0x5163);
- else
- set(AR9170_PWR_REG_PLL_ADDAC, 0x5143);
+ else
+ set(AR9170_PWR_REG_PLL_ADDAC, 0x5143);
#else
set(AR9170_PWR_REG_PLL_ADDAC, 0x5163);
#endif /* CONFIG_CARL9170FW_RADIO_FUNCTIONS */
static inline u16 get_tid(struct ieee80211_hdr *hdr)
{
- return (ieee80211_get_qos_ctl(hdr))[0] & IEEE80211_QOS_CTL_TID_MASK;
+ return (ieee80211_get_qos_ctl(hdr))[0] & IEEE80211_QOS_CTL_TID_MASK;
}
/* This function will only work on uint32_t-aligned pointers! */
{
struct carl9170_tx_superframe *super = get_super(desc);
- if (unlikely(super->s.assign_seq)) {
+ if (unlikely(super->s.assign_seq))
wlan_assign_seq(&super->f.data.i3e, super->s.vif_id);
- }
if (unlikely(super->s.ampdu_commit_density)) {
set(AR9170_MAC_REG_AMPDU_DENSITY,
found = 0;
}
- if (found == (6 + 16 * 6)) {
+ if (found == (6 + 16 * 6))
return true;
- }
data++;
}
null->frame_control = cpu_to_le16(IEEE80211_FTYPE_DATA |
IEEE80211_STYPE_NULLFUNC | IEEE80211_FCTL_TODS);
- memcpy(null->addr1, fw.wlan.wol.cmd.bssid, 6);
- memcpy(null->addr2, fw.wlan.wol.cmd.mac, 6);
- memcpy(null->addr3, fw.wlan.wol.cmd.bssid, 6);
+ memcpy(null->addr1, fw.wlan.wol.cmd.bssid, 6);
+ memcpy(null->addr2, fw.wlan.wol.cmd.mac, 6);
+ memcpy(null->addr3, fw.wlan.wol.cmd.bssid, 6);
wlan_tx_fw(&nullf->s, wlan_wol_connect_callback);
}
static int usb_manipulate_feature(const struct usb_ctrlrequest *ctrl, bool __unused clear)
{
unsigned int feature;
- if (USB_CHECK_REQTYPE(ctrl, USB_RECIP_DEVICE, USB_DIR_OUT))
+ if (USB_CHECK_REQTYPE(ctrl, USB_RECIP_DEVICE, USB_DIR_OUT))
return -1;
if (usb_configured() == false)
file(MAKE_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../include/generated")
LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../extra")
-FIND_PACKAGE(GPERF REQUIRED)
+FIND_PACKAGE(GPERF REQUIRED)
BISON_TARGET(zconf zconf.y zconf.tab.c COMPILE_FLAGS "-l -b zconf -p zconf")
FLEX_TARGET(zconfscan zconf.l lex.zconf.c COMPILE_FLAGS "-Pzconf -L")
SET_SOURCE_FILES_PROPERTIES(${BISON_zconf_OUTPUTS}
PROPERTIES OBJECT_DEPENDS "${zconf_deps}")
-set(conf_src conf.c ${BISON_zconf_OUTPUTS})
+set(conf_src conf.c ${BISON_zconf_OUTPUTS})
add_executable(conf ${conf_src})
u8 mac[6];
u8 bssid[6];
__le32 null_interval;
- __le32 free_for_use2;
+ __le32 free_for_use2;
__le32 mask;
u8 pattern[32];
} __packed;
#ifndef __CARL9170_SHARED_VERSION_H
#define __CARL9170_SHARED_VERSION_H
#define CARL9170FW_VERSION_YEAR 11
-#define CARL9170FW_VERSION_MONTH 6
-#define CARL9170FW_VERSION_DAY 30
+#define CARL9170FW_VERSION_MONTH 8
+#define CARL9170FW_VERSION_DAY 15
#define CARL9170FW_VERSION_GIT "1.9.4"
#endif /* __CARL9170_SHARED_VERSION_H */